# CVE-2021-33623

- Priority: **Prioritise**
- Reason: Severe, CVSS 7.5 (NVD); no exploitation reported by the 5 checked sources; EPSS 3% (FIRST, 04-12-2026)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2021-05-28 · Modified: 2024-08-03
- Aliases: UBUNTU-CVE-2021-33623, USN-5999-1, DEBIAN-CVE-2021-33623, DLA-3247-1, GHSA-7p7h-4mm5-852v, CGA-58xx-w2gx-h5h7, CGA-5rgp-9c5q-jcxp, CGA-6f42-w47j-7ggr, CGA-gr36-c2j5-f6qw, CGA-hg6v-rpg4-p3gc, CGA-r335-f8fw-4x35, CGA-rpf3-48j4-p7mv, CGA-wm67-g5wx-fxfr
- Record: https://cvemate.com/vulnerability/CVE-2021-33623 · JSON: https://cvemate.com/vulnerability/CVE-2021-33623/json

## Description

```text
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.
```

## Signals

- CVSS: 7.5 high (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- EPSS: 2.901%, percentile 87.398%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- chainguard py3.10-captum (Chainguard): \< 0.9.0-r1
- chainguard py3.11-captum (Chainguard): \< 0.9.0-r1
- chainguard py3.12-captum (Chainguard): \< 0.9.0-r1
- chainguard py3.13-captum (Chainguard): \< 0.9.0-r1
- debian node-trim-newlines (Debian): \< 3.0.0+~3.0.0-1 \| \< 1.0.0-1+deb10u1
- ubuntu node-trim-newlines (Ubuntu): All versions (No fix recorded) \| \< 1.0.0-1ubuntu0.18.04.1 \| \< 1.0.0-1ubuntu0.20.04.1
- debian debian\_linux: 10.0
- netapp e-series\_performance\_analyzer: na
- Npm trim-newlines (Npm): \< 3.0.1 \| ≥ 4.0.0, \< 4.0.1
- trim-newlines\_project trim-newlines: \< 3.0.1 \| ≥ 4.0.0, \< 4.0.1

## References

- <https://www.npmjs.com/package/trim-newlines>
- <https://github.com/sindresorhus/trim-newlines/releases/tag/v4.0.1>
- <https://security.netapp.com/advisory/ntap-20210702-0007/>
- <https://lists.debian.org/debian-lts-announce/2022/12/msg00033.html>
- <https://ubuntu.com/security/CVE-2021-33623>
- <https://ubuntu.com/security/notices/USN-5999-1>
- <https://www.cve.org/CVERecord?id=CVE-2021-33623>
- <https://security-tracker.debian.org/tracker/CVE-2021-33623>
- <https://nvd.nist.gov/vuln/detail/CVE-2021-33623>
- <https://github.com/sindresorhus/trim-newlines/commit/25246c6ce5eea1c82d448998733a6302a4350d91>
- <https://github.com/sindresorhus/trim-newlines/commit/b10d5f4afef832b16bc56d49fc52c68cbd403869>
- <https://github.com/sindresorhus/trim-newlines>
- <https://security.netapp.com/advisory/ntap-20210702-0007>

---

Data as of 2026-12-05T07:51:45.322Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
