Open redirect in koa-remove-trailing-slashes
Priority LOW 26CWE-601Published · Updated
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Spoofing
- Confidentiality · integrity · availability
- Low · Low · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-601.
Summary
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.
Why it matters now
EPSS 0.00835 57th percentileScored 2026-11-07
Fix Fixed koa-remove-trailing-slashes: 2.0.2koa-remove-trailing-slashes (npm): 2.0.2
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | koa-remove-trailing-slashes | before 2.0.2 | 2.0.2 | Patch available | CNA |
| — | koa-remove-trailing-slashes (npm) | before 2.0.2 | 2.0.2 | Patch available | GHSA-r773-pmw3-f4mr |
- koa-remove-trailing-slashes Vendor— Affected before 2.0.2 Fixed in 2.0.2 Patch available CNA
- koa-remove-trailing-slashes (npm) Vendor— Affected before 2.0.2 Fixed in 2.0.2 Patch available GHSA-r773-pmw3-f4mr
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:koa-remove-trailing-slashes_project:koa-remove-trailing-slashes:*:*:*:*:*:node.js:*:* | before 2.0.2 | Vulnerable | Koa-remove-trailing-slashes Project |
- cpe:2.3:a:koa-remove-trailing-slashes_project:koa-remove-trailing-slashes:*:*:*:*:*:node.js:*:* Versions before 2.0.2 Vulnerable ·Koa-remove-trailing-slashes Project
Remediation
- Fix · CNA koa-remove-trailing-slashes Fixed in 2.0.2
- Fix · GHSA-r773-pmw3-f4mr koa-remove-trailing-slashes (npm) Fixed in 2.0.2 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2021-23384
- 2026-10-03 Alias added: GHSA-r773-pmw3-f4mr
References
Other 4
- https://github.com/vgno/koa-remove-trailing-slashes/blame/6a01ba8fd019bd3ece44879c553037ad96ba7d47/index.js%23L31
- https://github.com/vgno/koa-remove-trailing-slashes/commit/e7ce4000e9fe4d957332df1056640a22ebea28ee
- https://github.com/vgno/koa-remove-trailing-slashes
- https://github.com/vgno/koa-remove-trailing-slashes/blame/6a01ba8fd019bd3ece44879c553037ad96ba7d47/index.js#L31
Sources
- CVE-2021-23384 · CVE Program
- CVE-2021-23384 · NVD
- FIRST EPSS
- GHSA-r773-pmw3-f4mr · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences