# CVE-2021-33623: Uncontrolled Resource Consumption in trim-newlines

- Severity: High 7.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.93%, higher than 87% of CVEs (2026-12-01)
- Published: 2021-05-28T00:00:00.000Z
- Modified: 2026-09-10T03:49:05.648Z
- Also known as: GHSA-7p7h-4mm5-852v
- Weaknesses: CWE-400
- Assigned by: mitre

## Description

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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- trim-newlines (npm): before 3.0.1; from 4.0.0 before 4.0.1
- trim-newlines_project trim-newlines: before 3.0.1; from 4.0.0 before 4.0.1
- netapp e-series_performance_analyzer: no versions given
- debian debian_linux: 10.0

## Every score

- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:N/A:P`

## References

- <https://www.npmjs.com/package/trim-newlines> (product, web)
- <https://github.com/sindresorhus/trim-newlines/releases/tag/v4.0.1> (patch, release-notes, web)
- <https://security.netapp.com/advisory/ntap-20210702-0007/> (third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2022/12/msg00033.html> (mailing-list, third-party-advisory, 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)
- <https://security.netapp.com/advisory/ntap-20210702-0007> (web)

## Sources

- CVE List: [CVE-2021-33623](https://www.cve.org/CVERecord?id=CVE-2021-33623), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-7p7h-4mm5-852v](https://github.com/advisories/GHSA-7p7h-4mm5-852v), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2021-33623](https://nvd.nist.gov/vuln/detail/CVE-2021-33623), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-33623 · Whole record: https://cve.day/CVE-2021-33623.json · Rebuilt by cve.day 2026-11-25T22:58:01.585Z
