All CVEs / Trim-off-newlines Project
CVE-2021-23425Trim-off-newlines Project Trim-off-newlines
Medium 5.3 No auth needed
Follow: this CVE · Trim-off-newlines Project · Trim-off-newlines Project Trim-off-newlines We alert you by email or Slack (account required).
- Priority
- 47
- CVSS 3.1
- 5.3
- EPSS
- 1.9% probability of exploitation in 30 days · percentile 81
- Auth required
- No
- Published
- Aug 18, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
What happens
All versions of package trim-off-newlines are vulnerable to Regular Expression Denial of Service (ReDoS) via string processing.
What to do
- Apply the vendor's security update for Trim-off-newlines.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | trim-off-newlines |
< 1.0.3 |
1.0.3 |
npm install trim-off-newlines@1.0.3 |
Per OSV / GitHub Advisories (GHSA-38fc-wpqx-33j7). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| trim-off-newlines_project | trim-off-newlines | < 1.0.3 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Broken Link Third Party Advisory
- snyk.io Exploit Third Party Advisory
- snyk.io Exploit Third Party Advisory