Skip to content

CVE-2021-23387 Open Redirect

MediumCVSS 6.1 EPSS 1.2%
Published
Updated
Exploit status
No public exploit known

Description

The package trailing-slash before 2.0.1 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::createTrailing(), as the web server uses relative URLs instead of absolute URLs.

Upgrade path

2 packages: 2 fixed.

PackageAffectedFixed inStatus
npm trailing-slash(npm) < 2.0.1 2.0.1 Fixed
trailing-slash project trailing-slash < 2.0.1 2.0.1 Fixed

Affected products

ProductAffected versionsFixed in
npm trailing-slash(npm) < 2.0.1 2.0.1
trailing-slash project trailing-slash < 2.0.1 2.0.1

References