GenerateBlocks <= 2.5.0 - Authenticated (Contributor+) Stored Cross-Site Scripting via Dynamic Tag 'replace' Modifier
- ID
- WPSEC-2026-2915
- Plugin
- GenerateBlocks (generateblocks)
- Affected
- from 2.0.0 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:C/C:L/I:L/A:N
- Weakness
- CWE-79
- Usage
- Plugin Low · Affected versions Low among sites WPSec scans, 2026-11-12
- Attack surface
- GenerateBlocks on WPSec AttackSurface
- Fix released
- Published
Description
The GenerateBlocks plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the dynamic tag 'replace' modifier in all versions up to, and including, 2.5.0, due to the modifier performing a string substitution on already-sanitized tag output without sanitizing the result again, which lets the substitution create new markup and attributes, and, in versions 2.4.0 and later, to the dynamic tag save check only detecting a literal '{{' so that HTML-entity-encoded tags could get past it. 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. In versions 2.4.0 and later, the injected tag only becomes active once a user who is allowed to author dynamic data saves or publishes the post.
References
- https://wpsec.com/vuln/WPSEC-2026-2915/
- https://plugins.svn.wordpress.org/generateblocks/tags/2.5.1/
- https://wordpress.org/plugins/generateblocks/
Published by WPSec. Provided as is, without warranty. Corrections: contact us.
This advisory as JSON or Markdown · All advisories: JSON, RSS