{"id":"CVE-2021-23425","aliases":["CVE-2021-23425","GHSA-38fc-wpqx-33j7"],"related":[],"kind":"vulnerability","state":"published","title":"Regular Expression Denial of Service (ReDoS)","summary":"All versions of package trim-off-newlines are vulnerable to Regular Expression Denial of Service (ReDoS) via string processing.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"All versions of package trim-off-newlines are vulnerable to Regular Expression Denial of Service (ReDoS) via string processing.","source":"cvelist"},{"lang":"es","text":"Todas las versiones del paquete trim-off-newlines son vulnerables a una Denegación de Servicio por Expresión Regular (ReDoS) por medio de procesamiento de cadenas.","source":"nvd"}],"published":"2021-08-18T16:15:11.284Z","modified":"2026-06-17T03:38:44.400Z","severity":{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:P","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:P","score":5.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:N/I:N/A:P","score":5,"rating":"MEDIUM"}],"cwes":["CWE-400"],"affected":[{"ranges":[{"type":"custom","introduced":"0","fixed":"unspecified","status":"affected"}],"product":"trim-off-newlines","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.0.3"}],"ecosystem":"npm","package":"trim-off-newlines","purl":"pkg:npm/trim-off-newlines","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.0.3"}],"vendor":"trim-off-newlines_project","product":"trim-off-newlines","cpe":"cpe:2.3:a:trim-off-newlines_project:trim-off-newlines:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://snyk.io/vuln/SNYK-JS-TRIMOFFNEWLINES-1296850","tags":["exploit","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1567197","tags":["exploit","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/stevemao/trim-off-newlines/blob/master/index.js%23L6","tags":["broken-link","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23425","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/stevemao/trim-off-newlines/pull/3","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/stevemao/trim-off-newlines","tags":["package"],"sources":["ghsa"]}],"credits":["Robert McLaughlin"],"assigner":"snyk","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-23425","url":"https://www.cve.org/CVERecord?id=CVE-2021-23425","licence":"CVE Terms of Use","modified":"2024-09-16T23:10:48.912Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-38fc-wpqx-33j7","url":"https://github.com/advisories/GHSA-38fc-wpqx-33j7","licence":"CC-BY-4.0","modified":"2025-01-14T09:12:05.938Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-23425","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23425","licence":"Public domain","modified":"2026-06-17T03:38:44.400Z"}],"updatedAt":"2026-11-25T22:58:03.316Z","epss":{"score":0.01927,"percentile":0.80567,"date":"2026-12-01T12:00:22.000Z"}}