Urvanov Syntax Highlighter <= 2.9.4 - Authenticated (Contributor+) Stored Cross-Site Scripting via Backquote Conversion
- 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
- https://wpsec.com/vuln/WPSEC-2026-4727/
- https://plugins.svn.wordpress.org/urvanov-syntax-highlighter/tags/2.9.5/
- https://wordpress.org/plugins/urvanov-syntax-highlighter/
Published by WPSec. Provided as is, without warranty. Corrections: contact us.
This advisory as JSON, OSV or Markdown · All advisories: JSON, OSV, RSS