CVE-2021-23387
Medium
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.
SeverityMedium
CVSS5.4
Exploit probability—
ProductTrailing-slash
PublishedMay 24, 2021
First seenMay 24, 2021
How to fix
Update
- trailing-slash_project trailing-slash2.0.1 or later
- trailing-slash2.0.1 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| trailing-slash_project trailing-slash | v < 2.0.1 | 2.0.1 |
| trailing-slashnpm | v < 2.0.1 | 2.0.1 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
In the Intelligence 360 plan
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.