CVE-2026-103923
LOW 2.1CVSS 4.0KaTeX: Existing prototype pollution can bypass trust restrictions
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.
- Published
- 1 Oct 2026
- Last modified
- 6 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Awaiting Analysis
- Weakness
- CWE-807
- Also known as
- GHSA-238p-pmpm-9mq7
- Sources
- NVDJSONOSV GHSA-238p-pmpm-9mq7JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | LOW 2.1 | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | 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 |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | npm | katex | >= 0.11.0, < 0.18.2 | 0.18.2 |
References
- https://github.com/KaTeX/KaTeX/commit/0adf7e77db6915d991803b29699f82b1ccf8d4f4 · WEB
- https://github.com/KaTeX/KaTeX/pull/4260 · WEB
- https://github.com/KaTeX/KaTeX/releases/tag/v0.18.2 · WEB
- https://github.com/KaTeX/KaTeX/security/advisories/GHSA-238p-pmpm-9mq7 · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-103923 · ADVISORY
- https://github.com/KaTeX/KaTeX · PACKAGE
History
- 25 Nov 2026 21:22 UTC · NVD: first stored (published 1 Oct 2026)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 5 Oct 2026)