# CVE-2023-39663: MathJax Regular expression Denial of Service (ReDoS)

- Severity: High 7.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.82%, higher than 58% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-08-29T00:00:00.000Z
- Modified: 2026-09-10T03:49:57.725Z
- Also known as: GHSA-v638-q856-grg8
- Weaknesses: CWE-1333
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: mitre

## Description

Mathjax up to v2.7.9 was discovered to contain two Regular expression Denial of Service (ReDoS) vulnerabilities in MathJax.js via the components pattern and markdownPattern. NOTE: the vendor disputes this because the regular expressions are not applied to user input; thus, there is no risk.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- mathjax (npm): up to 2.7.9
- mathjax mathjax: up to 2.7.9

## Every score

- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/mathjax/MathJax/issues/3074> (exploit, issue-tracking, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-39663> (advisory)

## Sources

- CVE List: [CVE-2023-39663](https://www.cve.org/CVERecord?id=CVE-2023-39663), CVE Terms of Use, modified 2024-10-02
- GitHub Advisory Database: [GHSA-v638-q856-grg8](https://github.com/advisories/GHSA-v638-q856-grg8), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2023-39663](https://nvd.nist.gov/vuln/detail/CVE-2023-39663), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-39663 · Whole record: https://cve.day/CVE-2023-39663.json · Rebuilt by cve.day 2026-11-25T22:58:27.417Z
