{"id":"UBUNTU-CVE-2021-33623","details":"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.","modified":"2026-05-20T16:06:28.021305619Z","published":"2021-05-28T18:15:00Z","related":["USN-5999-1"],"upstream":["CVE-2021-33623"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2021-33623"},{"type":"REPORT","url":"https://www.npmjs.com/package/trim-newlines"},{"type":"REPORT","url":"https://github.com/sindresorhus/trim-newlines/releases/tag/v4.0.1"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-5999-1"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2021-33623"}],"affected":[{"package":{"name":"node-trim-newlines","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/node-trim-newlines?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.0.0-1ubuntu0.18.04.1"}]}],"versions":["1.0.0-1"],"ecosystem_specific":{"binaries":[{"binary_version":"1.0.0-1ubuntu0.18.04.1","binary_name":"node-trim-newlines"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-33623.json"}},{"package":{"name":"node-trim-newlines","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/node-trim-newlines?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.0.0-1ubuntu0.20.04.1"}]}],"versions":["1.0.0-1"],"ecosystem_specific":{"binaries":[{"binary_name":"node-trim-newlines","binary_version":"1.0.0-1ubuntu0.20.04.1"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-33623.json"}},{"package":{"name":"node-trim-newlines","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/node-trim-newlines?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.0.0+~3.0.0-1"],"ecosystem_specific":{"binaries":[{"binary_version":"3.0.0+~3.0.0-1","binary_name":"node-trim-newlines"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-33623.json"}},{"package":{"name":"node-trim-newlines","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/node-trim-newlines?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.0.0+~3.0.0-1"],"ecosystem_specific":{"binaries":[{"binary_version":"3.0.0+~3.0.0-1","binary_name":"node-trim-newlines"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-33623.json"}},{"package":{"name":"node-trim-newlines","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/node-trim-newlines?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.0.0+~3.0.0-1"],"ecosystem_specific":{"binaries":[{"binary_version":"3.0.0+~3.0.0-1","binary_name":"node-trim-newlines"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-33623.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},{"type":"Ubuntu","score":"medium"}]}