{"id":"GHSA-rfhr-62xp-2fp2","revision":"7542a57f59984f3b88026d4d55b0083f","records":[{"revision":"7542a57f59984f3b88026d4d55b0083f","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-rfhr-62xp-2fp2","aliases":["CVE-2021-23387","SNYK-JS-TRAILINGSLASH-1085707"],"title":"Open Redirect in trailing-slash","description":"The package trailing-slash before 2.0.1 are vulnerable to Open Redirect via the use of trailing double slashes in the URL when accessing the vulnerable endpoint (such as https://example.com//attacker.example/). The vulnerable code is in index.js::createTrailing(), as the web server uses relative URLs instead of absolute URLs.","state":0,"publishedAt":"2021-06-08T23:19:21+00:00","modifiedAt":"2026-07-08T06:49:36.9856209+00:00","affected":[{"ecosystem":"npm","name":"trailing-slash","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"2.0.1"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://nvd.nist.gov/vuln/detail/CVE-2021-23387","https://github.com/fardog/trailing-slash/commit/f8e66f1429308247e5a119d430203077d8f05048","https://github.com/fardog/trailing-slash/blob/f640ece055fe85275c983de5eb94661b95e35670/index.js%23L36","https://snyk.io/vuln/SNYK-JS-TRAILINGSLASH-1085707"],"sourceUrl":"https://github.com/advisories/GHSA-rfhr-62xp-2fp2","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-rfhr-62xp-2fp2","identifiers":["GHSA-rfhr-62xp-2fp2","CVE-2021-23387","SNYK-JS-TRAILINGSLASH-1085707"]},"retained":false,"historicalAffected":[]}],"coverage":[]}