Spectra Blocks <= 1.0.8 - Authenticated (Contributor+) Stored Cross-Site Scripting via Block 'htmlAttributes' Attribute
- ID
- WPSEC-2026-0320
- Plugin
- Spectra Blocks – AI Website Builder for the Block Editor (spectra-blocks)
- Affected
- from 1.0.0 before 1.0.9
- Remediation
- Update to 1.0.9 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-10-22
- Attack surface
- Spectra Blocks on WPSec AttackSurface
- Fix released
- Published
Description
The Spectra Blocks plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'htmlAttributes' block attribute in versions 1.0.0 up to, and including, 1.0.8 due to insufficient validation of attribute names and missing protocol filtering of URL-valued attributes before they are output on the block wrapper. Attribute names containing spaces could inject additional event-handler attributes, and attributes such as href or src accepted javascript: URIs. 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
- https://wpsec.com/vuln/WPSEC-2026-0320/
- https://plugins.svn.wordpress.org/spectra-blocks/tags/1.0.9/
- https://wordpress.org/plugins/spectra-blocks/
Published by WPSec. Provided as is, without warranty. Corrections: contact us.
This advisory as JSON or Markdown · All advisories: JSON, RSS