KaTeX is a JavaScript library for TeX math rendering on the web. KaTeX users who render untrusted mathematical expressions could encounter malicious input using `\includegraphics` that runs arbitrary JavaScript, or generate invalid HTML. Upgrade to KaTeX v0.16.10 to remove this vulnerability.
KaTeX is a JavaScript library for TeX math rendering on the web. KaTeX users who render untrusted mathematical expressions could encounter malicious input using `\includegraphics` that runs arbitrary JavaScript, or generate invalid HTML. Upgrade to KaTeX v0.16.10 to remove this vulnerability.
KaTeX is a JavaScript library for TeX math rendering on the web. KaTeX users who render untrusted mathematical expressions could encounter malicious input using `\includegraphics` that runs arbitrary JavaScript, or generate invalid HTML. Upgrade to KaTeX v0.16.10 to remove this vulnerability.
### Impact
KaTeX users who render untrusted mathematical expressions could encounter malicious input using `\includegraphics` that runs arbitrary JavaScript, or generate invalid HTML.
### Patches
Upgrade to KaTeX v0.16.10 to remove this vulnerability.
### Workarounds
* Avoid use of or turn off the `trust` option, or set it to forbid `\includegraphics` commands.
* Forbid inputs containing the substring `"\\includegraphics"`.
* Sanitize HTML output from KaTeX.
### Details
`\includegraphics` did not properly quote its filename argument, allowing it to generate invalid or malicious HTML that runs scripts.
### For more information
If you have any questions or comments about this advisory:
* Open an issue or security advisory in the [KaTeX repository](https://github.com/KaTeX/KaTeX/)
* Email us at [email protected]
EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON.
Original publisher date fields
datePublished: Mar 25, 2024, 7:53:01 PM
dateUpdated: Aug 2, 2024, 12:48:49 AM
No normalized affected-package data is projected for this source revision. The original publisher record may contain additional product and version evidence; this does not establish that a package is unaffected.
NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON.
Source analysis status: Analyzed
Weakness classifications: CWE-116
Original publisher date fields
published: 2024-03-25T20:15:08.370
lastModified: 2026-06-17T07:21:15.303
1 source CPE criteria · context only
cpe:2.3:a:katex:katex:*:*:*:*:*:*:*:*
The original JSON retains the logical configuration operators, exclusions and version bounds.
No normalized affected-package data is projected for this source revision. The original publisher record may contain additional product and version evidence; this does not establish that a package is unaffected.