Ecosyste.ms: Advisories
An open API service providing security vulnerability metadata for many open source software ecosystems.
Security Advisories: MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLTM4ZmMtd3BxeC0zM2o3
Uncontrolled Resource Consumption in trim-off-newlines
All versions of package trim-off-newlines are vulnerable to Regular Expression Denial of Service (ReDoS) via string processing.
Permalink: https://github.com/advisories/GHSA-38fc-wpqx-33j7JSON: https://advisories.ecosyste.ms/api/v1/advisories/MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLTM4ZmMtd3BxeC0zM2o3
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Moderate
Classification: General
Published: over 2 years ago
Updated: about 1 year ago
CVSS Score: 5.3
CVSS vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Identifiers: GHSA-38fc-wpqx-33j7, CVE-2021-23425
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
Blast Radius: 27.1
Affected Packages
npm:trim-off-newlines
Dependent packages: 82Dependent repositories: 129,051
Downloads: 1,585,335 last month
Affected Version Ranges: < 1.0.3
Fixed in: 1.0.3
All affected versions: 0.0.0, 1.0.0, 1.0.1, 1.0.2
All unaffected versions: 1.0.3