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

High 7.5 Published Updated

Regular expression denial of service in MathJax library, though vendor disputes risk as regexes are not applied to user input.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2023-39663?

CVE-2023-39663 is a high-severity denial of service vulnerability in n/a, published on 29 Aug 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.

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

Weakness: CWE-1333

Which versions are affected by CVE-2023-39663?

2 open source packages ship an affected version, including mathjax. It affects 1 product.

PackageAffectedFixed in
mathjax npmAll versions to 2.7.9None
mathjax npmAll versions to 2.7.9None

Products include Mathjax Mathjax.

How do I fix CVE-2023-39663?

No fix has been published for CVE-2023-39663 yet. Limit exposure of the affected software until one is available.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2023-39663 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-39663 exists.

Sources

Also known as GHSA-v638-q856-grg8, UBUNTU-CVE-2023-39663.

Is CVE-2023-39663 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free