WordPress · Wordpress · CVE-2024-6307
Name of the Vulnerable Software and Affected Versions:
WordPress Core versions prior to 6.5.5
Description:
The issue is related to Stored Cross-Site Scripting via the HTML API due to insufficient input sanitization and output escaping on URLs. This allows authenticated attackers with contributor-level access and above to inject arbitrary web scripts in pages, which will execute when a user accesses an injected page.
Recommendations:
For versions prior to 6.5.5, update to version 6.5.5 or later to resolve the issue. As a temporary workaround, consider restricting access to the HTML API for users with contributor-level access and above until the update is applied. Additionally, ensure proper input validation and output escaping on URLs to prevent similar issues in the future.