{"id":"CVE-2021-23387","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":["GHSA-rfhr-62xp-2fp2","SNYK-JS-TRAILINGSLASH-1085707"],"modified":"2026-07-09T12:33:04.500635Z","published":"2021-05-24T19:15:07.427Z","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"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/fardog/trailing-slash","events":[{"introduced":"0"},{"fixed":"964b0c226b388ce0974d964e6da054db1766e88d"},{"fixed":"f8e66f1429308247e5a119d430203077d8f05048"}],"database_specific":{"cpe":"cpe:2.3:a:trailing-slash_project:trailing-slash:*:*:*:*:*:node.js:*:*","extracted_events":[{"introduced":"0"},{"fixed":"2.0.1"}],"source":["CPE_RANGE","REFERENCES"]}}],"versions":["v2.0.0","v1.0.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-23387.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"}]}