adaltas/node-csv-parse · Security
Regular Expression Denial of Service in csv-parse
- GHSA ID
- GHSA-582f-p4pg-xc74
- CVE ID
- CVE-2019-17592
- Severity
- high
- Published
- Updated
- CVSS
- 7.5 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- CVSS v3
- 7.5 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Description
Versions of csv-parse prior to 4.4.6 are vulnerable to Regular Expression Denial of Service. The __isInt() function contains a malformed regular expression that processes large specially-crafted input very slowly, leading to a Denial of Service. This is triggered when using the cast option.
Recommendation
Upgrade to version 4.4.6 or later.
CWEs
- CWE-20 · Improper Input Validation
- CWE-400 · Uncontrolled Resource Consumption
References
- https://nvd.nist.gov/vuln/detail/CVE-2019-17592 ↗
- https://github.com/adaltas/node-csv-parse/commit/b9d35940c6815cdf1dfd6b21857a1f6d0fd51e4a ↗
- https://www.npmjs.com/advisories/1171 ↗
- https://security.netapp.com/advisory/ntap-20191127-0002/ ↗
- https://lists.fedoraproject.org/archives/list/[email protected]/message/Z36UKPO5F3PQ3Q2POMF5LEKXWAH5RUFP/ ↗
- https://github.com/advisories/GHSA-582f-p4pg-xc74 ↗