Vulnerability · Published May 17, 2021 · Assigned by snyk
CVE-2021-23384Open Redirect
Medium 5.4
In plain English
A medium-severity security flaw in koa-remove-trailing-slashes. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.8% (higher than 58% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)5.4Medium
Exploit odds (30 days)0.8%top 42.1% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | koa-remove-trailing-slashes | 2.0.2 | GHSA-r773-pmw3-f4mr |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| n/a | koa-remove-trailing-slashes | unspecified – before 2.0.2 |