Skip to content

[Backport 21.2.X] fix(platform-browser): disallow event handler attributes in Meta - #70241

Merged
thePunderWoman merged 1 commit into
angular:21.2.xfrom
SkyZeroZx:fix/event-handle-meta-21.2.x
Aug 17, 2026
Merged

thePunderWoman merged 1 commit into
angular:21.2.xfrom
SkyZeroZx:fix/event-handle-meta-21.2.x

Conversation

@SkyZeroZx

Copy link
Copy Markdown
Contributor

Backport of #70127

Prevent arbitrary MetaDefinition properties from writing on* handlers directly to meta elements. Browser events can execute these handlers, including on meta elements rendered in the document body.

Reject handler attributes case-insensitively before matching or mutating tags.

Fixes angular#70126
@pullapprove
pullapprove Bot requested a review from kirjs August 17, 2026 19:45
@angular-robot angular-robot Bot added the area: core Issues related to the framework runtime label Aug 17, 2026
@ngbot ngbot Bot added this to the Backlog milestone Aug 17, 2026
@JeanMeche JeanMeche added action: merge The PR is ready for merge by the caretaker target: patch This PR is targeted for the next patch release labels Aug 17, 2026
@pullapprove
pullapprove Bot requested a review from JeanMeche August 17, 2026 19:47
@JeanMeche JeanMeche added target: lts This PR is targeting a version currently in long-term support and removed target: patch This PR is targeted for the next patch release labels Aug 17, 2026
@JeanMeche
JeanMeche removed the request for review from kirjs August 17, 2026 19:47
@pullapprove
pullapprove Bot requested a review from atscott August 17, 2026 19:47

@JeanMeche JeanMeche left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reviewed-for: public-api

@pullapprove
pullapprove Bot requested a review from JeanMeche August 17, 2026 19:47
@thePunderWoman
thePunderWoman merged commit c19a36c into angular:21.2.x Aug 17, 2026
25 checks passed
@thePunderWoman

Copy link
Copy Markdown
Contributor

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 Oct 20, 2026
@SkyZeroZx
SkyZeroZx deleted the fix/event-handle-meta-21.2.x branch November 15, 2026 16:27
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