{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2021-23425","id":"CVE-2021-23425","title":"Regular Expression Denial of Service (ReDoS)","description":"All versions of package trim-off-newlines are vulnerable to Regular Expression Denial of Service (ReDoS) via string processing.","descriptionLong":"All versions of package trim-off-newlines are vulnerable to Regular Expression Denial of Service (ReDoS) via string processing.","published":"2021-08-18T16:15:11.284Z","updated":"2026-10-24T10:31:06.435510990Z","reserved":"2021-01-08T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"snyk","metric":{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:P","rating":"medium","source":"snyk"},"metrics":[{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:P","rating":"medium","source":"snyk"},{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","rating":"medium","source":"snyk.io"},{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","rating":"medium","source":"NVD"},{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","rating":"medium","source":"OSV"},{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","rating":"medium","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":"medium","products":["trim-off-newlines"],"affectedProducts":[{"vendor":"n/a","product":"trim-off-newlines","defaultStatus":null,"versions":[{"lessThan":"unspecified","status":"affected","version":"0","versionType":"custom"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"trim-off-newlines","purl":"pkg:npm/trim-off-newlines","ranges":["<1.0.3"],"fixed":["1.0.3"],"advisory":"GHSA-38fc-wpqx-33j7"}],"cwes":["CWE-400"],"aliases":["GHSA-38fc-wpqx-33j7"],"references":[{"url":"https://snyk.io/vuln/SNYK-JS-TRIMOFFNEWLINES-1296850","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","evidence","web"]},{"url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1567197","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","evidence","web"]},{"url":"https://github.com/stevemao/trim-off-newlines/blob/master/index.js%23L6","tags":["x_refsource_MISC","x_transferred","Broken Link","Third Party Advisory","advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23425","tags":["advisory"]},{"url":"https://github.com/stevemao/trim-off-newlines/pull/3","tags":["web"]},{"url":"https://github.com/stevemao/trim-off-newlines","tags":["package"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.01927,"epssPercentile":0.80479,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2021-23425","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23425","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2021-23425","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-38fc-wpqx-33j7","ok":true,"note":"GHSA-38fc-wpqx-33j7"},{"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-23425","ok":true,"note":"scored 2026-11-20"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}