Vulnerabilities / Social Share Block / WPSEC-2026-4501
Social Share Block <= 2.5.0 - Authenticated (Contributor+) CSS Injection via Block Style Attributes
Medium 4.3
CWE-74Fixed in 2.5.1
- ID
- WPSEC-2026-4501
- Plugin
- Social Share Block – Help Visitors Spread Your Content Everywhere (b-social-share)
- Affected
- all versions before 2.5.1
- Remediation
- Update to 2.5.1 or later.
- CVSS 3.1
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N
- Weakness
- CWE-74
- Usage
- Plugin Low · Affected versions Low among sites WPSec scans, 2026-12-03
- Attack surface
- Social Share Block on WPSec AttackSurface
- Fix released
- Published
Description
The Social Share Block plugin for WordPress is vulnerable to CSS Injection via the Social Share block's style attributes (background colour and gradient, overlay colour, border, shadow and icon colour or gradient) in all versions up to, and including, 2.5.0, due to these values being added to the block's generated CSS without validation. This makes it possible for authenticated attackers, with contributor-level access and above, to inject arbitrary CSS rules into pages that display the block.
References
- https://wpsec.com/vuln/WPSEC-2026-4501/
- https://plugins.svn.wordpress.org/b-social-share/tags/2.5.1/
- https://wordpress.org/plugins/b-social-share/
Published by WPSec. Provided as is, without warranty. Corrections: contact us.
This advisory as JSON, OSV or Markdown · All advisories: JSON, OSV, RSS