CVE-2021-23387

Open Redirect

Published May 24, 2021 CVSS 3.1 · 5.4 Medium EPSS 1.1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2021-1397 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.
Github GHSA Github GHSA GHSA-rfhr-62xp-2fp2 Open Redirect in trailing-slash
History

No history.

Weaknesses

Sources

Status
PUBLISHED
Assigner
snyk
Published
Updated
Sep 17, 2024, 2:31 AM
Reserved
Jan 8, 2021, 12:00 AM
Status
Modified
Published
May 24, 2021, 7:15 PM
Modified
Jun 17, 2026, 3:38 AM