Vulnerability · Published Jun 25, 2024 · Assigned by Wordfence
CVE-2024-6307WordPress Core < 6.5.5 - Authenticated (Contributor+) Stored Cross-Site Scripting via HTML API
Medium 6.4
In plain English
A medium-severity security flaw in WordPress from WordPress Foundation. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 41% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
WordPress Core is vulnerable to Stored Cross-Site Scripting via the HTML API in various versions prior to 6.5.5 due to insufficient input sanitization and output escaping on URLs. This makes it possible for authenticated attackers, with contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | wordpress | 6.1.9+dfsg1-0+deb12u1 | DEBIAN-CVE-2024-6307 |
| Debian:12 | wordpress | 6.1.9+dfsg1-0+deb12u1 | DSA-6075-1 |
| Debian:13 | wordpress | 6.5.5+dfsg1-1 | DEBIAN-CVE-2024-6307 |
| Debian:14 | wordpress | 6.5.5+dfsg1-1 | DEBIAN-CVE-2024-6307 |
| Ubuntu:22.04:LTS | wordpress | no fix listed | UBUNTU-CVE-2024-6307 |
| Ubuntu:24.04:LTS | wordpress | no fix listed | UBUNTU-CVE-2024-6307 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| WordPress Foundation | WordPress | 5.9 – through 5.9.96.0 – through 6.0.86.1 – through 6.1.66.2 – through 6.2.56.3 – through 6.3.46.4 – through 6.4.46.5 – through 6.5.4 |