{"schemaVersion":3,"id":"CVE-2021-33623","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"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2021-05-28T00:00:00.000Z","modified":"2024-08-03T23:58:21.580Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.5,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":10,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":10,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Npm","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":10,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Chainguard","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":10,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":5,"severity":"medium","vector":"AV:N/AC:L/Au:N/C:N/I:N/A:P","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.02925,"percentile":0.86878,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.02925},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.02925,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.02925,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.02925,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.02925,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.02925,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.02925,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.02925,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.02925,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.02925,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.02925,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.02925,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.02925,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.02925,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.02925,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.02925,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.02925,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.02925,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.02925,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.02925,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.02925,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.02925,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.02925,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.02925,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.02925,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.02925,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.02925,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.02925,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.02925,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.02925,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.02925,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.02925,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.02925,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.02925,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.02925,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.02925,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.02925,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.02925,"percentile":0.86878}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.02925,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.02925,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.02925,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.02925,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.02925,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.02925,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.02925,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.02925,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.02925,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.02925,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.02925,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.02925,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.02925,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.02925,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.02925,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.02925,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.02925,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.02925,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.02925,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.02925,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.02925,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.02925,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.02925,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.02925,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.02925,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.02925,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.02925,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.02925,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.02925,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.02925,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.02925,"percentile":0.86878}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption","description":"The product does not properly control the allocation and maintenance of a limited resource.","type":"weakness","status":"Draft","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/400.html"}],"affected":[{"vendor":"chainguard","product":"py3.10-captum","name":"py3.10-captum","label":"py3.10-captum","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/py3.10-captum","purlType":"apk","versions":[{"text":"< 0.9.0-r1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.9.0-r1","eol":null,"hubHref":null},{"vendor":"chainguard","product":"py3.11-captum","name":"py3.11-captum","label":"py3.11-captum","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/py3.11-captum","purlType":"apk","versions":[{"text":"< 0.9.0-r1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.9.0-r1","eol":null,"hubHref":null},{"vendor":"chainguard","product":"py3.12-captum","name":"py3.12-captum","label":"py3.12-captum","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/py3.12-captum","purlType":"apk","versions":[{"text":"< 0.9.0-r1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.9.0-r1","eol":null,"hubHref":null},{"vendor":"chainguard","product":"py3.13-captum","name":"py3.13-captum","label":"py3.13-captum","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/py3.13-captum","purlType":"apk","versions":[{"text":"< 0.9.0-r1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.9.0-r1","eol":null,"hubHref":null},{"vendor":"debian","product":"node-trim-newlines","name":"node-trim-newlines","label":"node-trim-newlines","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/node-trim-newlines","purlType":"deb","versions":[{"text":"< 3.0.0+~3.0.0-1","noFixRecorded":false,"fixedIn":null},{"text":"< 1.0.0-1+deb10u1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.0.0+~3.0.0-1 | < 1.0.0-1+deb10u1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"node-trim-newlines","name":"node-trim-newlines","label":"node-trim-newlines","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/node-trim-newlines","purlType":"deb","versions":[{"text":"< 1.0.0-1ubuntu0.18.04.1","noFixRecorded":false,"fixedIn":null},{"text":"< 1.0.0-1ubuntu0.20.04.1","noFixRecorded":false,"fixedIn":null},{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"< 1.0.0-1ubuntu0.18.04.1 | < 1.0.0-1ubuntu0.20.04.1 | All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"debian","product":"debian_linux","name":"debian linux","label":"debian_linux","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"10.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"10.0","eol":{"isEol":true,"eolDate":"2024-06-30T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"10","label":"10 (Buster)","eolFrom":"2024-06-30T00:00:00.000Z","isLts":false,"isMaintained":true,"latestVersion":"10.13"},"product":{"name":"debian","label":"Debian","category":"os"}},"hubHref":"/vendor/debian/debian_linux"},{"vendor":"netapp","product":"e-series_performance_analyzer","name":"e-series performance analyzer","label":"e-series_performance_analyzer","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"na","noFixRecorded":false,"fixedIn":null}],"versionsText":"na","eol":null,"hubHref":"/vendor/netapp/e-series_performance_analyzer"},{"vendor":"Npm","product":"trim-newlines","name":"trim-newlines","label":"trim-newlines","ecosystem":"Npm","cpePart":null,"purl":"pkg:npm/trim-newlines","purlType":"npm","versions":[{"text":"< 3.0.1","noFixRecorded":false,"fixedIn":null},{"text":"≥ 4.0.0, < 4.0.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.0.1 | ≥ 4.0.0, < 4.0.1","eol":null,"hubHref":null},{"vendor":"trim-newlines_project","product":"trim-newlines","name":"trim-newlines","label":"trim-newlines","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 3.0.1","noFixRecorded":false,"fixedIn":null},{"text":"≥ 4.0.0, < 4.0.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.0.1 | ≥ 4.0.0, < 4.0.1","eol":null,"hubHref":"/vendor/trim-newlines_project/trim-newlines"}],"affectedCount":10,"eol":{"hasEol":true,"count":1},"references":[{"url":"https://www.npmjs.com/package/trim-newlines","label":"www.npmjs.com/package/trim-newlines","hostname":"www.npmjs.com","tags":["REPORT","WEB","Product"]},{"url":"https://github.com/sindresorhus/trim-newlines/releases/tag/v4.0.1","label":"github.com/sindresorhus/trim-newlines/releases/tag/v4.0.1","hostname":"github.com","tags":["REPORT","WEB","FIX","Patch","Release Notes"]},{"url":"https://security.netapp.com/advisory/ntap-20210702-0007/","label":"security.netapp.com/advisory/ntap-20210702-0007/","hostname":"security.netapp.com","tags":["Advisory","Third Party Advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2022/12/msg00033.html","label":"lists.debian.org/debian-lts-announce/2022/12/msg00033.html","hostname":"lists.debian.org","tags":["Mailing List","WEB","Advisory","Third Party Advisory"]},{"url":"https://ubuntu.com/security/CVE-2021-33623","label":"ubuntu.com/security/CVE-2021-33623","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-5999-1","label":"ubuntu.com/security/notices/USN-5999-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-33623","label":"www.cve.org/CVERecord?id=CVE-2021-33623","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-33623","label":"security-tracker.debian.org/tracker/CVE-2021-33623","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-33623","label":"nvd.nist.gov/vuln/detail/CVE-2021-33623","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/sindresorhus/trim-newlines/commit/25246c6ce5eea1c82d448998733a6302a4350d91","label":"github.com/sindresorhus/trim-newlines/commit/25246c6ce5eea1c82d448998733a6302a4350d91","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/sindresorhus/trim-newlines/commit/b10d5f4afef832b16bc56d49fc52c68cbd403869","label":"github.com/sindresorhus/trim-newlines/commit/b10d5f4afef832b16bc56d49fc52c68cbd403869","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/sindresorhus/trim-newlines","label":"github.com/sindresorhus/trim-newlines","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://security.netapp.com/advisory/ntap-20210702-0007","label":"security.netapp.com/advisory/ntap-20210702-0007","hostname":"security.netapp.com","tags":["WEB"]}],"lineage":{"upstream":[],"downstream":["RHSA-2022:5555"],"duplicates":[],"related":["CGA-6H8G-9RJJ-GPGP"]},"timeline":[{"kind":"published","date":"2021-05-28T00:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-03T23:58:21.580Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":31,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T14:27:28.853Z","stale":false,"partial":false}}