All CVEs / Koa-remove-trailing-slashes Project
CVE-2021-23384Koa-remove-trailing-slashes Project Koa-remove-trailing-slashes
Medium 5.4 No auth needed
Follow: this CVE · Koa-remove-trailing-slashes Project · Koa-remove-trailing-slashes Project Koa-remove-trailing-slashes We alert you by email or Slack (account required).
- Priority
- 47
- CVSS 3.1
- 5.4
- EPSS
- 0.8% probability of exploitation in 30 days · percentile 59
- Auth required
- No
- Published
- May 17, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-601
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
What happens
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.
What to do
- Apply the vendor's security update for Koa-remove-trailing-slashes.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | koa-remove-trailing-slashes |
< 2.0.2 |
2.0.2 |
npm install koa-remove-trailing-slashes@2.0.2 |
Per OSV / GitHub Advisories (GHSA-r773-pmw3-f4mr). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| koa-remove-trailing-slashes_project | koa-remove-trailing-slashes | < 2.0.2 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Broken Link
- snyk.io Exploit Third Party Advisory