{"id":"GHSA-rfhr-62xp-2fp2","summary":"Open Redirect in trailing-slash","details":"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.","aliases":["CVE-2021-23387","SNYK-JS-TRAILINGSLASH-1085707"],"modified":"2026-07-08T06:49:36.985620850Z","published":"2021-06-08T23:19:21Z","database_specific":{"github_reviewed":true,"github_reviewed_at":"2021-05-27T22:38:20Z","nvd_published_at":"2021-05-24T19:15:00Z","cwe_ids":["CWE-601"],"severity":"MODERATE"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23387"},{"type":"WEB","url":"https://github.com/fardog/trailing-slash/commit/f8e66f1429308247e5a119d430203077d8f05048"},{"type":"WEB","url":"https://github.com/fardog/trailing-slash/blob/f640ece055fe85275c983de5eb94661b95e35670/index.js%23L36"},{"type":"WEB","url":"https://snyk.io/vuln/SNYK-JS-TRAILINGSLASH-1085707"}],"affected":[{"package":{"name":"trailing-slash","ecosystem":"npm","purl":"pkg:npm/trailing-slash"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"2.0.1"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/06/GHSA-rfhr-62xp-2fp2/GHSA-rfhr-62xp-2fp2.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N"}]}