Live threats

All CVEs / Koa-remove-trailing-slashes Project

CVE-2021-23384Koa-remove-trailing-slashes Project Koa-remove-trailing-slashes

Medium 5.4 No auth needed

Priority
47
CVSS 3.1
5.4
EPSS
0.8%
probability of exploitation in 30 days · percentile 59
Auth required
No
Published
May 17, 2021
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-601
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Koa-remove-trailing-slashes.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm koa-remove-trailing-slashes < 2.0.2 2.0.2 npm install koa-remove-trailing-slashes@2.0.2

Per OSV / GitHub Advisories (GHSA-r773-pmw3-f4mr). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
koa-remove-trailing-slashes_projectkoa-remove-trailing-slashes< 2.0.2

Official sources

References

Links published by the sources. Open them with care.