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

Medium 5.4 CWE-79Fixed in 3.7.5
ID
WPSEC-2026-4548
Plugin
SyntaxHighlighter Evolved (syntaxhighlighter)
Affected
all versions before 3.7.5
Remediation
Update to 3.7.5 or later.
CVSS 3.1
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Weakness
CWE-79
Usage
Plugin Low · Affected versions Low among sites WPSec scans, 2026-12-03
Attack surface
SyntaxHighlighter Evolved on WPSec AttackSurface
Fix released
Published

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

Published by WPSec. Provided as is, without warranty. Corrections: contact us.

This advisory as JSON, OSV or Markdown · All advisories: JSON, OSV, RSS

License: CC BY 4.0