Vulnerability · Published May 24, 2021 · Assigned by snyk

CVE-2021-23387Open Redirect

Medium 5.4

In plain English

A medium-severity security flaw in trailing-slash. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.1% (higher than 67% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.4Medium
Exploit odds (30 days)1.1%top 33.0% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
npmtrailing-slash2.0.1GHSA-rfhr-62xp-2fp2

Affected products (as reported)

VendorProductVersions
n/a trailing-slash unspecified – before 2.0.1

References