Skip to content

fix(core): treat iframe credentialless as security-sensitive#69202

Open
SkyZeroZx wants to merge 1 commit into
angular:mainfrom
SkyZeroZx:fix/iframe-credentialess
Open

fix(core): treat iframe credentialless as security-sensitive#69202
SkyZeroZx wants to merge 1 commit into
angular:mainfrom
SkyZeroZx:fix/iframe-credentialess

Conversation

@SkyZeroZx

@SkyZeroZx SkyZeroZx commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

Mark the iframe credentialless attribute as security-sensitive so dynamic
bindings are handled consistently with other iframe attributes that affect the
initial navigation, such as sandbox, allow, referrerPolicy, csp, and
fetchPriority.

Because credentialless must be present before the iframe starts loading to
affect the navigation’s credential mode, late dynamic updates can leave the final
DOM looking correct while the initial request was not loaded credentiallessly.

@SkyZeroZx SkyZeroZx changed the title fix(core): Adds credentialless iframe attribute to security schema fix(core): treat iframe credentialless as security-sensitive Jun 5, 2026
@angular-robot angular-robot Bot added the area: core Issues related to the framework runtime label Jun 5, 2026
@ngbot ngbot Bot added this to the Backlog milestone Jun 5, 2026
@SkyZeroZx SkyZeroZx force-pushed the fix/iframe-credentialess branch from 332d014 to 76b7d6c Compare June 5, 2026 23:42
@SkyZeroZx SkyZeroZx marked this pull request as ready for review June 5, 2026 23:43
@alan-agius4

Copy link
Copy Markdown
Contributor

//cc @securityMB from ISE to verify if we should do this.

@securityMB

Copy link
Copy Markdown

//cc @securityMB from ISE to verify if we should do this.

Yes, I think this change makes sense and the behavior of credentialless is consistent with other attributes from https://angular.dev/errors/NG0910.

@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

@pullapprove pullapprove Bot requested a review from alan-agius4 June 8, 2026 10:08

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

Reviewed-for: fw-security

@alan-agius4 alan-agius4 added action: review The PR is still awaiting reviews from at least one requested reviewer target: patch This PR is targeted for the next patch release labels Jun 8, 2026

@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

Mark the iframe `credentialless` attribute as security-sensitive so dynamic
bindings are handled consistently with other iframe attributes that affect the
initial navigation, such as `sandbox`, `allow`, `referrerPolicy`, `csp`, and
`fetchPriority`.

Because `credentialless` must be present before the iframe starts loading to
affect the navigation’s credential mode, late dynamic updates can leave the final
DOM looking correct while the initial request was not loaded credentiallessly.
@SkyZeroZx SkyZeroZx force-pushed the fix/iframe-credentialess branch from 76b7d6c to 7c5824b Compare June 12, 2026 16:50
@angular-robot angular-robot Bot requested a review from josephperrott June 12, 2026 16:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

action: review The PR is still awaiting reviews from at least one requested reviewer 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.

5 participants