CVE-2025-23207CWE-116

\htmlData does not validate attribute names in KaTeX

Medium · published January 17, 2025

CVSS v3.1
6.3
EPSS
0%
Percentile
34.7
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
6.3 · MEDIUM
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
CVSS v4.0
Not supplied
EPSS
0.00415 · 34.7th percentile
Weakness
CWE-116 · Improper Encoding or Escaping of Output
Published
2025-01-17T21:25Z
EPSS history
Timeline
  • 17 JAN 21:25Z
    \htmlData does not validate attribute names in KaTeX
    cvelistv5