Vulnerabilities/

Luxon Inefficient Regular Expression Complexity vulnerability

Severity:
High

Description

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.

Recommendation

Update the luxon package to the latest compatible version. Followings are version details:

References

Related Issues

Tags:
npm
luxon
Anything's wrong? Let us know Last updated on February 12, 2024