CVE-2025-23207
HIGH EPSS 29.9%
Published Jan 17, 20251y ago · Modified Jun 17, 20262w ago
7.2 CVSS 3.1
Published Jan 17, 2025 1y ago
Last Modified Jun 17, 2026 2w ago
Description
KaTeX is a fast, easy-to-use JavaScript library for TeX math rendering on the web. KaTeX users who render untrusted mathematical expressions with `renderToString` could encounter malicious input using `\htmlData` that runs arbitrary JavaScript, or generate invalid HTML. Users are advised to upgrade to KaTeX v0.16.21 to remove this vulnerability. Users unable to upgrade should avoid use of or turn off the `trust` option, or set it to forbid `\htmlData` commands, forbid inputs containing the substring `"\\htmlData"` and sanitize HTML output from KaTeX.
CVSS Details
Base Score
Exploitability
Impact
Vector string
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N Attack Vector Network
Attack Complexity Low
Privileges Required None
User Interaction None
Scope Changed
Confidentiality Low
Integrity Low
Availability None
Threat Intelligence
EPSS Exploit Probability
29.9% percentile
Exploit & Patch Status
No Known Exploit
Patch Available
Weaknesses 2
CWE-116
CWE-79 Cross-site Scripting Injection
Affected Products 1
| Vendor | Product | Version | Range |
|---|---|---|---|
| katex | katex | * | ≥0.12.0 – <0.16.21 |
References 2
- github.com https://github.com/KaTeX/KaTeX/commit/ff289955e81aab89086eef09254cbf88573d415c
- github.com https://github.com/KaTeX/KaTeX/security/advisories/GHSA-cg87-wmx4-v546
Remediation
- github.com https://github.com/KaTeX/KaTeX/commit/ff289955e81aab89086eef09254cbf88573d415c