stevemao/trim-off-newlines · Security
Uncontrolled Resource Consumption in trim-off-newlines
- GHSA ID
- GHSA-38fc-wpqx-33j7
- CVE ID
- CVE-2021-23425
- Severity
- medium
- Published
- Updated
- CVSS
- 5.3 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
- CVSS v3
- 5.3 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Description
All versions of package trim-off-newlines are vulnerable to Regular Expression Denial of Service (ReDoS) via string processing.
CWEs
- CWE-400 · Uncontrolled Resource Consumption
References
- https://nvd.nist.gov/vuln/detail/CVE-2021-23425 ↗
- https://github.com/stevemao/trim-off-newlines/blob/master/index.js%23L6 ↗
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1567197 ↗
- https://snyk.io/vuln/SNYK-JS-TRIMOFFNEWLINES-1296850 ↗
- https://github.com/stevemao/trim-off-newlines/pull/3 ↗
- https://github.com/advisories/GHSA-38fc-wpqx-33j7 ↗