{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2021-23387","published":"2021-05-24T19:15:07.427000Z","last_modified":"2026-06-17T03:38:40.180000Z","status":"Modified","cvss":{"version":"3.1","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","source":"nvd@nist.gov","primary":true},"auth":false,"cwes":["CWE-601"],"cpes":[{"criteria":"cpe:2.3:a:trailing-slash_project:trailing-slash:*:*:*:*:*:node.js:*:*","part":"a","vendor":"trailing-slash_project","product":"trailing-slash","version_end_excluding":"2.0.1"}],"cpes_truncated":false,"vendors":["trailing-slash_project"],"products":["trailing-slash_project/trailing-slash"],"epss":{"score":0.0115,"percentile":0.67797,"date":"2026-12-01","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-rfhr-62xp-2fp2","ecosystem":"npm","name":"trailing-slash","purl":"pkg:npm/trailing-slash","ranges":[{"introduced":"0","fixed":"2.0.1"}],"versions":[],"versions_truncated":false}],"severity":"medium","priority_score":52,"links":{"html_es":"/es/cve/CVE-2021-23387/","html_en":"/en/cve/CVE-2021-23387/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-23387","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-23387"},"untrusted":{"vendor_name":"Trailing-slash Project","product_name":"Trailing-slash","desc_en":"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.","affected":[],"references":[{"url":"https://github.com/fardog/trailing-slash/blob/f640ece055fe85275c983de5eb94661b95e35670/index.js%23L36","tags":["Broken Link"]},{"url":"https://github.com/fardog/trailing-slash/commit/f8e66f1429308247e5a119d430203077d8f05048","tags":["Patch","Third Party Advisory"]},{"url":"https://snyk.io/vuln/SNYK-JS-TRAILINGSLASH-1085707","tags":["Exploit","Patch","Third Party Advisory"]}]}}