CVE-2024-6307
MEDIUM
Published Jun 25, 2024
Modified Apr 15, 2026
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.
Is your site exposed to CVE-2024-6307?
Run a free security scan — no signup, results in seconds.
CVSS v3.1 Score
6.4
MEDIUM
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
References
Other References
https://core.trac.wordpress.org/changeset/58472
https://core.trac.wordpress.org/changeset/58473
https://wordpress.org/news/2024/06/wordpress-6-5-5/
https://www.wordfence.com/threat-intel/vulnerabilities/id/bc0d36f8-6569-49a1-b722-5cf57c4bb32a?source=cve
https://core.trac.wordpress.org/changeset/58472
https://core.trac.wordpress.org/changeset/58473
https://wordpress.org/news/2024/06/wordpress-6-5-5/
https://www.wordfence.com/threat-intel/vulnerabilities/id/bc0d36f8-6569-49a1-b722-5cf57c4bb32a?source=cve
Frequently Asked Questions
What is CVE-2024-6307? +
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. It has a CVSS v3.1 base score of 6.4 (MEDIUM).
How severe is CVE-2024-6307? +
CVE-2024-6307 has a CVSS v3.1 score of 6.4 out of 10, rated MEDIUM. This is a medium-severity vulnerability that should be remediated as part of regular maintenance.
How do I check if I'm vulnerable to CVE-2024-6307? +
You can use Secably's free Website Scanner to check your website for known vulnerabilities. For infrastructure scanning, use the Port Scanner to identify exposed services that may be affected. Check the vendor advisories linked above for specific patch and version information.