KaTeX: Existing prototype pollution can bypass trust restrictions
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Active
- Attack complexity
- Low
- Attack requirements
- Present
- Impact type
- —
- Confidentiality · integrity · availability
- None · None · None
- Fix status
- Partial Red Hat: 3 without a fix
Attack profile from CVSS 4.0 · CNA. Fix status from CNA, GitHub and Red Hat.
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| KaTeX | KaTeX | 0.11.0 to before 0.18.2 | 0.18.2 | Patch available | CNA |
| — | katex (npm) | 0.11.0 to before 0.18.2 | 0.18.2 | Patch available | GHSA-238p-pmpm-9mq7 |
- KaTeX VendorKaTeX Affected 0.11.0 to before 0.18.2 Fixed in 0.18.2 Patch available CNA
- katex (npm) Vendor— Affected 0.11.0 to before 0.18.2 Fixed in 0.18.2 Patch available GHSA-238p-pmpm-9mq7
Remediation
- Fix · CNA KaTeX (KaTeX) Fixed in 0.18.2
- Fix · GHSA-238p-pmpm-9mq7 katex (npm) Fixed in 0.18.2 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Build of Podman Desktop | Affected | No fix yet: Fix deferred |
| Red Hat OpenShift AI (RHOAI) | Affected | No fix yet: Fix deferred |
| Red Hat OpenShift Dev Spaces | Affected | No fix yet: Fix deferred |
Not affected: 1 product
- Red Hat Hardened Images
Timeline
- 2026-10-02 Threatist record created from CVE-2026-103923
- 2026-10-06 CISA SSVC decision points changed
- 2026-10-06 Alias added: GHSA-238p-pmpm-9mq7
- 2026-10-06 Fix available: npm/[email protected] · GHSA-238p-pmpm-9mq7
- 2026-10-06 CVSS score added · GHSA-238p-pmpm-9mq7
- 2026-10-06 Weakness changed · GHSA-238p-pmpm-9mq7
- 2026-10-06 6 new references · GHSA-238p-pmpm-9mq7
References
More KaTeX vulnerabilities
- TI-2024-18803 KaTeX's maxExpand bypassed by Unicode sub/superscripts CVSS 3.1MEDIUM 6.5
- TI-2025-16992 \htmlData does not validate attribute names in KaTeX CVSS 3.1HIGH 7.2
- TI-2024-18802 KaTeX's maxExpand bypassed by \edef CVSS 3.1MEDIUM 6.5
- TI-2024-18804 KaTeX's \includegraphics does not escape filename CVSS 3.1MEDIUM 6.3
- TI-2024-18805 KaTeX is missing normalization of the protocol in URLs allows bypassing forbidden protocols CVSS 3.1MEDIUM 5.5
Sources
- CVE-2026-103923 · CVE Program
- CVE-2026-103923 · NVD
- FIRST EPSS
- GHSA-238p-pmpm-9mq7 · GitHub Advisory Database · CC BY 4.0
- CVE-2026-103923 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences