GitHub Advisory Database
GHSA-vqc4-v8hc-h2jg
Polynomial regular expression used on uncontrolled data in nitrado.js
Details
Impact
Possible ReDoS with lib input of {{ and with many repetitions of {{|
Patches
Patched in all versions above 0.2.5
Workarounds
No known work arounds.
References
- OWASP: Regular expression Denial of Service - ReDoS
- Wikipedia: ReDoS.
- Wikipedia: Time complexity.
- James Kirrage, Asiri Rathnayake, Hayo Thielecke: Static Analysis for Regular Expression Denial-of-Service Attack.
- Common Weakness Enumeration: CWE-1333.
- Common Weakness Enumeration: CWE-400.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| npm | nitrado.js | All versions before 0.2.5 (fixed in 0.2.5) |