CVE-2021-23387 Open Redirect
MediumCVSS 6.1
EPSS 1.2%
- Published
- Updated
- Exploit status
- No public exploit known
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.
Upgrade path
2 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| npm trailing-slash(npm) | < 2.0.1 | 2.0.1 | Fixed |
| trailing-slash project trailing-slash | < 2.0.1 | 2.0.1 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| npm trailing-slash(npm) | < 2.0.1 | 2.0.1 |
| trailing-slash project trailing-slash | < 2.0.1 | 2.0.1 |
References
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com patch third-party-advisory
- github.com broken-link
- snyk.io exploit patch third-party-advisory
- github.com