Angular SSR Open Redirect Vulnerabilities Explained (CVE-2026-277
Angular's server-side rendering code built redirect Location headers from the X-Forwarded-Prefix header without properly stripping or validating slashes, so a crafted prefix could produce a protocol-relative URL. An attacker could then redirect users to an arbitrary site, and if a cache did not vary on that header, poison cached redirect responses.
In this year(2026) start , 3 security advisories was published for Angular SSR regarding an open redirect vulnerabilities. Here are CVEs - CVE-2026–27738 | Feb 23, 2026 | reporter — VenkatKwest - CVE-2026–33397 | Mar 19, 2026 | reporter — VenkatKwest - CVE-2026–44437 | May 03, 2026 | reporter — kimkou2024
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the URL-joining helper removed only one leading slash from each part and did not strictly validate the X-Forwarded-Prefix value, so extra slashes or a backslash survived into the Location header.
Impact
An attacker could redirect users to an attacker-controlled site, and where a cache does not vary on the X-Forwarded-Prefix header, could poison cached redirect responses for other users.
What the attacker needed
Attacker can set X-Forwarded-Prefix; app behind a proxy that forwards the header; cache not varying on the header (for poisoning)
The fix
Angular maintainers fixed it by stripping all leading and trailing slashes in the URL-joining helper and adding strict regex validation of the X-Forwarded-Prefix header.
How it was found
- Send a request to the Angular SSR application with an X-Forwarded-Prefix header containing multiple leading slashes.
- Observe that the redirect Location header becomes a protocol-relative URL pointing at an attacker-chosen host.
- If a cache does not vary on the header, poison the cached redirect so other users are sent to the attacker's site.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
A redirect is when a website tells your browser to go to a different address. If the site builds that address from something the visitor can control, an attacker can make it point to their own site instead, which is called an open redirect. Here the site trusted a header (a small piece of extra request information) that says which path prefix the app sits behind, and did not clean it up properly.
What is Open redirect?
A trusted site forwards users to any address an attacker picks; rarely paid alone, often the missing link in a chain.