# WP QuickLaTeX <= 3.8.8 - Unauthenticated Stored Cross-Site Scripting via Equation Numbers and Labels

- **ID:** WPSEC-2026-3176
- **Plugin:** WP QuickLaTeX (`wp-quicklatex`), https://wordpress.org/plugins/wp-quicklatex/
- **Affected versions:** from 3.7.1 before 3.8.9
- **Fixed in:** 3.8.9 (Update to 3.8.9 or later.)
- **Severity:** High 7.2 (CVSS:3.1/AV:N/AC:L/PR:N/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-11-16)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/wp-quicklatex
- **Fix released:** 2026-11-15
- **Published:** 2026-11-16
- **URL:** https://wpsec.com/vuln/WPSEC-2026-3176/

## Description

The WP QuickLaTeX plugin for WordPress is vulnerable to Stored Cross-Site Scripting via equation numbers and labels (set with \tag{}, or with the eqno, eqlabel, reqno and leqno attributes, including inside \quicklatex{}) in all versions up to, and including, 3.8.8. The plugin decodes HTML entities in formula text and then writes these values into the rendered equation markup and \ref{} links without escaping. Because the parser also runs on comment text, entity-encoded markup survives WordPress's comment filtering. This makes it possible for unauthenticated attackers to post comments that inject arbitrary web scripts. The scripts run whenever a user views the comment, including administrators moderating it.

## References

- https://wpsec.com/vuln/WPSEC-2026-3176/
- https://plugins.svn.wordpress.org/wp-quicklatex/tags/3.8.9/
- https://wordpress.org/plugins/wp-quicklatex/

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

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.
