CVE catalog

CVE-2025-23207

KaTeX vulnerabilities

[CVE catalog]

Severity
Medium · CVSS 6.3CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
Published
Source
[NVD] · [CVE record]
EPSS
0.41% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debiannode-katexsid0.16.10+~cs6.1.0-10fixed
Debiannode-katexforky0.16.10+~cs6.1.0-10fixed
Debiannode-katextrixie0.16.10+~cs6.1.0-2vulnerable
Debiannode-katexbookworm0.16.4+~cs6.1.0-1vulnerable
Ubuntunode-katexnobleNot reportedvulnerable
Ubuntunode-katexnoble0.16.10+~cs6.1.0-2ubuntu0.24.04.1~esm1fixed
Ubuntufonts-katexnoble0.16.10+~cs6.1.0-2ubuntu0.24.04.1~esm1fixed
Ubuntukatexnoble0.16.10+~cs6.1.0-2ubuntu0.24.04.1~esm1fixed
Ubuntulibjs-katexnoble0.16.10+~cs6.1.0-2ubuntu0.24.04.1~esm1fixed
Ubuntunode-katexpro0.16.4+~cs6.1.0-1vulnerable
Ubuntunode-katexpro0.16.10+~cs6.1.0-2vulnerable
Ubuntunode-katexpro0.16.10+~cs6.1.0-2ubuntu0.24.04.1~esm1fixed
Ubuntunode-katex25.100.16.10+~cs6.1.0-2vulnerable
Ubuntunode-katex25.100.16.10+~cs6.1.0-2ubuntu1fixed
Ubuntunode-katex26.040.16.10+~cs6.1.0-2ubuntu1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debiannode-katexsourcesid0.16.10+~cs6.1.0-7not yet assignedNot reported[1093446]
Debiannode-katexsourceforky0.16.10+~cs6.1.0-7not yet assignedNot reported[1093446]
Debiannode-katexsourcetrixie(unfixed)not yet assignedNot reported[1093446]
Debiannode-katexsourcebookworm(unfixed)not yet assignedNot reported[1093446]
Ubuntunode-katexdebnoble0.16.10+~cs6.1.0-2ubuntu0.24.04.1~esm1Not reportedNot reportedNot reported
Ubuntufonts-katexdebnoble0.16.10+~cs6.1.0-2ubuntu0.24.04.1~esm1Not reportedNot reportedNot reported
Ubuntukatexdebnoble0.16.10+~cs6.1.0-2ubuntu0.24.04.1~esm1Not reportedNot reportedNot reported
Ubuntulibjs-katexdebnoble0.16.10+~cs6.1.0-2ubuntu0.24.04.1~esm1Not reportedNot reportedNot reported
Ubuntunode-katexdebpro0.16.10+~cs6.1.0-2ubuntu0.24.04.1~esm1Not reportedUBUNTU-CVE-2025-23207Not reported
Ubuntunode-katexdeb25.100.16.10+~cs6.1.0-2ubuntu1Not reportedUBUNTU-CVE-2025-23207Not reported
Ubuntunode-katexdeb26.040.16.10+~cs6.1.0-2ubuntu1Not reportedUBUNTU-CVE-2025-23207Not reported

[Debian bug #1093446]

Notes

[trixie] node-katex: Minor issue [bookworm] node-katex: Minor issue

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [fonts-katex]Affected

    Source package: [node-katex]

    Details (2)
    • 0.16.4+~cs6.1.0-1 · all · bookworm

      Affected

      usn · node-katex · debian · bookworm; usn · node-katex · debian · 12

    • 0.16.4+~cs6.1.0-1 · all · bookworm

      Affected

      usn · node-katex · debian · bookworm; usn · node-katex · debian · 12

  • [katex]Affected

    Source package: [node-katex]

    Details (2)
    • 0.16.4+~cs6.1.0-1 · all · bookworm

      Affected

      usn · node-katex · debian · bookworm; usn · node-katex · debian · 12

    • 0.16.4+~cs6.1.0-1 · all · bookworm

      Affected

      usn · node-katex · debian · bookworm; usn · node-katex · debian · 12

  • [libjs-katex]Affected

    Source package: [node-katex]

    Details (2)
    • 0.16.4+~cs6.1.0-1 · all · bookworm

      Affected

      usn · node-katex · debian · bookworm; usn · node-katex · debian · 12

    • 0.16.4+~cs6.1.0-1 · all · bookworm

      Affected

      usn · node-katex · debian · bookworm; usn · node-katex · debian · 12

[Debian 13 (Trixie)]

  • [fonts-katex]Affected

    Source package: [node-katex]

    Details (2)
    • 0.16.10+~cs6.1.0-2 · all · trixie

      Affected

      usn · node-katex · debian · 13

    • 0.16.10+~cs6.1.0-2 · all · trixie

      Affected

      usn · node-katex · debian · 13

  • [katex]Affected

    Source package: [node-katex]

    Details (2)
    • 0.16.10+~cs6.1.0-2 · all · trixie

      Affected

      usn · node-katex · debian · 13

    • 0.16.10+~cs6.1.0-2 · all · trixie

      Affected

      usn · node-katex · debian · 13

  • [libjs-katex]Affected

    Source package: [node-katex]

    Details (2)
    • 0.16.10+~cs6.1.0-2 · all · trixie

      Affected

      usn · node-katex · debian · 13

    • 0.16.10+~cs6.1.0-2 · all · trixie

      Affected

      usn · node-katex · debian · 13

Observed:

References