Vulnerabilities / Shariff Wrapper / WPSEC-2026-4713

Shariff Wrapper <= 4.6.22 - Authenticated (Contributor+) Stored Cross-Site Scripting via Shortcode Attributes

Medium 6.4 CWE-79Fixed in 4.6.23
ID
WPSEC-2026-4713
Plugin
Shariff Wrapper (shariff)
Affected
all versions before 4.6.23
Remediation
Update to 4.6.23 or later.
CVSS 3.1
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
Weakness
CWE-79
Usage
Plugin Medium · Affected versions Low among sites WPSec scans, 2026-12-05
Attack surface
Shariff Wrapper on WPSec AttackSurface
Fix released
Published

Description

The Shariff Wrapper plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the [shariff] shortcode and meta box attributes in all versions up to, and including, 4.6.22. This is due to the plugin adding the data-services attribute by running str_replace() on every occurrence of 'data-url=' in the finished button HTML, combined with insufficient sanitization of attributes such as 'cssclass' and 'style'. These attributes override the sanitized plugin settings and are only HTML-escaped, so attacker-supplied text containing 'data-url=' is rewritten and breaks out of its HTML attribute. 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.

References

Published by WPSec. Provided as is, without warranty. Corrections: contact us.

This advisory as JSON, OSV or Markdown · All advisories: JSON, OSV, RSS

License: CC BY 4.0