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.

Severity (CVSS 3.1)6.4Medium
Exploit odds (30 days)0.5%top 59.4% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
Debian:12wordpress6.1.9+dfsg1-0+deb12u1DEBIAN-CVE-2024-6307
Debian:12wordpress6.1.9+dfsg1-0+deb12u1DSA-6075-1
Debian:13wordpress6.5.5+dfsg1-1DEBIAN-CVE-2024-6307
Debian:14wordpress6.5.5+dfsg1-1DEBIAN-CVE-2024-6307
Ubuntu:22.04:LTSwordpressno fix listedUBUNTU-CVE-2024-6307
Ubuntu:24.04:LTSwordpressno fix listedUBUNTU-CVE-2024-6307

Affected products (as reported)

VendorProductVersions
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

References