Vulnerability 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 Score
MEDIUM
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Trailing-Slash Project | Trailing-Slash | < 2.0.1 |
Related Weaknesses (CWE)
References
- https://github.com/fardog/trailing-slash/blob/f640ece055fe85275c983de5eb94661b95Broken Link
- https://github.com/fardog/trailing-slash/commit/f8e66f1429308247e5a119d430203077PatchThird Party Advisory
- https://snyk.io/vuln/SNYK-JS-TRAILINGSLASH-1085707ExploitPatchThird Party Advisory
- https://github.com/fardog/trailing-slash/blob/f640ece055fe85275c983de5eb94661b95Broken Link
- https://github.com/fardog/trailing-slash/commit/f8e66f1429308247e5a119d430203077PatchThird Party Advisory
- https://snyk.io/vuln/SNYK-JS-TRAILINGSLASH-1085707ExploitPatchThird Party Advisory
FAQ
What is CVE-2021-23387?
CVE-2021-23387 is a vulnerability with a CVSS score of 5.4 (MEDIUM). 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....
How severe is CVE-2021-23387?
CVE-2021-23387 has been rated MEDIUM with a CVSS base score of 5.4/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2021-23387?
Check the references section above for vendor advisories and patch information. Affected products include: Trailing-Slash Project Trailing-Slash.