Section Collection <= 2.0.18 - Authenticated (Contributor+) CSS Injection via Block Typography Attributes
- ID
- WPSEC-2026-4512
- Plugin
- Section Collection – Add Ready-made Sections to Design Modern Websites (section-collection)
- Affected
- all versions before 2.0.19
- Remediation
- Update to 2.0.19 or later.
- CVSS 3.1
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
- Weakness
- CWE-74
- Usage
- Plugin Low · Affected versions Low among sites WPSec scans, 2026-12-03
- Attack surface
- Section Collection on WPSec AttackSurface
- Fix released
- Published
Description
The Section Collection plugin for WordPress is vulnerable to CSS Injection via block typography attributes (such as the font family, font category and Google Fonts URL) of the Slider, Modern FAQ and Service sections in all versions up to, and including, 2.0.18. This is due to the sections' front-end scripts inserting these values without sanitization into a <style> element and a Google Fonts @import rule, which lets them close the CSS rule they belong to. This makes it possible for authenticated attackers with contributor-level access and above to inject arbitrary CSS into pages that display these sections, which can be used to deface or spoof page content and to load resources from off-site hosts when the page is viewed.
References
- https://wpsec.com/vuln/WPSEC-2026-4512/
- https://plugins.svn.wordpress.org/section-collection/tags/2.0.19/
- https://wordpress.org/plugins/section-collection/
Published by WPSec. Provided as is, without warranty. Corrections: contact us.
This advisory as JSON, OSV or Markdown · All advisories: JSON, OSV, RSS