CVE-2024-4041 MEDIUM

CVE-2024-4041: Yoast SEO <= 22.5 - Reflected Cross-Site Scripting

Vendor Yoast
Product Yoast SEO – Advanced SEO with real-time guidance and built-in AI
Weakness CWE-79 · XSS
Published May 9, 2024
Last update April 8, 2026

CVSS base score

6.1/10
Attack vector Network
Attack complexity Low
Privileges required None
User interaction Required
Confidentiality Low
Integrity Low

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

What the vulnerability does

01Description

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.

Explanation of Vulnerability in Simple Terms

02Summary

Yoast SEO versions 22.5 and earlier contain a cross-site scripting (XSS) vulnerability that allows attackers to inject malicious scripts into the site. An attacker can craft a malicious link or page that, when visited by a site administrator or user, executes arbitrary JavaScript in their browser. This can lead to session hijacking, credential theft, or unauthorized actions performed on behalf of the victim.

What an attacker can do

03Attacker Capabilities

Inject and execute malicious JavaScript in a user's browser when they visit a crafted page or link.

Potential impact on your site

04Site Impact

Administrators or users visiting malicious links could have their sessions hijacked, credentials stolen, or site settings modified without their knowledge.

Conditions required to exploit

05Prerequisites

The victim must visit a page or click a link controlled or crafted by the attacker. No special privileges required.

Key dates

06Disclosure timeline

May 9, 2024 CVE published
April 8, 2026 Record updated

Related vulnerabilities

08Related CVE