{"id":"CVE-2021-23384","published":"2021-05-17T17:45:12Z","modified":"2024-09-16T20:36:40Z","title":"Open Redirect","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.4,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N/E:P/RL:O/RC:C","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00835,"percentile":0.58586,"provenance":"source"},"cwes":[],"references":[{"url":"https://snyk.io/vuln/SNYK-JS-KOAREMOVETRAILINGSLASHES-1085708","tags":["x_refsource_MISC"]},{"url":"https://github.com/vgno/koa-remove-trailing-slashes/blame/6a01ba8fd019bd3ece44879c553037ad96ba7d47/index.js%23L31","tags":["x_refsource_MISC"]}],"priority":{"score":15.5,"factors":[{"name":"EPSS percentile","points":11.72},{"name":"CVSS severity","points":3.78}]},"affectedVersions":[{"vendor":"n/a","product":"koa-remove-trailing-slashes","versions":[">= unspecified, < 2.0.2"]}],"affected":[{"ecosystem":"npm","package":"koa-remove-trailing-slashes","vulnerableRanges":["<2.0.2"],"patched":["2.0.2"],"from":["GHSA-r773-pmw3-f4mr"],"provenance":"source"}],"summary":{"text":"The flaw is an open redirect in the koa-remove-trailing-slashes npm package before version 2.0.2, located in the removeTrailingSlashes() function in index.js. Because the middleware relies on relative rather than absolute URLs, a request containing trailing double slashes can be redirected to an arbitrary external site, and exploitation requires only network access with no authentication, but a victim must be induced to visit the crafted link.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:32:05Z"},"euvd":{"id":"EUVD-2022-1164","exploited":false,"provenance":"source"}}