Node katex: KaTeX users who render untrusted mathematical expressions with renderToString could encounter malicious
Affects node-katexSource GCVE Database
Not known to be exploited · CVSS 7.2 High · fixed in 0.13.11+~cs6.0.0-2ubuntu0.1~esm1 : patch node-katex soon.
Data as of 24 Nov 2026, 21:15 UTC
- EPSS
- 0.4% chance of exploitation in 30 days – higher than 35% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 0.13.11+~cs6.0.0-2ubuntu0.1~esm1, 0.16.10+~cs6.1.0-2ubuntu0.24.04.1~esm1, 0.16.10+~cs6.1.0-2ubuntu1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:NExploitation evidence
Disclosed: evidence found.
CVE published 17 Jan 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 24 Nov 2026.
What to do
Upgrade the Ubuntu node-katex to 0.13.11+~cs6.0.0-2ubuntu0.1~esm1 (package) or 0.16.10+~cs6.1.0-2ubuntu0.24.04.1~esm1 (package) or 0.16.10+~cs6.1.0-2ubuntu1 (package).
Patches and advisories
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 26.04 LTSnode-katexpkg:deb/ubuntu/node-katex?arch=source&distro=resoluteOther threats | Affected
| Fixed in
|
Ubuntu 25.10node-katexpkg:deb/ubuntu/node-katex?arch=source&distro=questingOther threats | Affected
| Fixed in
|
Ubuntu Pro 24.04 LTSnode-katexpkg:deb/ubuntu/node-katex?arch=source&distro=esm-apps/nobleOther threats | Affected
| Fixed in
|
Ubuntu Pro 22.04 LTSnode-katexpkg:deb/ubuntu/node-katex?arch=source&distro=esm-apps/jammyOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
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.
References
- ubuntu.com/security/CVE-2025-23207 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2025-23207 (opens in a new tab)
- github.com/KaTeX/KaTeX/security/advisories/GHSA-cg87-wmx4-v546 (opens in a new tab)
- github.com/KaTeX/KaTeX/commit/ff289955e81aab89086eef09254cbf88573d415c (opens in a new tab)
- ubuntu.com/security/notices/USN-7572-1 (opens in a new tab)