# 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`), https://wordpress.org/plugins/urvanov-syntax-highlighter/
- **Affected versions:** all versions before 2.9.5
- **Fixed in:** 2.9.5 (Update to 2.9.5 or later.)
- **Severity:** Medium 6.4 (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N)
- **Weakness:** CWE-79
- **Usage among sites WPSec scans:** plugin Medium, affected versions Low (as of 2026-12-06)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/urvanov-syntax-highlighter
- **Fix released:** 2026-12-05
- **Published:** 2026-12-06
- **URL:** https://wpsec.com/vuln/WPSEC-2026-4727/

## 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/

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

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.
