Skip to content

fix(@angular/ssr): decode x-forwarded-prefix before validation#32818

Draft
alan-agius4 wants to merge 1 commit intoangular:mainfrom
alan-agius4:decode-urls
Draft

fix(@angular/ssr): decode x-forwarded-prefix before validation#32818
alan-agius4 wants to merge 1 commit intoangular:mainfrom
alan-agius4:decode-urls

Conversation

@alan-agius4
Copy link
Collaborator

The x-forwarded-prefix header can be percent-encoded. This change ensures that the header value is decoded before checking against the INVALID_PREFIX_REGEX to prevent bypassing security checks with encoded characters. Additionally, it adds error handling for malformed percent-encoding in the header.

The `x-forwarded-prefix` header can be percent-encoded. This change ensures that the header value is decoded before checking against the `INVALID_PREFIX_REGEX` to prevent bypassing security checks with encoded characters.
Additionally, it adds error handling for malformed percent-encoding in the header.
@alan-agius4 alan-agius4 added the target: patch This PR is targeted for the next patch release label Mar 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: @angular/ssr target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant