Skip to content

fix(platform-browser): disallow event handler attributes in Meta - #70127

Merged
thePunderWoman merged 3 commits into
angular:mainfrom
SkyZeroZx:fix/event-handle-meta
Aug 17, 2026
Merged

thePunderWoman merged 3 commits into
angular:mainfrom
SkyZeroZx:fix/event-handle-meta

Conversation

@SkyZeroZx

Copy link
Copy Markdown
Contributor

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 #70126

@angular-robot angular-robot Bot added the area: core Issues related to the framework runtime label Aug 8, 2026
@ngbot ngbot Bot added this to the Backlog milestone Aug 8, 2026
@SkyZeroZx
SkyZeroZx marked this pull request as ready for review August 9, 2026 22:45
@pullapprove
pullapprove Bot requested a review from crisbeto August 9, 2026 22:45
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
@SkyZeroZx
SkyZeroZx force-pushed the fix/event-handle-meta branch from 448bf39 to 30c0429 Compare August 14, 2026 19:22
@JeanMeche
JeanMeche removed the request for review from crisbeto August 16, 2026 18:11
@pullapprove
pullapprove Bot requested review from JeanMeche and atscott August 16, 2026 18:11

@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

@JeanMeche
JeanMeche removed the request for review from atscott August 16, 2026 18:12
@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 merge: caretaker note Alert the caretaker performing the merge to check the PR for an out of normal action needed or note labels Aug 16, 2026
@JeanMeche

Copy link
Copy Markdown
Member

caretaker note: presubmit failure is a flake, this is good to go

@thePunderWoman
thePunderWoman merged commit 6f9a6be into angular:main Aug 17, 2026
26 of 29 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 21, 2026
@SkyZeroZx
SkyZeroZx deleted the fix/event-handle-meta branch November 15, 2026 16:28
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 merge: caretaker note Alert the caretaker performing the merge to check the PR for an out of normal action needed or note target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Meta service allows executable event-handler attributes

3 participants