Skip to content
OpenAdvisories
Low · 2.1 CVE-2026-103923 EUVD-2026-90979GHSA-238p-pmpm-9mq7

KaTeX: Existing prototype pollution can bypass trust restrictions

Published Oct 1, 2026 · Updated Oct 6, 2026 · Assigned by GitHub_M

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

VendorProductAffectedFixed
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.

ReleasePackageFixed inAdvisory
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 —
ReleasePackageFixed inAdvisory
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)
ReleasePackageFixed inAdvisory
Ubuntu Pro 24.04 LTS node-katex No fix yet —
Ubuntu Pro 22.04 LTS node-katex No fix yet —
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed python-jupyterlab-templates 0.5.3-3.1 openSUSE-SU-2026:12075-1

Wolfi

ReleasePackageFixed inAdvisory
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

EcosystemPackageAffectedFixedRecord
npm katex >= 0.11.0, < 0.18.2 0.18.2 GHSA-238p-pmpm-9mq7

Advisories 1

References