CVE-2026-10821: CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') in Yoast SEO Premium
Description
The Yoast SEO Premium WordPress plugin before 27.6.1 does not sanitize control characters from redirect origins before writing them to the site's Apache configuration file when the file-based redirect mode is enabled, and the redirect-creation endpoint is reachable by users with only Author-level access. This allows such users to inject arbitrary newline-delimited Apache directives into the root .htaccess file. On Apache servers that honour PHP directives, the injection can be chained with the user's own media upload (a polyglot image carrying a PHP payload) and an auto_prepend_file directive to achieve Remote Code Execution.
CVSS v3.1
Score 6.6medium
Affected software
Yoast SEO Premium
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The Yoast SEO Premium WordPress plugin prior to version 27.6.1 fails to sanitize control characters from redirect origins before writing them to the Apache .htaccess configuration file when file-based redirect mode is enabled. The redirect-creation endpoint is accessible to users with Author-level privileges, allowing such users to inject newline-delimited Apache directives. On Apache servers that process PHP directives, this injection can be combined with a user-uploaded polyglot image containing a PHP payload and an auto_prepend_file directive to achieve remote code execution. The CVSS 3.1 base score is 6.6, reflecting a medium severity with network attack vector, high privileges required, and high impact on confidentiality, integrity, and availability.
Potential Impact
An attacker with Author-level access can inject arbitrary Apache directives into the root .htaccess file, potentially leading to remote code execution on vulnerable Apache servers configured to honor PHP directives. This compromises the confidentiality, integrity, and availability of the affected system.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, restrict Author-level user access to the redirect-creation endpoint and disable file-based redirect mode if possible to mitigate the risk of Apache directive injection.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- WPScan
- Date Reserved
- 2026-06-04T07:41:54.109Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6a983bc6acd9273b496145c6
Added to database: 09/02/2026, 15:07:50 UTC
Last enriched: 09/07/2026, 13:51:54 UTC
Last updated: 10/17/2026, 18:48:16 UTC
Views: 109
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.