Urvanov Syntax Highlighter <= 2.9.4 - Authenticated (Contributor+) Stored Cross-Site Scripting via Backquote Conversion

Medium 6.4 CWE-79Fixed in 2.9.5
ID
WPSEC-2026-4727
Plugin
Urvanov Syntax Highlighter (urvanov-syntax-highlighter)
Affected
all versions before 2.9.5
Remediation
Update to 2.9.5 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-12-06
Attack surface
Urvanov Syntax Highlighter on WPSec AttackSurface
Fix released
Published

Description

The urvanov-syntax-highlighter plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the backquote-to-code conversion of post content in all versions up to, and including, 2.9.4 due to the plugin applying a regular expression across the entire rendered content, including inside HTML tags, attributes, comments and raw-text elements, and inserting the captured text between <code> tags without escaping. Because this transformation runs after WordPress sanitizes the content, backticks placed in otherwise safe attributes can be used to break out of the surrounding markup. 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

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