Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconObtain WordPress Author credentials
-
DeliverySubmit crafted redirect origin with injected newline + auto_prepend_file directive
-
ExploitPlugin writes unsanitized payload to .htaccess
-
InstallUpload polyglot JPEG/PHP webshell via media upload
-
C2Trigger any HTTP request to the site
-
ExecuteApache pre-executes PHP payload
-
ImpactRemote code execution as web server user
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Input neutralization, injection prevention
|
| Exploitation Conditions | Three specific conditions must all be true simultaneously: (1) Yoast SEO Premium before 27.6.1 is installed and active; (2) file-based redirect mode is explicitly enabled in the plugin's redirect manager - this is a non-default configuration that must be deliberately activated by an administrator; (3) the site runs on Apache with PHP directive processing active (mod_php, PHP-FPM with .htaccess INI override support, or equivalent - not nginx, which ignores .htaccess). The attacker must hold at least WordPress Author-level credentials, allowing both access to the redirect-creation endpoint and standard media file uploads. Exploitation is constrained by the Author role requirement (rules out anonymous attackers), the Apache+PHP-directives stack requirement (rules out nginx and IIS deployments), and the non-default file-based redirect mode (rules out sites using the plugin's default redirect storage). |
| Impact | The provided CVSS vector CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H conflicts internally with the description: PR:H (high privileges) is inconsistent with exploitation by Author-level WordPress users, who represent a low-privilege authenticated role (PR:L). This discrepancy causes the published score of 6.6 to understate risk for sites where Authors are untrusted third parties (e.g., multi-author blogs, content platforms). AC:H is accurate because three specific conditions must simultaneously hold: file-based redirect mode enabled, Apache with PHP-directive processing, and attacker possession of at least Author credentials. No CISA KEV listing is present, and EPSS data was not provided, so mass-exploitation evidence is absent. However, a public exploit published by WPScan substantially lowers the operational barrier, and the chained impact is full server compromise (C:H/I:H/A:H), making this a high-priority patch for any multi-author WordPress site running on Apache with file-based redirects enabled. |
| Exploit ScenarioDerived | An attacker with WordPress Author credentials submits a redirect origin containing a URL-encoded newline sequence followed by a PHP auto_prepend_file Apache directive targeting the attacker's upload directory path. The plugin writes this unsanitized string to .htaccess, embedding the directive. The attacker then uploads a valid-header JPEG file whose trailing bytes contain a PHP webshell via WordPress's standard media upload interface; on the next HTTP request to any page on the site, Apache's PHP handler pre-executes the polyglot file, granting the attacker a shell as the web server user. A public PoC referenced via WPScan (https://wpscan.com/vulnerability/2ddd8362-7248-48de-aab9-74c70e7d5dd6/) confirms the feasibility of this chain. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 02, 2026
Control-character (newline) injection in Yoast SEO Premium before 27.6.1 allows an authenticated WordPress Author to write arbitrary Apache directives into the site's root .htaccess file via unsanitized redirect origins in file-based redirect mode. On Apache servers that process PHP directives, the injected auto_prepend_file directive can be chained with a polyglot image upload (available to Author-role users) to achieve full Remote Code Execution as the web server process. A public exploit is available via WPScan, making real-world exploitation feasible wherever the three required conditions align.
RemediationAI
Update Yoast SEO Premium to version 27.6.1 or later immediately, as confirmed by the vendor advisory at https://yoast.com/yoast-seo-premium-may-26-2026/. If an immediate upgrade is not possible, disable the file-based redirect mode in the plugin's redirect settings - this severs the write path to .htaccess and eliminates the injection vector, though redirect functionality managed via that mode will stop working until the feature can be re-enabled post-upgrade. As an additional compensating control, restrict the redirect-creation capability to Editor or Administrator roles if the plugin supports role-gating, preventing Author-level users from accessing the vulnerable endpoint. On the server side, setting .htaccess to read-only (chmod 444) prevents writes from the web process entirely, but this will break legitimate plugin-managed redirects and should be treated as a temporary measure. Do not rely solely on WAF rules to strip newlines from redirect origin parameters, as encoding bypasses may exist.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The vulnerability is a CRLF/newline-injection flaw (analogous to CWE-93, improper neutralization of CRLF sequences) in Yoast SEO Premium's file-based redirect management feature. When this mode is active, the plugin writes user-supplied redirect origins directly to Apache's .htaccess file without stripping control characters. Because .htaccess is a per-directory Apache configuration file parsed on every request, an injected newline followed by an Apache directive is immediately honoured by the server. The exploit chain leverages the auto_prepend_file PHP INI directive - injectable via .htaccess on mod_php/PHP-FPM setups that allow INI overrides - combined with WordPress's standard media upload mechanism (accessible to Authors) to deliver a polyglot JPEG/PHP payload. The CPE cpe:2.3:a:unknown:yoast_seo_premium:*:*:*:*:*:*:*:* uses a placeholder vendor; the actual vendor is Yoast. Affected versions are all releases before 27.6.1.
Know when Yoast Seo Premium gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H
Author-level access is PR:L; AC:H reflects the required conjunction of file-based redirect mode, Apache, and PHP-directive processing; full RCE yields C/I/A:H.
Primary rating from Vendor (WPScan).
CVSS VectorVendor: WPScan
Lifecycle Timeline
2DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
EUVD-2026-70033
GHSA-2r8j-r49x-m28r
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB