GitHub Advisoryadvisory · npm
GHSA-38fc-wpqx-33j7 Uncontrolled Resource Consumption in trim-off-newlines
MEDIUM
Official page ↗
- Aliases
- CVE-2021-23425
- Ecosystem
- npm
- Packages
- trim-off-newlines
- Severity
- Moderate
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
- Weaknesses
- CWE-400
- Reviewed
- 2021-08-26
Affected packages
• npm trim-off-newlines: < 1.0.3 → fixed in 1.0.3
Description
All versions of package trim-off-newlines are vulnerable to Regular Expression Denial of Service (ReDoS) via string processing.
Related
Alias · CVE (1)
- CVE-2021-23425 All versions of package trim-off-newlines are vulnerable to Regular Expression Denial of Service (ReDoS) via string processing. vulnerability
Weakness · CWE (1)
- CWE-400 Uncontrolled Resource Consumption weakness
References
- https://nvd.nist.gov/vuln/detail/CVE-2021-23425 advisory
- https://github.com/stevemao/trim-off-newlines/pull/3 web
- https://github.com/stevemao/trim-off-newlines package
- https://github.com/stevemao/trim-off-newlines/blob/master/index.js%23L6 web
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1567197 web
- https://snyk.io/vuln/SNYK-JS-TRIMOFFNEWLINES-1296850 web