WordPress Core < 6.5.5 - Authenticated (Contributor+) Stored Cross-Site Scripting via HTML API

6.4
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
CVE CVE-2024-6307
CVSS 6.4 (Medium)
Publicly Published June 24, 2024
Last Updated June 28, 2024
Researchers Alex Concha - WordPress Security Team
Dennis Snell - WordPress Core Team
Grzegorz Ziółkowski - WordPress Security Team
Aaron Jorbin

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.

Learn more about Cross-Site Scripting vulnerabilities and how to prevent them.

References

Share

Vulnerability Details for WordPress

Software Type Core
Patched? Yes
Remediation Update to one of the following versions, or a newer patched version: 5.9.10, 6.0.9, 6.1.7, 6.2.6, 6.3.5, 6.4.5, 6.5.5
Affected Versions
  • 5.9 - 5.9.9
  • 6.0 - 6.0.8
  • 6.1 - 6.1.6
  • 6.2 - 6.2.5
Expand to see 3 more affected version ranges.
  • 6.3 - 6.3.4
  • 6.4 - 6.4.4
  • 6.5 - 6.5.4
Patched Versions
  • 5.9.10
  • 6.0.9
  • 6.1.7
  • 6.2.6
Expand to see 3 more patched versions.
  • 6.3.5
  • 6.4.5
  • 6.5.5

Recent vulnerabilities in WordPress

# Title CVE ID CVSS Researchers Date
1 WordPress <= 6.9.1 - Cross-Site Scripting via Client-Side Template Override in Admin Area 4.4 Asaf Mozes March 10, 2026
2 WordPress <= 6.9.1 - Authenticated (Administrator+) Stored Cross-Site Scripting via Navigation Menu Items 4.4 sibwtf March 10, 2026
3 WordPress <= 6.9.1 - Unauthenticated Blind Server-Side Request Forgery via XML-RPC Pingback Discovery 5.8 sibwtf March 10, 2026
4 WordPress <= 6.9.1 - Authenticated (Author+) XML External Entity Injection via getID3 Library Media Upload 6.5 Youssef Achtatal March 10, 2026
5 WordPress 6.9 - 6.9.1 - Missing Authorization to Authenticated (Subscriber+) Arbitrary Note Creation via REST API CVE-2026-3906 4.3 kaminuma March 10, 2026
6 WordPress <= 6.9.1 - Missing Authorization to Authenticated (Author+) Sensitive Information Disclosure via query-attachments AJAX Endpoint 4.3 Vitaly Simonovich March 10, 2026
7 WordPress <= 6.8.2 - Authenticated (Author+) Stored Cross-Site Scripting CVE-2025-58674 6.4 SavPhill (Savphill) September 22, 2025
8 WordPress <= 6.8.2 - Authenticated (Contributor+) Sensitive Information Exposure CVE-2025-58246 4.3 Abu Hurayra (HurayraIIT) September 22, 2025
9 WordPress Core < 6.5.5 - Authenticated (Contributor+) Stored Cross-Site Scripting via Template Part Block CVE-2024-31111 6.4 Rafie Muhammad June 24, 2024
10 WordPress Core < 6.5.5 - Authenticated (Contributor+) Directory Traversal CVE-2024-32111 4.3 apple502j, Rafie Muhammad, Edouard L, David Fifield, x89, mishre June 24, 2024

Did you know Wordfence Intelligence provides free personal and commercial API access to our comprehensive WordPress vulnerability database, along with a free webhook integration to stay on top of the latest vulnerabilities added and updated in the database? Get started today!

Learn more

Want to get notified of the latest vulnerabilities that may affect your WordPress site?
Install Wordfence on your site today to get notified immediately if your site is affected by a vulnerability that has been added to our database.

Get Wordfence

The Wordfence Intelligence WordPress vulnerability database is completely free to access and query via API. Please review the documentation on how to access and consume the vulnerability data via API.

Documentation