# Social Share Block <= 2.5.0 - Authenticated (Contributor+) CSS Injection via Block Style Attributes

- **ID:** WPSEC-2026-4501
- **Plugin:** Social Share Block – Help Visitors Spread Your Content Everywhere (`b-social-share`), https://wordpress.org/plugins/b-social-share/
- **Affected versions:** all versions before 2.5.1
- **Fixed in:** 2.5.1 (Update to 2.5.1 or later.)
- **Severity:** Medium 4.3 (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N)
- **Weakness:** CWE-74
- **Usage among sites WPSec scans:** plugin Low, affected versions Low (as of 2026-12-03)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/b-social-share
- **Fix released:** 2026-12-02
- **Published:** 2026-12-03
- **URL:** https://wpsec.com/vuln/WPSEC-2026-4501/

## 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/

Source: WPSec, https://wpsec.com/vuln/WPSEC-2026-4501/

License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Free to use, share and adapt, also commercially, if you credit WPSec and link to this advisory.
