Skip to main content
CVE-2025-23207VulnerabilityPublished Updated

Node katex: KaTeX users who render untrusted mathematical expressions with renderToString could encounter malicious

Affects node-katexSource GCVE Database

0
Compare

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

CVSS 3.1 base score
7.2High
How severe the flaw is on the 0–10 CVSS scale.
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:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 17 Jan 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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).

Affected software

ProductAffectedFixed in
Ubuntu 26.04 LTSnode-katexpkg:deb/ubuntu/node-katex?arch=source&distro=resoluteOther threatsAffected
  • <0.16.10+~cs6.1.0-2ubuntu1
Fixed in
  • 0.16.10+~cs6.1.0-2ubuntu1
Ubuntu 25.10node-katexpkg:deb/ubuntu/node-katex?arch=source&distro=questingOther threatsAffected
  • <0.16.10+~cs6.1.0-2ubuntu1
Fixed in
  • 0.16.10+~cs6.1.0-2ubuntu1
Ubuntu Pro 24.04 LTSnode-katexpkg:deb/ubuntu/node-katex?arch=source&distro=esm-apps/nobleOther threatsAffected
  • <0.16.10+~cs6.1.0-2ubuntu0.24.04.1~esm1
Fixed in
  • 0.16.10+~cs6.1.0-2ubuntu0.24.04.1~esm1
Ubuntu Pro 22.04 LTSnode-katexpkg:deb/ubuntu/node-katex?arch=source&distro=esm-apps/jammyOther threatsAffected
  • <0.13.11+~cs6.0.0-2ubuntu0.1~esm1
Fixed in
  • 0.13.11+~cs6.0.0-2ubuntu0.1~esm1

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

Community reviews

Loading reviews…