You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 8d6bfb0
Browse filesBrowse the repository at this point in the historyBrowse files
fix(route-rules): prevent open redirect via protocol-relative url bypass
Backport of #4236 (GHSA-9phm-9p8f-hw5m).
A leading `//` after the wildcard prefix (e.g. `/legacy//evil.com`
matched by `/legacy/**: { redirect: "/**" }`) was emitted verbatim,
yielding a protocol-relative `Location: //evil.com` that browsers
resolve against the current scheme. The proxy rule had the symmetric
issue.
Bumps `ufo` to `^1.6.4` (collapses leading slashes inside `withoutBase`)
and adds an inline collapse for the edge case where the rule itself is
`/**` and `_*StripBase` is empty.
0 commit comments