Skip to content

CVE-2021-23384 Open Redirect

MediumCVSS 5.4 EPSS 0.84%
Published
Updated
Exploit status
No public exploit known

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.

Upgrade path

2 packages: 2 fixed.

PackageAffectedFixed inStatus
koa-remove-trailing-slashes project koa-remove-trailing-slashes < 2.0.2 2.0.2 Fixed
npm koa-remove-trailing-slashes(npm) < 2.0.2 2.0.2 Fixed

Affected products

ProductAffected versionsFixed in
npm koa-remove-trailing-slashes(npm) < 2.0.2 2.0.2
koa-remove-trailing-slashes project koa-remove-trailing-slashes < 2.0.2 2.0.2

References