Medium severity5.3NVD Advisory· Published Aug 18, 2021· Updated Jun 17, 2026
CVE-2021-23425
CVE-2021-23425
Description
All versions of package trim-off-newlines are vulnerable to Regular Expression Denial of Service (ReDoS) via string processing.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
trim-off-newlinesnpm | < 1.0.3 | 1.0.3 |
Affected products
3- cpe:2.3:a:trim-off-newlines_project:trim-off-newlines:*:*:*:*:*:node.js:*:*Range: <1.0.3
- trim-off-newlines/trim-off-newlinesdescription
Patches
Vulnerability mechanics
References
6- snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1567197nvdExploitThird Party AdvisoryWEB
- snyk.io/vuln/SNYK-JS-TRIMOFFNEWLINES-1296850nvdExploitThird Party AdvisoryWEB
- github.com/advisories/GHSA-38fc-wpqx-33j7ghsaADVISORY
- github.com/stevemao/trim-off-newlines/blob/master/index.js%23L6nvdBroken LinkThird Party AdvisoryWEB
- nvd.nist.gov/vuln/detail/CVE-2021-23425ghsaADVISORY
- github.com/stevemao/trim-off-newlines/pull/3ghsaWEB
News mentions
0No linked articles in our index yet.