~ / search / GHSA-rfhr-62xp-2fp2

GHSA-rfhr-62xp-2fp2

Open Redirect in trailing-slash

Source: GitHub Advisory Database (reviewed) Moderate CVE-2021-23387

Packages

EcosystemPackageAffectedFixed in
npm trailing-slash < 2.0.1 2.0.1

Details

As written in the advisory (Markdown source, shown as plain text).

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.

References

External links from the advisory. They lead to third-party sites.