CVE-2023-22467

luxon.js inefficient regular expression complexity vulnerability

HIGH
7.5
CVSS Score
Published: January 4, 2023 at 09:52 PM UTC
Updated: June 17, 2026 at 05:35 AM UTC
2 products affected across 2 vendorsLuxonLuxon

Using luxon by moment?

Get instant alerts when new vulnerabilities affect luxon - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.5
Exploit prediction
EPSS 2%

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

1.0.0 ≤ v < 1.28.12.0.0 ≤ v < 2.5.23.0.0 ≤ v < 3.2.1
Affected range stops below 1.28.1, so it looks safe — our inference, not a vendor statement
Affected range stops below 2.5.2, so it looks safe — our inference, not a vendor statement
Affected range stops below 3.2.1, so it looks safe — our inference, not a vendor statement
v < 1.38.1v < 2.5.2v < 3.2.1
Affected range stops below 1.38.1, so it looks safe — our inference, not a vendor statement
Affected range stops below 2.5.2, so it looks safe — our inference, not a vendor statement
Affected range stops below 3.2.1, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

CVSS

7.5HIGHGitHub_M
Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-1333

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card