CVE-2025-23207

EUVD-2025-0112
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.
Cross-site Scripting
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTPrimary
6.3 MEDIUM
NETWORK
LOW
LOW
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
Base Score
CVSS 3.x
EPSS Score
Percentile: 34.54%
Affected Products (NVD)
VendorProductVersion
katexkatex
0.12.0 ≤
𝑥
< 0.16.21
𝑥
= Vulnerable software versions
Debian logo
Debian Releases
Debian Product
Codename
node-katex
bookworm
no-dsa
bullseye
postponed
forky
0.16.10+~cs6.1.0-8
fixed
sid
0.16.10+~cs6.1.0-8
fixed
trixie
no-dsa
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
node-katex
bionic
not-affected
focal
not-affected
jammy
Fixed 0.13.11+~cs6.0.0-2ubuntu0.1~esm1
released
noble
Fixed 0.16.10+~cs6.1.0-2ubuntu0.24.04.1~esm1
released
oracular
Fixed 0.16.10+~cs6.1.0-2ubuntu0.24.10.1
released
plucky
Fixed 0.16.10+~cs6.1.0-2ubuntu0.25.04.1
released
questing
Fixed 0.16.10+~cs6.1.0-2ubuntu1
released
resolute
Fixed 0.16.10+~cs6.1.0-2ubuntu1
released