CVE-2026-10821 Details
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.
A vulnerability exists in the Yoast SEO Premium WordPress plugin in versions prior to 27.6.1. The issue arises because the plugin fails to properly sanitize control characters from redirect origins before saving them to the site's Apache configuration file. This flaw is present when the file-based redirect mode is activated and can be exploited by users with Author-level access. As a result, these users can inject arbitrary newline-delimited Apache directives into the root .htaccess file. On Apache servers that respect PHP directives, this injection can be combined with a user's media upload (specifically, a polyglot image containing a PHP payload) and an 'auto_prepend_file' directive to execute remote code.
Users are advised to update to Yoast SEO Premium version 27.6.1 or later.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Sep 2, 2026CISA-ADP
Assessed Sep 2, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://wpscan.com/vulnerability/2ddd8362-7248-48de-aab9-74c70e7d5dd6/ | [email protected] | AdvisoryExploitRemedy |
| https://yoast.com/yoast-seo-premium-may-26-2026/ | [email protected] | AdvisoryRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-74 | Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| Yoast SEO Premium | < 27.6.1 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Sep 2, 2026 | New CVE Received | [email protected] |
| Sep 2, 2026 | CVE Modified | CISA-ADP |
Volerion