{"id":"GHSA-38fc-wpqx-33j7","summary":"Uncontrolled Resource Consumption in trim-off-newlines","details":"All versions of package trim-off-newlines are vulnerable to Regular Expression Denial of Service (ReDoS) via string processing.","aliases":["CVE-2021-23425"],"modified":"2025-01-14T09:12:05.938637Z","published":"2021-09-02T17:15:42Z","database_specific":{"severity":"MODERATE","nvd_published_at":"2021-08-18T17:15:00Z","cwe_ids":["CWE-400"],"github_reviewed":true,"github_reviewed_at":"2021-08-26T14:52:19Z"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23425"},{"type":"WEB","url":"https://github.com/stevemao/trim-off-newlines/pull/3"},{"type":"PACKAGE","url":"https://github.com/stevemao/trim-off-newlines"},{"type":"WEB","url":"https://github.com/stevemao/trim-off-newlines/blob/master/index.js%23L6"},{"type":"WEB","url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1567197"},{"type":"WEB","url":"https://snyk.io/vuln/SNYK-JS-TRIMOFFNEWLINES-1296850"}],"affected":[{"package":{"name":"trim-off-newlines","ecosystem":"npm","purl":"pkg:npm/trim-off-newlines"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.0.3"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/09/GHSA-38fc-wpqx-33j7/GHSA-38fc-wpqx-33j7.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"}]}