CVE-2024-31111
Medium · 6.5CVSS
6.5
EPSS
0.3%
Published
Jun 25, 2024
CISA due date
—
Cloudanix analysis
A problem in WordPress lets users with basic editing rights hide harmful code on pages that runs for other visitors and could lead to stolen logins or unwanted changes.
- Exploitation
- Remote Authenticated
- Attacker needs
- Low Privilege
- Complexity
- Low
- Impact
- Data Tampering
- Component
- Application
- Class
- XSS
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Allows authenticated users with contributor-level or higher privileges to inject persistent scripts via unsanitized input fields that execute in the browsers of other users viewing the stored content.
Why it matters to the business
Enables potential session hijacking, unauthorized administrative actions, and loss of site integrity on affected WordPress installations, increasing operational risk for site owners and users.
How an attack unfolds
An attacker logs in with low-privilege credentials, submits crafted content containing script payloads through editing interfaces, and the payload is stored in the database and executed when rendered for victims such as administrators.
How to fix it
Upgrade WordPress to fixed releases beyond the listed vulnerable ranges or apply the Debian package update to version 5.10.216-1 on affected linux (Debian:11) systems.
How to confirm the fix worked
Confirm the installed WordPress or package version meets or exceeds the fixed release; attempt to submit test script payloads in input fields and verify they are neutralized on output.
Typical attack path
- Obtain contributor or higher account on a vulnerable WordPress site
- Submit malicious input containing script tags through post or page creation interfaces
- Confirm the payload is stored without sanitization
- Lure or wait for a higher-privileged user to view the affected content
- Execute actions in the victim's browser context
How to detect it
Search web server access logs for repeated or unusual requests to post or page endpoints; query the database for script or HTML tags stored in post content fields; review audit logs for content changes by low-privilege accounts.
What your security team should do
- Apply the available package or WordPress update immediately
- Audit contributor permissions and review recent content submissions for anomalies
- Enable content security policy headers to limit script execution
- Monitor logs for unexpected POST activity to content endpoints
The record
Improper Neutralization of Input During Web Page Generation (XSS or 'Cross-site Scripting') vulnerability in Automattic WordPress allows Stored XSS.This issue affects WordPress: from 6.5 through 6.5.4, from 6.4 through 6.4.4, from 6.3 through 6.3.4, from 6.2 through 6.2.5, from 6.1 through 6.1.6, from 6.0 through 6.0.8, from 5.9 through 5.9.9.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Bitnami | wordpress | 5.9.0 | 5.9.10 |
| Bitnami | wordpress | 6.5.0 | 6.5.5 |
| Bitnami | wordpress-multisite | 5.9.0 | 5.9.10 |
| Bitnami | wordpress-multisite | 6.5.0 | 6.5.5 |
| Debian:11 | wordpress | 0 | No fix |
| Debian:12 | wordpress | 0 | No fix |
| Debian:13 | wordpress | 0 | 6.5.5+dfsg1-1 |
| Ubuntu:16.04:LTS | wordpress | 0 | No fix |
| Ubuntu:18.04:LTS | wordpress | 0 | No fix |
| Ubuntu:20.04:LTS | wordpress | 0 | No fix |
| Ubuntu:22.04:LTS | wordpress | 0 | No fix |
| Ubuntu:24.04:LTS | wordpress | 0 | No fix |
| Ubuntu:24.10 | wordpress | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | wordpress | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | wordpress | 0 | No fix |
| Ubuntu:Pro:20.04:LTS | wordpress | 0 | No fix |
Related vulnerabilities
- CVE-2022-4973 WordPress Core, in versions up to 6.0.2, is vulnerable to Authenticated Stored Cross-Site… Also affects wordpress
- CVE-2024-32111 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')… Also affects wordpress
- CVE-2024-6307 WordPress Core is vulnerable to Stored Cross-Site Scripting via the HTML API in various… Also affects wordpress
- CVE-2024-4439 WordPress Core is vulnerable to Stored Cross-Site Scripting via user display names in the… Also affects wordpress
- CVE-2023-5692 WordPress Core is vulnerable to Sensitive Information Exposure in versions up to, and… Also affects wordpress
- CVE-2024-31211 WordPress is an open publishing platform for the Web. Also affects wordpress
- CVE-2024-31210 WordPress is an open publishing platform for the Web. Also affects wordpress
- CVE-2023-2745 WordPress Core is vulnerable to Directory Traversal in versions up to, and including… Also affects wordpress