Highlights
Open Redirect: 5 prior fixes. Scrutinize any change in this area.
packages/hydrogen/src/routing/redirect.ts: most-fixed (3 issues). Treat as high-risk during review.
2 high-severity fixes in this history; regressions here are high-impact.
Recurring patterns
The bug types that recur here, drawn from past fixes, not open vulnerabilities.
Open Redirect: The routing layer repeatedly suffered from open redirect flaws. Target URLs derived from query parameters or fallback paths frequently bypassed validation unless explicitly run through strict canonicalization or local-path checking.
Reflected XSS: Serialized JSON-LD metadata and structural blocks were historically rendered without sufficient HTML entity escaping, exposing users to executable script blocks if values could be influenced by external payloads.
Auth Bypass: Failing to await asynchronous authentication checks inside template route loaders allowed unauthenticated actions to execute, highlighting a structural risk where loader implementations bypass implicit auth handlers.