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

Published Jun 25, 2024
·
Updated

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 Software

5 affected componentsFixes available
WordPress WordPress Core<6.5.5
debian/wordpress
6.1.9+dfsg1-0+deb12u16.8.7+dfsg1-0+deb13u16.8.12+dfsg1-0+deb13u17.1.4+dfsg1-1
debian/wordpress<6.1.9+dfsg1-0+deb12u1
6.1.9+dfsg1-0+deb12u1
debian/wordpress<6.5.5+dfsg1-1
6.5.5+dfsg1-1
debian/wordpress<6.5.5+dfsg1-1
6.5.5+dfsg1-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/wordpress to a version that resolves this vulnerability.

    Fixed in 6.1.9+dfsg1-0+deb12u1Fixed in 6.8.7+dfsg1-0+deb13u1Fixed in 6.8.12+dfsg1-0+deb13u1Fixed in 7.1.4+dfsg1-1
  2. Upgrade

    Upgrade debian/wordpress to a version that resolves this vulnerability.

    Fixed in 6.1.9+dfsg1-0+deb12u1
  3. Upgrade

    Upgrade debian/wordpress to a version that resolves this vulnerability.

    Fixed in 6.5.5+dfsg1-1
  4. Upgrade

    Upgrade WordPress Core to a version that resolves this vulnerability.

    Fixed in 6.5.5
  5. Compensating control

    If immediate patching is not possible, restrict access to WordPress users with contributor-level (and above) permissions to reduce the likelihood of authenticated script injection via the HTML API.

Event History

Jun 25, 2024
CVE Published
via MITRE·11:09 AM
Data Sourced
via MITRE·11:09 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·11:15 AM
DescriptionSeverity
Data Sourced
via OSV·11:15 AM
DescriptionSeverityAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is the severity of CVE-2024-6307?

CVE-2024-6307 is considered a high-severity vulnerability due to its potential for stored cross-site scripting (XSS) attacks.

2

How do I fix CVE-2024-6307?

To fix CVE-2024-6307, update your WordPress Core installation to version 6.5.5 or later.

3

Who is affected by CVE-2024-6307?

CVE-2024-6307 affects authenticated users with contributor-level access and above in versions of WordPress Core prior to 6.5.5.

4

What kind of attack can CVE-2024-6307 facilitate?

CVE-2024-6307 can facilitate stored cross-site scripting (XSS) attacks that allow attackers to inject malicious scripts into webpages.

5

What versions of WordPress are vulnerable to CVE-2024-6307?

All versions of WordPress Core prior to 6.5.5 are vulnerable to CVE-2024-6307.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203