{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2021-33623","id":"CVE-2021-33623","title":"Uncontrolled Resource Consumption in trim-newlines","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.","descriptionLong":"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.","published":"2021-05-28T00:00:00.000Z","updated":"2026-10-20T10:54:44.984542532Z","reserved":"2021-05-28T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"mitre","metric":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"high","source":"NVD"},"metrics":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"high","source":"NVD"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"high","source":"OSV"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"high","source":"GitHub"},{"version":"2.0","score":5,"vector":"AV:N/AC:L/Au:N/C:N/I:N/A:P","rating":"medium","source":"NVD"}],"rating":"high","products":[],"affectedProducts":[{"vendor":"n/a","product":"n/a","defaultStatus":null,"versions":[{"version":"n/a","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"trim-newlines","purl":"pkg:npm/trim-newlines","ranges":["<3.0.1",">=4.0.0 <4.0.1"],"fixed":["3.0.1","4.0.1"],"advisory":"GHSA-7p7h-4mm5-852v"}],"cwes":["CWE-400"],"aliases":["GHSA-7p7h-4mm5-852v"],"references":[{"url":"https://www.npmjs.com/package/trim-newlines","tags":["x_transferred","Product","web"]},{"url":"https://github.com/sindresorhus/trim-newlines/releases/tag/v4.0.1","tags":["x_transferred","Patch","Release Notes","fix","web"]},{"url":"https://security.netapp.com/advisory/ntap-20210702-0007/","tags":["x_transferred","Third Party Advisory","advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2022/12/msg00033.html","tags":["mailing-list","x_transferred","Mailing List","Third Party Advisory","advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-33623","tags":["advisory"]},{"url":"https://github.com/sindresorhus/trim-newlines/commit/25246c6ce5eea1c82d448998733a6302a4350d91","tags":["web"]},{"url":"https://github.com/sindresorhus/trim-newlines/commit/b10d5f4afef832b16bc56d49fc52c68cbd403869","tags":["web"]},{"url":"https://github.com/sindresorhus/trim-newlines","tags":["package"]},{"url":"https://security.netapp.com/advisory/ntap-20210702-0007","tags":["web"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.02925,"epssPercentile":0.87348,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2021-33623","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-33623","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2021-33623","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-7p7h-4mm5-852v","ok":true,"note":"GHSA-7p7h-4mm5-852v"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2021-33623","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}