Skip to main content

Yoast SEO Premium CVE-2026-10821

| EUVDEUVD-2026-70033 MEDIUM
Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') (CWE-74)
2026-09-02 WPScan GHSA-2r8j-r49x-m28r
6.6
CVSS 3.1 · Vendor: WPScan
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Obtain WordPress Author credentials
  2. Delivery
    Submit crafted redirect origin with injected newline + auto_prepend_file directive
  3. Exploit
    Plugin writes unsanitized payload to .htaccess
  4. Install
    Upload polyglot JPEG/PHP webshell via media upload
  5. C2
    Trigger any HTTP request to the site
  6. Execute
    Apache pre-executes PHP payload
  7. Impact
    Remote 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.5% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Yoast SEO Premium 0 <27.6.1

Affected Packages

euvd yoast_seo_premium fix: 27.6.1

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

Vendor (WPScan) PRIMARY 6.6 MEDIUM
AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 7.5 HIGH

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.

3.1 AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:H/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (WPScan).

CVSS VectorVendor: WPScan

Attack Vector
Network
Attack Complexity
High
Privileges Required
High
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

2
Patch available
Sep 02, 2026 - 16:02 EUVD
CVE Published
Sep 02, 2026 - 14:16 cve.org
MEDIUM 6.6

DescriptionCVE.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

EPSS Score
0.5%
Top 58% exploitable
Prevalence
High
Yoast SEO Premium is one of the most widely installed paid WordPress plugins globally.
Exploit
POC
Public exploit code exists
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC Yes
EPSS 0.5%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
High
Technical Impact
Total

Priority Score

54
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +33
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy