Is trim-newlines 4.0 vulnerable?
npm · 3 releases from 4.0.0 to 4.0.2 · latest trim-newlines is 5.0.0 · checked 2 Nov 2026
No known advisories in the last release
trim-newlines 4.0.2, the last 4.0 release, has no known advisories. 1 advisory affects earlier 4.0.x releases, so update to 4.0.2.
Update within 4.0:
npm install trim-newlines@4.0.2Fixed within 4.0.x, affecting earlier releases
Uncontrolled Resource Consumption in trim-newlines
- Affected
- <3.0.1 · >=4.0.0 <4.0.1
- Fixed in
- 3.0.1, 4.0.1
Which of your client projects are still on trim-newlines 4.0?
NPMscan reads the lockfiles in every GitHub repo you pick, finds the exact trim-newlines version each one installs, and checks it against these advisories. Each finding comes with the command that fixes it.
Other trim-newlines versions
Advisory data from OSV.dev (opens OSV.dev in a new tab), which includes the GitHub Advisory Database. Release list from the npm registry. Refreshed daily.