Files
angular/packages/platform-server
Alan Agius 83944fc8c5 fix(platform-server): reject protocol-relative paths in resolveUrl
Previously, resolveUrl only checked whether the raw URL string started with '//' before WHATWG URL resolution. When given an input such as '/.//evil.test', WHATWG dot-segment normalization popped the leading '/.', leaving a pathname starting with '//'. This corrupted ServerPlatformLocation and led to protocol-relative open redirects in SSR.

Now, resolveUrl also verifies that the normalized URL pathname does not start with '//' when allowProtocolRelative is false.

Fixes #71076
2026-09-30 07:20:10 -07:00
..
2025-11-06 10:10:22 -08:00
2024-03-28 13:02:50 -07:00