{"id":"GHSA-7p7h-4mm5-852v","revision":"76ef918da2fb4590a7a24eba9b2bc925","records":[{"revision":"76ef918da2fb4590a7a24eba9b2bc925","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-7p7h-4mm5-852v","aliases":["CVE-2021-33623"],"title":"Uncontrolled Resource Consumption in trim-newlines","description":"@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.","state":0,"publishedAt":"2021-06-07T22:10:39+00:00","modifiedAt":"2026-09-10T03:49:05.6482391+00:00","affected":[{"ecosystem":"npm","name":"trim-newlines","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"3.0.1"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"npm","name":"trim-newlines","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"4.0.0"},{"kind":"fixed","version":"4.0.1"}]}],"versions":["4.0.0"],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"HIGH"}],"references":["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://github.com/sindresorhus/trim-newlines/releases/tag/v4.0.1","https://lists.debian.org/debian-lts-announce/2022/12/msg00033.html","https://security.netapp.com/advisory/ntap-20210702-0007","https://www.npmjs.com/package/trim-newlines"],"sourceUrl":"https://github.com/advisories/GHSA-7p7h-4mm5-852v","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-7p7h-4mm5-852v","identifiers":["GHSA-7p7h-4mm5-852v","CVE-2021-33623"]},"retained":false,"historicalAffected":[]}],"coverage":[]}