Open redirect in Slashify
The slashify npm package.
Latest commit at the date of reporting.
The package is an Express middleware that normalises routes by stripping any final slash, redirecting, for example,
bookings/latest. However, it does not validate the path it redirects to in any way. In particular, if the path starts with two slashes (or two backslashes, or a slash and a backslash, etc.) it may redirect to a different domain.
This issue was discovered and reported by GitHub team member @max-schaefer (Max Schaefer).
You can contact the GHSL team at
firstname.lastname@example.org, please include
GHSL-2020-199 in any communication regarding this issue.