Live threats

All CVEs / Momentjs

CVE-2023-22467Momentjs Luxon

High 7.5 No auth needed

Priority
60
CVSS 3.1
7.5
EPSS
2.1%
probability of exploitation in 30 days · percentile 83
Auth required
No
Published
Jan 4, 2023
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-1333
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Luxon.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm luxon ≥ 1.0.0 < 1.28.1 1.28.1 npm install luxon@1.28.1
npm luxon ≥ 2.0.0 < 2.5.2 2.5.2 npm install luxon@2.5.2
npm luxon ≥ 3.0.0 < 3.2.1 3.2.1 npm install luxon@3.2.1

Per OSV / GitHub Advisories (GHSA-3xq5-wjfh-ppjc). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
momentjsluxon≥ 1.0.0 < 1.28.1
momentjsluxon≥ 2.0.0 < 2.5.2
momentjsluxon≥ 3.0.0 < 3.2.1

Official sources

References

Links published by the sources. Open them with care.