printf vulnerable to Regular Expression Denial of Service (ReDoS)
High severity
GitHub Reviewed
Published
Mar 19, 2021
to the GitHub Advisory Database
•
Updated Sep 8, 2023
Description
Published by the National Vulnerability Database
Mar 12, 2021
Reviewed
Mar 15, 2021
Published to the GitHub Advisory Database
Mar 19, 2021
Last updated
Sep 8, 2023
The package printf before 0.6.1 are vulnerable to Regular Expression Denial of Service (ReDoS) via the regex string
in
lib/printf.js
. The vulnerable regular expression has cubic worst-case time complexity.References