CVE-2025-23207

HIGH EPSS 29.9%
Published Jan 17, 20251y ago · Modified Jun 17, 20262w ago
7.2 CVSS 3.1
High
Find Similar
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
7.2
Exploitability
3.9
Impact
2.7
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

VendorProductVersionRange
katexkatex*≥0.12.0  –  <0.16.21

References 2

  • github.com https://github.com/KaTeX/KaTeX/commit/ff289955e81aab89086eef09254cbf88573d415c
    Patch
  • github.com https://github.com/KaTeX/KaTeX/security/advisories/GHSA-cg87-wmx4-v546
    Third Party Advisory

Remediation

  • github.com https://github.com/KaTeX/KaTeX/commit/ff289955e81aab89086eef09254cbf88573d415c
    Patch