{"id":"CVE-2021-33623","aliases":["CVE-2021-33623","GHSA-7p7h-4mm5-852v"],"related":[],"kind":"vulnerability","state":"published","title":"Uncontrolled Resource Consumption in trim-newlines","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","text":"@rkesters/gnuplot is an easy to use node module to draw charts using gnuplot and ps2pdf. 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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"El paquete trim-newlines versiones anteriores a 3.0.1 y versiones 4.x anteriores a 4.0.1 para Node.js, presenta un problema relacionado con una denegación de servicio de expresión regular (ReDoS) para el método .end()","source":"nvd"}],"published":"2021-05-28T00:00:00.000Z","modified":"2026-09-10T03:49:05.648Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:N/I:N/A:P","score":5,"rating":"MEDIUM"}],"cwes":["CWE-400"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"3.0.1"}],"ecosystem":"npm","package":"trim-newlines","purl":"pkg:npm/trim-newlines","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"4.0.0","status":"affected","fixed":"4.0.1"}],"ecosystem":"npm","package":"trim-newlines","purl":"pkg:npm/trim-newlines","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"3.0.1"},{"status":"affected","introduced":"4.0.0","fixed":"4.0.1"}],"vendor":"trim-newlines_project","product":"trim-newlines","cpe":"cpe:2.3:a:trim-newlines_project:trim-newlines:*:*:*:*:*:node.js:*:*","source":"nvd"},{"ranges":[],"vendor":"netapp","product":"e-series_performance_analyzer","cpe":"cpe:2.3:a:netapp:e-series_performance_analyzer:-:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"10.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://www.npmjs.com/package/trim-newlines","tags":["product","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/sindresorhus/trim-newlines/releases/tag/v4.0.1","tags":["patch","release-notes","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://security.netapp.com/advisory/ntap-20210702-0007/","tags":["third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2022/12/msg00033.html","tags":["mailing-list","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-33623","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/sindresorhus/trim-newlines/commit/25246c6ce5eea1c82d448998733a6302a4350d91","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/sindresorhus/trim-newlines/commit/b10d5f4afef832b16bc56d49fc52c68cbd403869","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/sindresorhus/trim-newlines","tags":["package"],"sources":["ghsa"]},{"url":"https://security.netapp.com/advisory/ntap-20210702-0007","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-33623","url":"https://www.cve.org/CVERecord?id=CVE-2021-33623","licence":"CVE Terms of Use","modified":"2024-08-03T23:58:21.580Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-7p7h-4mm5-852v","url":"https://github.com/advisories/GHSA-7p7h-4mm5-852v","licence":"CC-BY-4.0","modified":"2026-09-10T03:49:05.648Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-33623","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-33623","licence":"Public domain","modified":"2026-06-17T03:54:53.153Z"}],"updatedAt":"2026-11-25T22:58:01.585Z","epss":{"score":0.02925,"percentile":0.87427,"date":"2026-12-01T12:00:22.000Z"}}