{"id":"CVE-2021-3189","aliases":["CVE-2021-3189","GHSA-f4hq-453j-p95f"],"related":[],"kind":"vulnerability","state":"published","title":"Open redirect in Slashify","summary":"The slashify package 1.0.0 for Node.js allows open-redirect attacks, as demonstrated by a localhost:3000///example.com/ substring.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"The slashify package 1.0.0 for Node.js allows open-redirect attacks, as demonstrated by a localhost:3000///example.com/ substring.","source":"cvelist"},{"lang":"en","text":"The package is an Express middleware that normalises routes by stripping any final slash, redirecting, for example, `bookings/latest/` to `bookings/latest`. However, it does not validate the path it redirects to in any way. In particular, if the path starts with two slashes (or two backslashes, or a slash and a backslash, etc.) it may redirect to a different domain.\n\nConsider the [example from the docs](https://www.npmjs.com/package/slashify#usage). Assume we have run it and started a server on `localhost:3000`, then visiting `localhost:3000///github.com/` redirects you to https://github.com.\n\n## Recommendation\n\nThis vulnerability is currently un-patched in the `slashify` package so there is no known safe version of this package. Discontinuing use of `slashify` is recommended.","format":"markdown","source":"ghsa"},{"lang":"es","text":"El paquete slashify versión 1.0.0 para Node.js, permite ataques de redireccionamiento abierto, como es demostrado por una subcadena localhost:3000///example.com/","source":"nvd"}],"published":"2021-02-05T20:43:34.000Z","modified":"2026-06-17T04:04:49.037Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:N/C:P/I:P/A:N","score":5.8,"rating":"MEDIUM"}],"cwes":["CWE-601"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","lastAffected":"1.0.0"}],"ecosystem":"npm","package":"slashify","purl":"pkg:npm/slashify","source":"ghsa"},{"ranges":[{"status":"affected","version":"1.0.0"}],"vendor":"google","product":"slashify","cpe":"cpe:2.3:a:google:slashify:1.0.0:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://www.npmjs.com/package/slashify","tags":["product","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://securitylab.github.com/advisories/GHSL-2020-199-open-redirect-slashify","tags":["advisory","exploit","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://security.netapp.com/advisory/ntap-20210401-0004/","tags":["third-party-advisory","x-refsource-confirm","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3189","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/divshot/slashify","tags":["web"],"sources":["ghsa"]},{"url":"https://security.netapp.com/advisory/ntap-20210401-0004","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-3189","url":"https://www.cve.org/CVERecord?id=CVE-2021-3189","licence":"CVE Terms of Use","modified":"2024-08-03T16:45:51.396Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-f4hq-453j-p95f","url":"https://github.com/advisories/GHSA-f4hq-453j-p95f","licence":"CC-BY-4.0","modified":"2023-11-08T04:05:51.576Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-3189","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3189","licence":"Public domain","modified":"2026-06-17T04:04:49.037Z"}],"updatedAt":"2026-11-25T22:58:00.000Z","epss":{"score":0.00532,"percentile":0.46401,"date":"2026-12-01T12:00:22.000Z"}}