CVE-2026-4334

Shariff Wrapper <= 4.6.20 - Authenticated (Contributor+) Cross-Site Scripting

Published May 28, 2026 CVSS 3.1 · 6.4 Medium EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

The Shariff Wrapper plugin stores malicious scripts entered through the headline shortcode. Because the plugin uses a permissive custom sanitization routine followed by a str_replace that re‑injects HTML, event handlers can be added via a style attribute placeholder. A compromised page will run the attacker’s code whenever a site visitor loads the affected page, potentially leading to data theft, session hijacking, or defacement. This is a classic Stored XSS vulnerability (CWE‑79).

Affected Systems

WordPress sites running Shariff Wrapper version 4.6.20 or earlier. The flaw is tied to the 3uu:Shariff Wrapper vendor and can be exploited by any authenticated user with Contributor level or higher. The payload is injected via the headline parameter in the [shariff] shortcode.

Risk and Exploitability

The public CVSS score of 6.4 places this flaw in the medium severity range. EPSS data is not available and the vulnerability is not listed in the CISA Known Exploited Vulnerabilities catalog, indicating that exploitation is currently not widespread. Nonetheless, the attack requires only Contributor‑level access and the ability to edit or create a post containing the [shariff] shortcode. Once the payload is stored, the injected code executes automatically for all visitors to that post, giving the attacker a broad attack surface across the site’s user base.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Shariff Wrapper to the latest version, 4.6.21 or later, which removes the vulnerable headline handling.
  • If an upgrade is not immediately possible, restrict the use of the [shariff] shortcode or edit permissions for the headline field to trusted admins and remove the shortcode from existing content.
  • Audit all posts containing the [shariff] shortcode to identify and delete any malicious code, and monitor the site for signs of XSS exploitation.

Generated by OpenCVE AI on May 28, 2026 at 10:20 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared 3uu
3uu shariff Wrapper
Wordpress
Wordpress wordpress
Vendors & Products 3uu
3uu shariff Wrapper
Wordpress
Wordpress wordpress
Type Values Removed Values Added
Description 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.
Title Shariff Wrapper <= 4.6.20 - Authenticated (Contributor+) Cross-Site Scripting
Weaknesses CWE-79
References
Metrics cvssV3_1

{'score': 6.4, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N'}

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
Wordfence
Published
Updated
May 28, 2026, 10:31 AM
Reserved
Mar 17, 2026, 2:11 PM
Status
Deferred
Published
May 28, 2026, 9:16 AM
Modified
Jun 17, 2026, 10:56 AM