CVE-2024-4041: Yoast SEO <= 22.5 - Reflected Cross-Site Scripting
The Yoast SEO plugin for WordPress is vulnerable to Reflected Cross-Site Scripting via URLs in all versions up to, and including, 22.5 due to insufficient input sanitization and output escaping. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that execute if they can successfully trick a user into performing an action such as clicking on a link.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
WordPress plugin: Yoast SEOto a version that resolves this vulnerability.Fixed in 22.5 - Compensating control
Because the issue affects unauthenticated reflected XSS via crafted URLs, prevent users from interacting with attacker-controlled links (e.g., block or filter untrusted URLs in emails/messages, and restrict external link exposure) until you upgrade beyond 22.5.
Event History
Frequently Asked Questions
What is the severity of CVE-2024-4041?
CVE-2024-4041 has a medium severity level due to its potential for exploitation through reflected cross-site scripting.
How do I fix CVE-2024-4041?
To fix CVE-2024-4041, update the Yoast SEO plugin to version 22.6 or later, which addresses the vulnerability.
Who is affected by CVE-2024-4041?
CVE-2024-4041 affects all versions of the Yoast SEO plugin for WordPress up to and including version 22.5.
What type of vulnerability is CVE-2024-4041?
CVE-2024-4041 is a reflected cross-site scripting vulnerability due to insufficient input sanitization.
Can unprivileged users exploit CVE-2024-4041?
Yes, unauthenticated attackers can exploit CVE-2024-4041 to inject arbitrary web scripts.