luxon is vulnerable to Regular Expression Denial of Service (ReDoS). The vulnerability exists via the replace
parameter in regexParser.js
, which does not properly handle user-untrusted data allowing the attacker to supply arbitrary input to the function, resulting in a system crash.
github.com/moment/luxon/commit/204cdfe65e4a3f0e3a9d0d7489278152d2c51234
github.com/moment/luxon/commit/5ab3bf64a10da929a437629cdb2f059bb83212bf
github.com/moment/luxon/commit/612e0c778d2dedb947f3e5160c46601688ea4959
github.com/moment/luxon/security/advisories/GHSA-3xq5-wjfh-ppjc
github.com/moment/moment/pull/6015#issuecomment-1152961973
github.com/moment/moment/security/advisories/GHSA-wc69-rhjr-hc9g