CVE-2024-6307
WordPress Core < 6.5.5 - Authenticated (Contributor+) Stored Cross-Site Scripting via HTML API
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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- Low
- User interaction
- None
What an attacker can affect
- Confidentiality
- Low
- Integrity
- Low
- Availability
- None
Exploit likelihood
What each source reports
CVE List Score used
6.4
WordPress Core < 6.5.5 - Authenticated (Contributor+) Stored Cross-Site Scripting via HTML API
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.
- Record
CVE-2024-6307- CVSS 3.1
- 6.4 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N - Updated
- 2026-11-02
EUVDEUVD-2024-47423
6.4
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.
- Record
EUVD-2024-47423- CVSS 3.1
- 6.4 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N - Updated
- 2026-11-03
GitHub AdvisoriesGHSA-2f47-vffr-pwwf
6.4
WordPress Core is vulnerable to Stored Cross-Site Scripting via the HTML API in various versions...
WordPress Core is vulnerable to Stored Cross-Site Scripting via the HTML API in various versions up 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.
- Record
GHSA-2f47-vffr-pwwf- CVSS 3.1
- 6.4 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N - Updated
- 2026-11-02
NVD
6.4
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.
- Record
CVE-2024-6307- CVSS 3.1
- 6.4 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N - Updated
- 2026-11-02
OSVDEBIAN-CVE-2024-6307
6.4
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.
- Record
DEBIAN-CVE-2024-6307- CVSS 3.1
- 6.4 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N - Updated
- 2026-11-02
OSVUBUNTU-CVE-2024-6307
6.4
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.
- Record
UBUNTU-CVE-2024-6307- CVSS 3.1
- 6.4 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N - Updated
- 2026-11-02
OSVBIT-wordpress-2024-6307 No score
WordPress Core < 6.5.5 - Authenticated (Contributor+) Stored Cross-Site Scripting via HTML API
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.
- Record
BIT-wordpress-2024-6307- Updated
- 2026-11-02
OSVBIT-wordpress-multisite-2024-6307 No score
WordPress Core < 6.5.5 - Authenticated (Contributor+) Stored Cross-Site Scripting via HTML API
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.
- Record
BIT-wordpress-multisite-2024-6307- Updated
- 2026-11-02
OSV No score
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.
- Record
CVE-2024-6307- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
wordpressBitnami |
5.9.0 up to 5.9.10, 6.0.0 up to 6.0.9, 6.1.0 up to 6.1.7, 6.2.0 up to 6.2.5, 6.3.0 up to 6.3.5, 6.4.0 up to 6.4.5, 6.5.0 up to 6.5.5 | 5.9.106.0.96.1.76.2.56.3.56.4.56.5.5 |
wordpress-multisiteBitnami |
5.9.0 up to 5.9.10, 6.0.0 up to 6.0.9, 6.1.0 up to 6.1.7, 6.2.0 up to 6.2.5, 6.3.0 up to 6.3.5, 6.4.0 up to 6.4.5, 6.5.0 up to 6.5.5 | 5.9.106.0.96.1.76.2.56.3.56.4.56.5.5 |
wordpressDebian:12 |
before 6.1.9+dfsg1-0+deb12u1, plus listed versions 6.1.1+dfsg1-16.1.6+dfsg1-0+deb12u1 |
6.1.9+dfsg1-0+deb12u1 |
wordpressDebian:13 |
before 6.5.5+dfsg1-1 | 6.5.5+dfsg1-1 |
wordpressDebian:14 |
before 6.5.5+dfsg1-1 | 6.5.5+dfsg1-1 |
wordpressDebian:11 From an advisory covering 4 CVEs |
before 5.7.14+dfsg1-0+deb11u1, plus listed versions 5.7.1+dfsg1-25.7.11+dfsg1-0+deb11u15.7.3+dfsg1-0+deb11u15.7.5+dfsg1-0+deb11u15.7.8+dfsg1-0+deb11u15.7.8+dfsg1-0+deb11u2 |
5.7.14+dfsg1-0+deb11u1 |
wordpressDebian:12 From an advisory covering 5 CVEs |
before 6.1.9+dfsg1-0+deb12u1, plus listed versions 6.1.1+dfsg1-16.1.6+dfsg1-0+deb12u1 |
6.1.9+dfsg1-0+deb12u1 |
wordpressUbuntu:16.04:LTS |
All versions, plus listed versions 4.3+dfsg-14.3.1+dfsg-14.4+dfsg-14.4.1+dfsg-14.4.2+dfsg-14.4.2+dfsg-1ubuntu1 |
None known |
wordpressUbuntu:18.04:LTS |
All versions, plus listed versions 4.8.2+dfsg-24.8.3+dfsg-14.9.1+dfsg-14.9.2+dfsg-14.9.4+dfsg-14.9.5+dfsg1-1 |
None known |
wordpressUbuntu:20.04:LTS |
All versions, plus listed versions 5.2.2+dfsg1-15.2.4+dfsg1-15.3.2+dfsg1-15.3.2+dfsg1-1ubuntu1 |
None known |
wordpressUbuntu:22.04:LTS |
All versions, plus listed versions 5.7.1+dfsg1-2ubuntu15.8.1+dfsg1-2ubuntu15.8.2+dfsg1-1ubuntu15.8.3+dfsg1-1ubuntu15.8.3+dfsg1-1ubuntu1.1 |
None known |
wordpressUbuntu:24.04:LTS |
All versions, plus listed versions 6.2+dfsg1-1ubuntu16.4.3+dfsg1-1ubuntu1 |
None known |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| aliases, published | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2024-6307 is a medium vulnerability (CVSS 6.4) in Wordpress Foundation Wordpress, published June 25, 2024. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.47%, the 40th percentile. Fixed in wordpress 5.9.10.
References
wordfence.com/threat-intel/vulnerabilities/id/bc0d36f8-6569-49a1-b722-5cf57c4bb32a?source=cve
wordpress.org/news/2024/06/wordpress-6-5-5
core.trac.wordpress.org/changeset/58473
core.trac.wordpress.org/changeset/58472
nvd.nist.gov/vuln/detail/CVE-2024-6307
github.com/advisories/GHSA-2f47-vffr-pwwf
security-tracker.debian.org/tracker/CVE-2024-6307
ubuntu.com/security/CVE-2024-6307
cve.org/CVERecord?id=CVE-2024-6307