CVE-2021-23384
MEDIUMkoa-remove-trailing-slashes < 2.0.2 - Open Redirect via Trailing Double Slashes
Title source: llmDescription
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.
References (2)
Core 2
Core References
Exploit, Third Party Advisory x_refsource_misc
https://snyk.io/vuln/SNYK-JS-KOAREMOVETRAILINGSLASHES-1085708
Scores
CVSS v3
5.4
EPSS
0.0083
EPSS Percentile
52.9%
Attack Vector
NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
Details
CWE
CWE-601
Status
published
Products (2)
koa-remove-trailing-slashes_project/koa-remove-trailing-slashes
< 2.0.2
npm/koa-remove-trailing-slashes
0 - 2.0.2npm
Published
May 17, 2021
Tracked Since
Feb 18, 2026