litejs/uri-template-lite · Security
uri-template-lite Regular Expression Denial of Service
- GHSA ID
- GHSA-chw2-6c7r-37p7
- CVE ID
- CVE-2021-43309
- Severity
- medium
- Published
- Updated
- CVSS
- 5.9 · CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
- CVSS v3
- 5.9 · CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
Description
An exponential ReDoS (Regular Expression Denial of Service) can be triggered in the uri-template-lite npm package, when an attacker is able to supply arbitrary input to the "URI.expand" method.
CWEs
- CWE-697 · Incorrect Comparison
- CWE-1333 · Inefficient Regular Expression Complexity
References
- https://nvd.nist.gov/vuln/detail/CVE-2021-43309 ↗
- https://research.jfrog.com/vulnerabilities/uri-template-lite-redos-xray-211351/ ↗
- https://github.com/litejs/uri-template-lite/commit/cbeec2b2a275d819fb534137a155df14729706f8 ↗
- https://github.com/litejs/uri-template-lite/commits/v22.9.0 ↗
- https://github.com/advisories/GHSA-chw2-6c7r-37p7 ↗