CVE-2021-23384 Open Redirect
MediumCVSS 5.4
EPSS 0.84%
- Published
- Updated
- Exploit status
- No public exploit known
Description
The package koa-remove-trailing-slashes before 2.0.2 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::removeTrailingSlashes(), as the web server uses relative URLs instead of absolute URLs.
Upgrade path
2 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| koa-remove-trailing-slashes project koa-remove-trailing-slashes | < 2.0.2 | 2.0.2 | Fixed |
| npm koa-remove-trailing-slashes(npm) | < 2.0.2 | 2.0.2 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| npm koa-remove-trailing-slashes(npm) | < 2.0.2 | 2.0.2 |
| koa-remove-trailing-slashes project koa-remove-trailing-slashes | < 2.0.2 | 2.0.2 |
References
- nvd.nist.gov third-party-advisory vendor-advisory
- snyk.io exploit third-party-advisory
- github.com patch
- github.com
- github.com
- github.com broken-link
- github.com product