Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[20.3.x] fix(core): harden TransferState restoration against DOM clobbering - #69080

Merged
pkozlowski-opensource merged 1 commit into
angular:20.3.xfrom
JeanMeche:203-transfer-state-clobering
Jun 2, 2026
Merged

[20.3.x] fix(core): harden TransferState restoration against DOM clobbering#69080
pkozlowski-opensource merged 1 commit into
angular:20.3.xfrom
JeanMeche:203-transfer-state-clobering

Conversation

@JeanMeche

Copy link
Copy Markdown
Member

Reject non-script elements when reading the SSR transfer state payload by id.
This prevents attacker-controlled elements with a clobbered id from spoofing
hydration state.

Backport of #69064

Reject non-script elements when reading the SSR transfer state payload by id.
This prevents attacker-controlled elements with a clobbered id from spoofing
hydration state.
@angular-robot angular-robot Bot added the area: core Issues related to the framework runtime label Jun 2, 2026
@ngbot ngbot Bot added this to the Backlog milestone Jun 2, 2026
@JeanMeche JeanMeche changed the title [20.x.3] fix(core): harden TransferState restoration against DOM clobbering [20.3.x] fix(core): harden TransferState restoration against DOM clobbering Jun 2, 2026
@JeanMeche
JeanMeche requested a review from alan-agius4 June 2, 2026 11:52
@JeanMeche JeanMeche added target: lts This PR is targeting a version currently in long-term support action: merge The PR is ready for merge by the caretaker labels Jun 2, 2026
@JeanMeche
JeanMeche force-pushed the 203-transfer-state-clobering branch from bc3d7a8 to d37a3a4 Compare June 2, 2026 12:04
@pkozlowski-opensource
pkozlowski-opensource merged commit 768a349 into angular:20.3.x Jun 2, 2026
17 checks passed
@pkozlowski-opensource

Copy link
Copy Markdown
Member

This PR was merged into the repository. The changes were merged into the following branches:

@angular-automatic-lock-bot

Copy link
Copy Markdown

This pull request has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot Bot locked and limited conversation to collaborators Jul 3, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker area: core Issues related to the framework runtime target: lts This PR is targeting a version currently in long-term support

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants