Skip to main content
← All vulnerabilities
CVE-2026-103923GHSA-238P-PMPM-9MQ7

KaTeX: Existing prototype pollution can bypass trust restrictions

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 0.18.2
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • KaTeX KaTeX

    From 0.11.0 · fixed in 0.18.2

  • katexnpm

    From 0.11.0 · fixed in 0.18.2

References 4

GitHub · KaTeX/KaTeX