CVE-2023-22467: luxon.js inefficient regular expression complexity vulnerability
Vulnerability summary
CVE-2023-22467 is a high (CVSS 7.5) vulnerability in moment luxon. EPSS estimates a 1.79% chance of exploitation in the next 30 days, higher than 78.3% of scored vulnerabilities.
Severe, CVSS 7.5 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 2% (FIRST, 03-11-2026)
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 0 · Related 1Timeline
- 04-01-2023PublishedVulnerability first disclosed.
- 13-02-2025Last modifiedVulnerability information updated.
Description
Luxon is a library for working with dates and times in JavaScript. On the 1.x branch prior to 1.38.1, the 2.x branch prior to 2.5.2, and the 3.x branch on 3.2.1, Luxon's `DateTime.fromRFC2822() has quadratic (N^2) complexity on some specific inputs. This causes a noticeable slowdown for inputs with lengths above 10k characters. Users providing untrusted data to this method are therefore vulnerable to (Re)DoS attacks. This issue also appears in Moment as CVE-2022-31129. Versions 1.38.1, 2.5.2, and 3.2.1 contain patches for this issue. As a workaround, limit the length of the input.
CVSS metrics
3 scores · 3 sources · 1 version- OSV · NpmEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- NVDNIST7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS trend
Probability
1.79%
Chance of exploitation in the next 30 days
Percentile
78%
Versus all other CVEs
30-day change
Increase +0.08 pp
From 1.71% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Moment1 product
- luxon≥ 1.0.0, < 1.38.1 | ≥ 2.0.0, < 2.5.2 | ≥ 3.0.0, < 3.2.1
Momentjs1 product
- luxon≥ 1.0.0, < 1.28.1 | ≥ 2.0.0, < 2.5.2 | ≥ 3.0.0, < 3.2.1
Npm1 product
- luxon≥ 1.0.0, < 1.28.1 | ≥ 2.0.0, < 2.5.2 | ≥ 3.0.0, < 3.2.1
3 vendors · 3 products
References
10 links- github.com/moment/luxon/security/advisories/GHSA-3xq5-wjfh-ppjcX Refsource CONFIRMWEBThird Party Advisory
- github.com/moment/moment/security/advisories/GHSA-wc69-rhjr-hc9gX Refsource MISCWEBNot ApplicableThird Party Advisory
- github.com/moment/luxon/commit/5ab3bf64a10da929a437629cdb2f059bb83212bfX Refsource MISCWEBPatchThird Party Advisory
- github.com/moment/luxonPACKAGE