# SyntaxHighlighter Evolved <= 3.7.4 - Authenticated (Contributor+) Stored Cross-Site Scripting via Code Shortcodes

- **ID:** WPSEC-2026-4548
- **Plugin:** SyntaxHighlighter Evolved (`syntaxhighlighter`), https://wordpress.org/plugins/syntaxhighlighter/
- **Affected versions:** all versions before 3.7.5
- **Fixed in:** 3.7.5 (Update to 3.7.5 or later.)
- **Severity:** Medium 5.4 (CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N)
- **Weakness:** CWE-79
- **Usage among sites WPSec scans:** plugin Low, affected versions Low (as of 2026-12-03)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/syntaxhighlighter
- **Fix released:** 2026-12-02
- **Published:** 2026-12-03
- **URL:** https://wpsec.com/vuln/WPSEC-2026-4548/

## Description

The SyntaxHighlighter Evolved plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the plugin's code shortcodes in all versions up to, and including, 3.7.4. This is due to the plugin rebuilding each shortcode's opening tag from its parsed attributes when it HTML-encodes shortcode contents on save and decodes them for editing, and to classic editor scripts that find code shortcodes differently from WordPress's shortcode parser. WordPress unescapes sequences such as "\x5d" in attribute values, so the rebuilt tag can end at a different place. Code that was decoded for editing then sits outside the shortcode and is saved without being encoded again. This makes it possible for authenticated attackers with contributor-level access and above, who lack the unfiltered_html capability, to inject arbitrary web scripts. The scripts are stored when a user who can post unfiltered HTML edits and saves the attacker's post in the classic editor, and then run whenever a user opens the injected page.

## References

- https://wpsec.com/vuln/WPSEC-2026-4548/
- https://plugins.svn.wordpress.org/syntaxhighlighter/tags/3.7.5/
- https://wordpress.org/plugins/syntaxhighlighter/

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

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.
