Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconObtain contributor-level WordPress credentials
-
DeliveryAuthenticate to WordPress dashboard
-
ExploitNavigate to plugin settings or post meta
-
InstallInject malicious script into 'other_attributes' parameter
-
C2Save changes to database
-
ExecuteVisitor accesses injected page
-
ImpactBrowser executes stored script
-
Step 8Attacker exfiltrates session cookie or injects malware
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Attacker must possess valid WordPress user credentials with contributor-level access or higher (Contributor, Author, Editor, or Administrator roles). This is not a default condition; the WordPress installation must have granted such access to the attacker or to a compromised account. No special plugin configuration is required-the vulnerability exists in the default installation of versions 4.2.1 and earlier. The 'other_attributes' parameter must be exposed in a user-accessible interface (plugin settings, post meta, or shortcode parameters) and must be rendered in page output without escaping. Exploitation is blocked if: (1) the WordPress installation does not have the Contextual Related Posts plugin active, (2) the attacker has only Subscriber or no authenticated role, (3) the plugin version is 4.2.2 or later with the patch applied, or (4) a WAF or other control prevents the injection of special characters into the 'other_attributes' parameter. |
| Impact | CVSS score of 6.4 (Medium) with attack vector Network, attack complexity Low, and privileges required Level (authenticated contributor) reflects moderate real-world risk. The score's impact is limited to Confidentiality and Integrity (C:L, I:L) and excludes Availability, because XSS typically does not directly crash systems. However, the scope is Changed (S:C), meaning the vulnerability can affect resources beyond the vulnerable component-in this case, any user viewing an injected page is at risk of session hijacking, credential theft, or malware distribution. The exploitation prerequisites are concrete: attacker must have WordPress contributor-level or higher access, which is not default but is commonly granted to content creators and guest authors. The lack of user interaction required (UI:N) and low complexity (AC:L) mean exploitation is trivial once access is obtained. No EPSS score, KEV status, or POC availability data was provided in the input; therefore, we cannot assess current exploitation probability or active abuse. The true risk depends on whether the plugin is widely deployed and whether contributor accounts are routinely created in target environments. A contributor account might be obtained through credential compromise, weak password policies, or supply chain social engineering targeting content creators. |
| Exploit ScenarioDerived | An authenticated attacker with WordPress contributor privileges logs in and edits or creates a post or page. In the plugin's settings or meta fields for the post/page, they inject a malicious script into the 'other_attributes' parameter, such as: |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 18, 2026
Stored Cross-Site Scripting in Contextual Related Posts plugin for WordPress (versions up to 4.2.1) allows authenticated contributors and above to inject malicious scripts via the 'other_attributes' parameter, which execute in the browsers of all users viewing affected pages. The vulnerability stems from insufficient input sanitization and output escaping, enabling privilege escalation from contributor-level access to site-wide code execution. No active exploitation in the wild has been confirmed, but the attack requires only authenticated access at a low privilege level that is commonly granted in WordPress environments.
RemediationAI
Vendor-released patch: versions 4.2.2 and above. Upgrade the Contextual Related Posts plugin to the latest version (4.2.2 or later) through the WordPress plugin dashboard or via the plugin repository. Verify the changeset at https://plugins.trac.wordpress.org/changeset/3481684/contextual-related-posts to confirm the fix includes sanitization of the 'other_attributes' parameter using wp_kses_post() or wp_esc_attr() and output escaping where the parameter is rendered. As an interim compensating control for environments where immediate patching is not feasible, restrict contributor-level and higher role access to trusted users only; audit existing contributor accounts and revoke access for inactive or suspicious accounts. Additionally, implement a Web Application Firewall (WAF) rule to block POST/PUT requests containing 'other_attributes' parameters with suspicious patterns (e.g., '<script', 'javascript:', event handlers like 'onclick'). Note that WAF mitigation adds latency and may produce false positives if legitimate content uses special characters; the primary remediation remains upgrading to the patched version.
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 Contextual Related Posts plugin (cpe:2.3:a:ajay:contextual_related_posts:*:*:*:*:*:*:*:*) is a WordPress plugin that displays related content on pages and posts. The vulnerability resides in the handling of the 'other_attributes' parameter, which is passed to HTML rendering functions without proper sanitization (via functions like wp_kses, sanitize_text_field, or equivalent escaping) or output escaping (via wp_esc_attr or similar). CWE-79 (Improper Neutralization of Input During Web Page Generation) identifies the root cause: user-controlled input is incorporated into HTML/JavaScript context without neutralizing special characters that enable script injection. In a WordPress context, this allows attackers to break out of attribute contexts or inject script tags that bypass browser same-origin policies when the page is rendered.
Know when Contextual Related Posts 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:L/PR:L/UI:N/S:C/C:L/I:L/A:N
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
DescriptionCVE.org
The Contextual Related Posts plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'other_attributes' parameter in versions up to, and including, 4.2.1 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.
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
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
More in Contextual Related Posts
View allThe Contextual Related Posts WordPress plugin before 3.3.1 does not validate and escape some of its block options before
SQL injection vulnerability in the Contextual Related Posts plugin before 1.8.10.2 for WordPress allows remote attackers
Cross-site request forgery (CSRF) vulnerability in the Contextual Related Posts plugin before 1.8.7 for WordPress allows
Stored cross-site scripting in the Contextual Related Posts WordPress plugin, affecting all versions up to and including
Contextual Related Posts versions before 4.2.2 contain an authorization bypass vulnerability that allows unauthenticated
EUVD-2026-23674
NVD
CVE.org
EPSS
Vulnrichment
VulDB
GitHub PoC
Exploit-DB