{"cve":"CVE-2021-23387","nvd":{"published":"2021-05-24T19:15:07.427","modified":"2026-06-17T03:38:40.180","status":"Modified","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1},"cwes":["CWE-601"],"references":["https://github.com/fardog/trailing-slash/blob/f640ece055fe85275c983de5eb94661b95e35670/index.js%23L36","https://github.com/fardog/trailing-slash/commit/f8e66f1429308247e5a119d430203077d8f05048","https://snyk.io/vuln/SNYK-JS-TRAILINGSLASH-1085707","https://github.com/fardog/trailing-slash/blob/f640ece055fe85275c983de5eb94661b95e35670/index.js%23L36","https://github.com/fardog/trailing-slash/commit/f8e66f1429308247e5a119d430203077d8f05048"],"products":["trailing-slash_project:trailing-slash"],"source":"nvd","synced_at":"2026-10-19T21:18:09.669877188+00:00"},"epss":{"cve":"CVE-2021-23387","score":0.0115,"percentile":0.66903,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-rfhr-62xp-2fp2","url":"https://osv.dev/vulnerability/GHSA-rfhr-62xp-2fp2","summary":"Open Redirect in trailing-slash","modified":"2026-07-08T06:49:36.985620850Z","packages":[{"ecosystem":"npm","name":"trailing-slash","purl":"pkg:npm/trailing-slash","ranges":["<2.0.1"],"fixed":["2.0.1"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}