Ecosyste.ms: Advisories

An open API service providing security vulnerability metadata for many open source software ecosystems.

Security Advisories: MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLXJmaHItNjJ4cC0yZnAy

Open Redirect in trailing-slash

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.

Permalink: https://github.com/advisories/GHSA-rfhr-62xp-2fp2
JSON: https://advisories.ecosyste.ms/api/v1/advisories/MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLXJmaHItNjJ4cC0yZnAy
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Moderate
Classification: General
Published: over 3 years ago
Updated: over 1 year ago


CVSS Score: 5.4
CVSS vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N

Identifiers: GHSA-rfhr-62xp-2fp2, CVE-2021-23387
References: Repository: https://github.com/fardog/trailing-slash
Blast Radius: 3.3

Affected Packages

npm:trailing-slash
Dependent packages: 0
Dependent repositories: 4
Downloads: 1,348 last month
Affected Version Ranges: < 2.0.1
Fixed in: 2.0.1
All affected versions: 0.0.0, 1.0.0, 2.0.0
All unaffected versions: 2.0.1, 2.0.2