{"id":"CVE-2021-23387","aliases":["GHSA-rfhr-62xp-2fp2","SNYK-JS-TRAILINGSLASH-1085707"],"url":"https://o3.security/vulnerability/CVE-2021-23387","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.","published":"2021-05-24T19:15:07.427Z","modified":"2026-07-09T12:33:04.500635Z","cvss":{"score":6.1,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"},"epss":null,"cisaKev":null,"exploitsKnown":null,"affectedPackages":[{"ecosystem":"npm","name":"trailing-slash","fixedVersion":"2.0.1"}],"fix":{"url":"https://github.com/fardog/trailing-slash/commit/f8e66f1429308247e5a119d430203077d8f05048","label":"fardog/trailing-slash@f8e66f1"},"references":[{"type":"WEB","url":"https://github.com/fardog/trailing-slash/blob/f640ece055fe85275c983de5eb94661b95e35670/index.js%23L36"},{"type":"FIX","url":"https://github.com/fardog/trailing-slash/commit/f8e66f1429308247e5a119d430203077d8f05048"},{"type":"FIX","url":"https://snyk.io/vuln/SNYK-JS-TRAILINGSLASH-1085707"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-07-09T12:33:04.500635Z"}}