Skip to content

← Public intelligence

npm package

luxon

Open actionable advisories and recorded vendor fixes. This public package view has no inventory attached and cannot establish whether your deployment is affected. A vendor fix never resolves your finding; verify your installed version and the source guidance.

Open advisories

1 actionable advisory, newest first. Withdrawn advisories and news are excluded. Coverage is partial.

  1. High, CVSS 7.5npmAmendedPublished

    Luxon Inefficient Regular Expression Complexity vulnerability

    CVE-2023-22467 · GHSA-3xq5-wjfh-ppjc

    Affected
    • npm luxon >= 2.0.0, < 2.5.2; >= 3.0.0, < 3.2.1; >= 1.0.0, < 1.28.1
    Fixed in
    3.2.12.5.21.28.1· Vendor fix available
    Issue
    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.

    Recommended action: Upgrade to 3.2.1, 2.5.2 or 1.28.1 by release line, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →