# CVE-2021-23384: Open Redirect

- Severity: Medium 5.4 (CVSS:3.1, scored by snyk) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.83%, higher than 58% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-05-17T17:45:12.371Z
- Modified: 2026-06-17T03:38:39.843Z
- Also known as: GHSA-r773-pmw3-f4mr
- Weaknesses: CWE-601
- Assigned by: snyk

## Description

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.

(As written by CVE List.)

## Affected

- koa-remove-trailing-slashes: from unspecified before 2.0.2
- koa-remove-trailing-slashes (npm): before 2.0.2
- koa-remove-trailing-slashes_project koa-remove-trailing-slashes: before 2.0.2

## Every score

- snyk: CVSS:3.1 5.4 Medium `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`
- GitHub: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N`
- NVD: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N`
- NVD: CVSS:2.0 5.8 Medium `AV:N/AC:M/Au:N/C:P/I:P/A:N`

## References

- <https://snyk.io/vuln/SNYK-JS-KOAREMOVETRAILINGSLASHES-1085708> (exploit, third-party-advisory, web)
- <https://github.com/vgno/koa-remove-trailing-slashes/blame/6a01ba8fd019bd3ece44879c553037ad96ba7d47/index.js%23L31> (broken-link)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-23384> (advisory)
- <https://github.com/vgno/koa-remove-trailing-slashes/commit/e7ce4000e9fe4d957332df1056640a22ebea28ee> (web)
- <https://github.com/vgno/koa-remove-trailing-slashes> (package)
- <https://github.com/vgno/koa-remove-trailing-slashes/blame/6a01ba8fd019bd3ece44879c553037ad96ba7d47/index.js#L31> (web)

## Sources

- CVE List: [CVE-2021-23384](https://www.cve.org/CVERecord?id=CVE-2021-23384), CVE Terms of Use, modified 2024-09-16
- GitHub Advisory Database: [GHSA-r773-pmw3-f4mr](https://github.com/advisories/GHSA-r773-pmw3-f4mr), CC-BY-4.0, modified 2026-03-13
- NVD: [CVE-2021-23384](https://nvd.nist.gov/vuln/detail/CVE-2021-23384), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-23384 · Whole record: https://cve.day/CVE-2021-23384.json · Rebuilt by cve.day 2026-11-25T22:58:01.447Z
