{"id":"CVE-2021-23384","aliases":["CVE-2021-23384","GHSA-r773-pmw3-f4mr"],"related":[],"kind":"vulnerability","state":"published","title":"Open Redirect","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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"El paquete koa-remove-trailing-slashes versiones anteriores a 2.0.2, es vulnerable a Open Redirect por medio del uso de trailing double slashes en la URL al acceder al extremo vulnerable (como https://example.com//attacker.example/) .&#xa0;El código vulnerable está en la función index.js::removeTrailingSlashes(), ya que el servidor web usa URL relativas en lugar de URL absolutas","source":"nvd"}],"published":"2021-05-17T17:45:12.371Z","modified":"2026-06-17T03:38:39.843Z","severity":{"scorer":"snyk","scheme":"CVSS: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","score":5.4,"rating":"MEDIUM"},"severities":[{"scorer":"snyk","scheme":"CVSS: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","score":5.4,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:N/C:P/I:P/A:N","score":5.8,"rating":"MEDIUM"}],"cwes":["CWE-601"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","fixed":"2.0.2","status":"affected"}],"product":"koa-remove-trailing-slashes","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.0.2"}],"ecosystem":"npm","package":"koa-remove-trailing-slashes","purl":"pkg:npm/koa-remove-trailing-slashes","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"2.0.2"}],"vendor":"koa-remove-trailing-slashes_project","product":"koa-remove-trailing-slashes","cpe":"cpe:2.3:a:koa-remove-trailing-slashes_project:koa-remove-trailing-slashes:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://snyk.io/vuln/SNYK-JS-KOAREMOVETRAILINGSLASHES-1085708","tags":["exploit","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/vgno/koa-remove-trailing-slashes/blame/6a01ba8fd019bd3ece44879c553037ad96ba7d47/index.js%23L31","tags":["broken-link","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23384","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/vgno/koa-remove-trailing-slashes/commit/e7ce4000e9fe4d957332df1056640a22ebea28ee","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/vgno/koa-remove-trailing-slashes","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/vgno/koa-remove-trailing-slashes/blame/6a01ba8fd019bd3ece44879c553037ad96ba7d47/index.js#L31","tags":["web"],"sources":["ghsa"]}],"credits":["apple502j"],"assigner":"snyk","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-23384","url":"https://www.cve.org/CVERecord?id=CVE-2021-23384","licence":"CVE Terms of Use","modified":"2024-09-16T20:36:40.039Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-r773-pmw3-f4mr","url":"https://github.com/advisories/GHSA-r773-pmw3-f4mr","licence":"CC-BY-4.0","modified":"2026-03-13T21:56:59.448Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-23384","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23384","licence":"Public domain","modified":"2026-06-17T03:38:39.843Z"}],"updatedAt":"2026-11-25T22:58:01.447Z","epss":{"score":0.00835,"percentile":0.58807,"date":"2026-12-01T12:00:22.000Z"}}