CVE-2021-33623
HIGH 7.5CVSS 3.1Uncontrolled Resource Consumption in trim-newlines
The trim-newlines package before 3.0.1 and 4.x before 4.0.1 for Node.js has an issue related to regular expression denial-of-service (ReDoS) for the .end() method.
- Published
- 28 May 2021
- Last modified
- 10 Sep 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-400
- Also known as
- GHSA-7p7h-4mm5-852v
- Sources
- NVDJSONOSV GHSA-7p7h-4mm5-852vJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | trim-newlines_project | trim-newlinescpe:2.3:a:trim-newlines_project:trim-newlines:*:*:*:*:*:node.js:*:* |
< 3.0.1 | 3.0.1 |
| NVD | trim-newlines_project | trim-newlinescpe:2.3:a:trim-newlines_project:trim-newlines:*:*:*:*:*:node.js:*:* |
>= 4.0.0, < 4.0.1 | 4.0.1 |
| NVD | netapp | e-series_performance_analyzercpe:2.3:a:netapp:e-series_performance_analyzer:-:*:*:*:*:*:*:* |
(no version) | |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* |
= 10.0 | |
| OSV | npm | trim-newlines | < 3.0.1 | 3.0.1 |
| OSV | npm | trim-newlines | >= 4.0.0, < 4.0.1 | 4.0.1 |
References
- https://github.com/sindresorhus/trim-newlines/releases/tag/v4.0.1 · Patch, Release Notes, WEB
- https://lists.debian.org/debian-lts-announce/2022/12/msg00033.html · Mailing List, Third Party Advisory, WEB
- https://security.netapp.com/advisory/ntap-20210702-0007/ · Third Party Advisory, WEB
- https://www.npmjs.com/package/trim-newlines · Product, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-33623 · ADVISORY
- https://github.com/sindresorhus/trim-newlines/commit/25246c6ce5eea1c82d448998733a6302a4350d91 · WEB
- https://github.com/sindresorhus/trim-newlines/commit/b10d5f4afef832b16bc56d49fc52c68cbd403869 · WEB
- https://github.com/sindresorhus/trim-newlines · PACKAGE
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 28 May 2021)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 7 Jun 2021)