CVE-2023-22467: luxon.js inefficient regular expression complexity vulnerability

Published Jan 4, 2023
·
Updated

# Impact 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 is the same bug as Moment's https://github.com/moment/moment/security/advisories/GHSA-wc69-rhjr-hc9g # Workarounds Limit the length of the input. # References There is an excellent writeup of the same issue in Moment: https://github.com/moment/moment/pull/6015#issuecomment-1152961973 # Details `DateTime.fromRFC2822("(".repeat(500000))` takes a couple minutes to complete.

Affected Software

6 affected componentsFixes available
npm/luxon>=1.0.0<1.28.1
1.28.1
npm/luxon>=3.0.0<3.2.1
3.2.1
npm/luxon>=2.0.0<2.5.2
2.5.2
Momentjs Luxon Node.js>=1.0.0<1.28.1
Momentjs Luxon Node.js>=2.0.0<2.5.2
Momentjs Luxon Node.js>=3.0.0<3.2.1

Event History

Jan 4, 2023
CVE Published
12:00 AM
Data Sourced
12:00 AM
RemedyDescriptionSeverityWeaknessAffected Software
CVE Published
via MITRE·09:52 PM
Data Sourced
via MITRE·09:52 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·10:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Jan 9, 2023
Advisory Published
via GitHub·02:10 PM
Jan 11, 2023
Data Sourced
via Red Hat·08:19 AM
DescriptionSeverityAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2023-22467?

CVE-2023-22467 is a vulnerability in the luxon package that leads to a regular expression denial of service.

2

Which software is affected by CVE-2023-22467?

The vulnerability affects Luxon versions 1.x prior to 1.38.1, 2.x prior to 2.5.2, and 3.x prior to 3.2.1.

3

What is Luxon?

Luxon is a JavaScript library used for working with dates and times.

4

What is the severity of CVE-2023-22467?

CVE-2023-22467 has a severity rating of high (7) based on the Common Vulnerability Scoring System (CVSS) v3.0.

5

How can I fix CVE-2023-22467?

To fix CVE-2023-22467, upgrade Luxon to version 1.38.1 for 1.x branch, 2.5.2 for 2.x branch, or 3.2.1 for 3.x branch.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203