Stored Cross-Site Scripting Vulnerability in WordPress - CVE-2024-6307
Summary
DEBIAN-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. Affects wordpress versions < 6.5.5+dfsg1-1. Fixed in 6.5.5+dfsg1-1. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
WordPress is a widely-used open-source content management system (CMS) that allows users to create and manage websites easily. It offers a range of features including customizable themes, plugins, and a user-friendly interface. However, certain versions of WordPress prior to 6.5.5 are vulnerable to a stored cross-site scripting (XSS) issue due to inadequate input sanitization and output escaping on URLs, which can be exploited by authenticated attackers.
Vulnerability Detail
The vulnerability identified as CVE-2024-6307 affects WordPress Core, allowing authenticated users with contributor-level access and above to inject arbitrary web scripts into pages. This occurs due to insufficient sanitization of user inputs, particularly in the HTML API. When a user accesses an injected page, the malicious script executes, potentially compromising user data and site integrity.
How To Fix
Minimum fixed version
6.5.5+dfsg1-1
This is the first release that contains the fix.
sudo apt-get install --only-upgrade wordpress
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
As a temporary workaround, restrict access to the WordPress admin area to trusted users only, and monitor user activity closely to prevent unauthorized script injections until the update is applied.
Conclusion
CVE-2024-6307 represents a significant security risk for WordPress installations prior to version 6.5.5. It is crucial for users to update their installations to the latest version to protect against potential exploits. Additionally, utilizing tools like Vulert can help in monitoring and managing vulnerabilities effectively.
See every vulnerability recorded for wordpress →
FAQ
CVE-2024-6307 is a stored cross-site scripting vulnerability in WordPress that allows authenticated users to inject malicious scripts into web pages.
Any WordPress installation running versions prior to 6.5.5 is vulnerable, particularly those with users having contributor-level access or higher.
You can use Vulert, which monitors open-source vulnerabilities in your software. Simply upload your manifest file like package-lock.json to check for vulnerabilities.
If exploited, this vulnerability can lead to unauthorized script execution, data theft, and compromise of user accounts on the affected WordPress site.
Yes, you can limit access to the admin area and monitor user activities to reduce the risk of exploitation until you can apply the necessary updates.
References
Related vulnerabilities
Recent vulnerabilities recorded for wordpress.