{"cve":"CVE-2025-23207","nvd":{"published":"2025-01-17T22:15:29.523","modified":"2026-06-17T08:52:38.510","status":"Analyzed","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N","score":7.2},"cwes":["CWE-79","CWE-116"],"references":["https://github.com/KaTeX/KaTeX/commit/ff289955e81aab89086eef09254cbf88573d415c","https://github.com/KaTeX/KaTeX/security/advisories/GHSA-cg87-wmx4-v546"],"products":["katex:katex"],"source":"nvd","synced_at":"2026-10-19T21:58:20.756570362+00:00"},"epss":{"cve":"CVE-2025-23207","score":0.00406,"percentile":0.34878,"date":"2026-11-01"},"kev":null,"osv":[{"id":"GHSA-cg87-wmx4-v546","url":"https://osv.dev/vulnerability/GHSA-cg87-wmx4-v546","summary":"KaTeX \\htmlData does not validate attribute names","modified":"2025-01-21T18:31:02Z","packages":[{"ecosystem":"npm","name":"katex","purl":"pkg:npm/katex","ranges":[">=0.12.0 <0.16.21"],"fixed":["0.16.21"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}