Description
KaTeX is a fast, easy-to-use JavaScript library for TeX math rendering on the web. From 0.11.0 until 0.18.2, KaTeX uses ordinary JavaScript property access for the renderer options object, the trust setting, default and processor setting metadata, and namespace lookup and group restoration, allowing inherited properties to be treated as explicitly supplied values. When Object.prototype is already polluted or an attacker controls the options object's prototype, attacker-controlled mathematical expressions can use an inherited trust value to enable trusted rendering and produce links capable of user-interaction cross-site scripting or loading attacker-selected external resources in a consuming application that inserts unsanitized KaTeX output into a page. KaTeX does not itself create the prototype pollution, and rendering an expression alone does not execute script. This issue is fixed in version 0.18.2.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| KaTeX | KaTeX | >= 0.11.0, < 0.18.2 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | node-katex | 0.16.10+~cs6.1.0-10 | — |
| Debian 13 | node-katex | No fix yet | — |
| Debian 12 | node-katex | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | node-katex | No fix yet | — |
| Ubuntu 26.04 LTS | node-katex | No fix yet | — |
| Ubuntu 20.04 LTS | node-katex | No fix yet | — |
| Ubuntu 18.04 LTS | node-katex | No fix yet | — |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 24.04 LTS | node-katex | No fix yet | — |
| Ubuntu Pro 22.04 LTS | node-katex | No fix yet | — |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | python-jupyterlab-templates | 0.5.3-3.1 | openSUSE-SU-2026:12075-1 |
Wolfi
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | code-server | 4.140.0-r4 | — |
| Wolfi rolling | jupyter-base-notebook | 7.6.3-r2 | — |
| Wolfi rolling | langfuse-3-worker | 3.225.12-r2 | — |
| Wolfi rolling | renovate | 44.133.0-r4 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| npm | katex | >= 0.11.0, < 0.18.2 | 0.18.2 | GHSA-238p-pmpm-9mq7 |
Advisories 1
- openSUSE-SU-2026:12075-1 jupyter-jupyterlab-templates-0.5.3-3.1 on GA media SUSE / openSUSE Security Updates · Oct 9, 2026