{"id":"CVE-2021-23425","published":"2021-08-18T16:15:11Z","modified":"2024-09-16T23:10:48Z","title":"Regular Expression Denial of Service (ReDoS)","vendor":null,"product":null,"tier":"tail","description":{"text":"All versions of package trim-off-newlines are vulnerable to Regular Expression Denial of Service (ReDoS) via string processing.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:P","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01927,"percentile":0.80479,"provenance":"source"},"cwes":[],"references":[{"url":"https://snyk.io/vuln/SNYK-JS-TRIMOFFNEWLINES-1296850","tags":["x_refsource_MISC"]},{"url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1567197","tags":["x_refsource_MISC"]},{"url":"https://github.com/stevemao/trim-off-newlines/blob/master/index.js%23L6","tags":["x_refsource_MISC"]}],"priority":{"score":19.8,"factors":[{"name":"EPSS percentile","points":16.1},{"name":"CVSS severity","points":3.71}]},"affectedVersions":[{"vendor":"n/a","product":"trim-off-newlines","versions":["< unspecified"]}],"affected":[{"ecosystem":"npm","package":"trim-off-newlines","vulnerableRanges":["<1.0.3"],"patched":["1.0.3"],"from":["GHSA-38fc-wpqx-33j7"],"provenance":"source"}],"summary":{"text":"The trim-off-newlines npm package contains a Regular Expression Denial of Service (ReDoS) flaw in its string processing, affecting all versions. An unauthenticated remote attacker can trigger it over the network with low complexity and no user interaction by supplying crafted input, causing availability degradation.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:17:25Z"},"euvd":{"id":"EUVD-2021-1960","exploited":false,"provenance":"source"}}