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_reviewed": true, "cwe_ids": [ "CWE-601" ], "severity": "MODERATE", "github_reviewed_at": "2021-05-27T22:38:20Z", "nvd_published_at": "2021-05-24T19:15:00Z" }