Skip to content

A couple of sanitization fixes #67561

Merged
mattrbeck merged 2 commits into
angular:mainfrom
crisbeto:more-xss
Mar 12, 2026
Merged

A couple of sanitization fixes #67561
mattrbeck merged 2 commits into
angular:mainfrom
crisbeto:more-xss

Conversation

@crisbeto

Copy link
Copy Markdown
Member

Includes a couple of fixes around sanitization.

@crisbeto crisbeto added the target: patch This PR is targeted for the next patch release label Mar 11, 2026
@angular-robot angular-robot Bot added area: compiler Issues related to `ngc`, Angular's template compiler area: core Issues related to the framework runtime labels Mar 11, 2026
@ngbot ngbot Bot added this to the Backlog milestone Mar 11, 2026
@crisbeto crisbeto requested a review from AndrewKushnir March 11, 2026 17:31
@crisbeto crisbeto added the action: review The PR is still awaiting reviews from at least one requested reviewer label Mar 11, 2026
@crisbeto crisbeto marked this pull request as ready for review March 11, 2026 17:31

@josephperrott josephperrott 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.

LGTM

Reviewed-for: fw-security

Fixes that we weren't sanitizing the `form` and `formaction` attributes when they're used together with translations.
Fixes that the compiler was allowing translations of `src` attributes in iframes which can be a security issue.

@alan-agius4 alan-agius4 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

Reviewed-for: fw-security

@crisbeto

Copy link
Copy Markdown
Member Author

Passing TGP

@crisbeto crisbeto added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Mar 12, 2026
@mattrbeck mattrbeck merged commit 78dea55 into angular:main Mar 12, 2026
21 checks passed
@mattrbeck

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 issue 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 Apr 12, 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: compiler Issues related to `ngc`, Angular's template compiler area: core Issues related to the framework runtime target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants