Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. luxon
  4. ›
  5. CVE-2023-22467

CVE-2023-22467: Inefficient Regular Expression Complexity

January 4, 2023 (updated February 12, 2024)

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.

References

  • github.com/advisories/GHSA-3xq5-wjfh-ppjc
  • github.com/moment/luxon/commit/5ab3bf64a10da929a437629cdb2f059bb83212bf
  • github.com/moment/luxon/security/advisories/GHSA-3xq5-wjfh-ppjc
  • github.com/moment/moment/pull/6015
  • github.com/moment/moment/security/advisories/GHSA-wc69-rhjr-hc9g
  • nvd.nist.gov/vuln/detail/CVE-2023-22467

Code Behaviors & Features

Detect and mitigate CVE-2023-22467 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 1.0.0 before 1.28.1, all versions starting from 2.0.0 before 2.5.2, all versions starting from 3.0.0 before 3.2.1

Fixed versions

  • 1.28.1
  • 2.5.2
  • 3.2.1

Solution

Upgrade to versions 1.28.1, 2.5.2, 3.2.1 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-1333: Inefficient Regular Expression Complexity

Source file

npm/luxon/CVE-2023-22467.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:17:14 +0000.