Skip to main content

Shariff Wrapper CVE-2026-4334

| EUVDEUVD-2026-32750 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-05-28 Wordfence GHSA-xp36-f956-vp7p
6.4
CVSS 3.1 · NVD
View

Attack ChainAIDerived

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

  1. Recon
    Obtain or register Contributor-level WordPress account
  2. Delivery
    Craft [shariff headline] shortcode with %total event handler payload
  3. Exploit
    Publish or save post containing injected shortcode
  4. Install
    Victim browser loads poisoned page
  5. C2
    Post-sanitization str_replace injects event handler into rendered HTML
  6. Execute
    Attacker JavaScript executes in victim browser context
  7. Impact
    Exfiltrate session tokens or redirect victim

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

Exploitation requires an authenticated WordPress account with Contributor-level privileges or higher (confirmed by CVSS PR:L), as Contributors are the minimum role permitted to create posts and invoke shortcodes. The [shariff] shortcode must be processed and rendered on an accessible page - exploitation is blocked if the Shariff Wrapper plugin is deactivated, if shortcode execution is globally disabled, or if the site restricts shortcode usage to higher-privileged roles such as Editor or Administrator. The specific attack path runs through the 'headline' parameter and the %total placeholder substitution logic inside the style attribute, as implemented in shariff.php at lines 868, 965, 1143, and 1144. Exploitation is further limited to WordPress deployments where Contributor accounts are obtainable via open registration, credential theft, or weak password policies. Once the payload is stored, no additional victim interaction is required (UI:N) - any browser loading the injected page triggers execution, including unauthenticated site visitors.

Impact

The CVSS 6.4 Medium score is driven by AV:N (network exploitable), AC:L (low complexity, no special conditions), PR:L (requires Contributor-level authentication), UI:N (no victim interaction needed to trigger payload once stored), and S:C (Changed scope - injected scripts execute in victim browsers outside the plugin's trust boundary). The Changed scope is the most consequential signal here, elevating real-world impact beyond what a Medium score implies, as every subsequent visitor to a poisoned page is silently attacked. EPSS data was not provided in the available intelligence, so exploitation probability cannot be quantified. KEV status is absent, and no POC is identified at time of analysis, indicating this is not currently confirmed as a mass-exploitation target. The primary real-world risk limiter is the PR:L prerequisite: attackers must already hold Contributor credentials. However, on sites with open user registration or shared authoring workflows - common in WordPress ecosystems - this is a readily achievable condition. The persistence of stored XSS over reflected XSS meaningfully amplifies impact, as a single poisoned post can affect all visitors indefinitely until patched or removed.

Exploit ScenarioDerived

An attacker registers or compromises a Contributor-level WordPress account on a target site, then creates a post or page embedding the [shariff] shortcode with a crafted 'headline' value that exploits the %total placeholder substitution to inject a JavaScript event handler into the rendered style attribute. After the post is published or made accessible, every visitor who loads that page - authenticated or not - executes the attacker's script, allowing session cookie exfiltration, forced redirection to a phishing page, or silent keylogging. No public exploit identified at time of analysis, but the attack requires no specialized tooling given the low complexity rating (AC:L) and is replicable from the trac source references identifying the exact vulnerable lines.

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 – May 28, 2026

Stored Cross-Site Scripting in the Shariff Wrapper WordPress plugin (all versions ≤ 4.6.20) allows authenticated Contributors to inject persistent JavaScript payloads via the 'headline' parameter of the [shariff] shortcode, which then execute in any visitor's browser upon page load. The Changed scope (S:C in CVSS) means the injected payload escapes the plugin's context and runs inside victim browsers across the full WordPress front-end, enabling session theft, credential harvesting, or drive-by redirection. No public exploit identified at time of analysis, and the vulnerability is not listed in CISA KEV, though the low attack complexity and persistent nature of stored XSS make it a meaningful risk on multi-author or open-registration WordPress installations.

RemediationAI

Update the Shariff Wrapper plugin to the version corresponding to or superseding trac changeset revision 3532532, available through the WordPress plugin repository. The exact patched release version tag is not independently confirmed from the available data - consult the Wordfence advisory at https://www.wordfence.com/threat-intel/vulnerabilities/id/e037d22a-3d4d-4f70-a749-6d6c552c7553 for the confirmed fixed release once published. As an interim compensating control, restrict Contributor-level account creation and audit existing Contributor accounts for unauthorized access - note this may impact legitimate editorial workflows. Alternatively, disable the Shariff Wrapper plugin entirely until patching is confirmed; this eliminates the attack surface but removes social sharing functionality site-wide. WordPress administrators can also use a Web Application Firewall rule (e.g., Wordfence WAF) to block shortcode parameter injection patterns targeting the headline attribute as a temporary measure, though WAF rules carry a risk of false positives on legitimate content.

Affected VersionsENISA

Shariff Wrapper 0 ≤4.6.20

Affected Packages

euvd shariff_wrapper 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 Shariff Wrapper plugin (CPE: cpe:2.3:a:3uu:shariff_wrapper:*:*:*:*:*:*:*:*, vendor: 3uu) is a WordPress social sharing button plugin that processes the [shariff] shortcode. The root cause is CWE-79 (Improper Neutralization of Input During Web Page Generation - Stored XSS), arising from a flawed sanitization pipeline. The plugin applies a custom wp_kses implementation with a permissive allowed HTML tag list to the 'headline' parameter, but then performs a str_replace operation on the already-sanitized output to substitute the %total placeholder inside a style attribute. Because str_replace runs after sanitization, it can reintroduce HTML event handlers (e.g., onerror=, onmouseover=) that the sanitizer never evaluated. The vulnerable logic is traceable to shariff.php at lines 868, 965, 1143, and 1144 per the WordPress plugin trac references supplied in the advisory. This is a classic post-sanitization injection pattern, where the developer assumed sanitization was a terminal step rather than accounting for subsequent content transformation.

Know when Shariff Wrapper 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 Shariff Wrapper plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'headline' parameter in the [shariff] shortcode in all versions up to, and including, 4.6.20 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. The vulnerability occurs because the plugin uses a custom wp_kses implementation with permissive allowed HTML tags, and then performs a str_replace operation that injects HTML after sanitization, allowing event handlers to be introduced through the %total placeholder in the style attribute.

Threat Intelligence Overview

EPSS Score
0.0%
Top 89% exploitable
Data Quality
4 sources
Confidence: Medium

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