René's URL Explorer Experiment


Title: ResourceURL sanitizer bypass through host-binding selector mismatch · Issue #69550 · angular/angular · GitHub

Open Graph Title: ResourceURL sanitizer bypass through host-binding selector mismatch · Issue #69550 · angular/angular

X Title: ResourceURL sanitizer bypass through host-binding selector mismatch · Issue #69550 · angular/angular

Description: Which @angular/* package(s) are the source of the bug? compiler/core Is this a regression? No Description Angular can choose the security context for a host binding from compile-time selector information, then later run that compiled hos...

Open Graph Description: Which @angular/* package(s) are the source of the bug? compiler/core Is this a regression? No Description Angular can choose the security context for a host binding from compile-time selector infor...

X Description: Which @angular/* package(s) are the source of the bug? compiler/core Is this a regression? No Description Angular can choose the security context for a host binding from compile-time selector infor...

Opengraph URL: https://github.com/angular/angular/issues/69550

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ResourceURL sanitizer bypass through host-binding selector mismatch","articleBody":"### Which @angular/* package(s) are the source of the bug?\n\ncompiler/core\n\n### Is this a regression?\n\nNo\n\n### Description\n\n\nAngular can choose the security context for a host binding from compile-time selector information, then later run that compiled host binding on a different concrete runtime host element.\n\nThis becomes unsafe when the selector used during compilation is not a sensitive element, but the runtime host is a sensitive browser sink such as:\n\n- `iframe[srcdoc]`\n- `iframe[src]`\n- `object[data]`\n- `a[href]`\n\nIn those cases Angular may emit or reuse host-binding code equivalent to:\n\n```ts\nattribute('srcdoc', ctx.srcdoc);\nattribute('src', ctx.src);\nattribute('data', ctx.data);\n```\n\n\ninstead of applying sink-specific sanitization such as HTML sanitization for `iframe[srcdoc]` or ResourceURL enforcement for `iframe[src]` / `object[data]`.\n\n### Affected composition paths\n\nThe same mismatch can be reached through at least these public Angular composition paths:\n\n- `hostDirectives`\n- inherited host bindings\n- pure `:not(...)` selectors\n- `createComponent(..., {directives})`\n\n\n## Cases \n\n### 1. `hostDirectives` selector mismatch\n\nThe host directive is compiled from a custom-element selector where `attr.srcdoc` is not treated as an `iframe[srcdoc]` sink. The compiled host binding is then reused on an actual `iframe` host.\n\n\n### 2. Inherited host-binding selector mismatch\n\nThe base directive host binding is compiled from a non-sensitive selector, then inherited by a component/directive whose runtime host is an `iframe`.\n\n\n### 3. Pure `:not(...)` selector under-approximation\n\nA pure `:not(...)` selector does not name the positive runtime element. Angular can compile the host binding without knowing that it will later run on an `iframe`.\n\n### 4. Dynamic `createComponent(..., {directives})` mismatch\n\nThis is the smallest self-contained case for an issue report. A component creates a real `iframe` host, then dynamically applies a directive whose host binding was compiled from a safe custom selector.\n\n\n## Related ResourceURL sinks\n\nThe same selector/runtime-host mismatch also affects document-loading sinks that should require ResourceURL handling, for example: `[attr.src]` & `[attr.data]`\n\n\n## Root cause\n\nThe sanitizer decision is bound too early or too narrowly for host bindings. Public composition APIs can later move or reuse a host binding on a different runtime host element. Dynamic component creation can also create a sensitive host element from a component selector and then write a host-bound sensitive sink.\n\nWhen the final host/sink has a stricter security context than the compiled host binding applies, the write is not reclassified.\n\nIn short:\n\n```text\ncompiled host binding says: no sanitizer / weaker sanitizer\nfinal host is: iframe, script, or object\nbinding writes: srcdoc/src/data\nAngular uses: compiled weak/no-sanitizer context\nbrowser receives: raw sensitive sink value\n```\n\n### Please provide a link to a minimal reproduction of the bug\n\nhttps://issuetracker.google.com/u/1/issues/513926480\n","author":{"url":"https://github.com/SkyZeroZx","@type":"Person","name":"SkyZeroZx"},"datePublished":"2026-06-27T21:03:00Z","url":"https://github.com/angular/angular/issues/69550"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:d8adaade-9487-2e16-516d-7051535bcbf2
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8A22:52913:73487:A2CC7:6AFDEE63
html-safe-nonceed5a2f318745d0e128bdc5bc90a214fb95f6d978917567c467e8dfa2ee599ce7
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QTIyOjUyOTEzOjczNDg3OkEyQ0M3OjZBRkRFRTYzIiwidmlzaXRvcl9pZCI6IjMwOTEzMzY2ODYyODIzMzc4OTEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac1a587647c0ec5703a7e82e44ac321d12ea8890cc556d572ef19ef07c75ecbc19
hovercard-subject-tagissue:4759927142
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular/69550/issue_layout
twitter:imagehttps://opengraph.githubassets.com/8fdc1f20171711ad9f87d92da5d7d35c7995a43b387608af1aa8282e547b8183/angular/angular/issues/69550
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/8fdc1f20171711ad9f87d92da5d7d35c7995a43b387608af1aa8282e547b8183/angular/angular/issues/69550
og:image:altWhich @angular/* package(s) are the source of the bug? compiler/core Is this a regression? No Description Angular can choose the security context for a host binding from compile-time selector infor...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameSkyZeroZx
hostnamegithub.com
expected-hostnamegithub.com
Nonedd812ec581ecac95855f5ec917ef9827506c39a9da1443f43ddb4179a46471eb
turbo-cache-controlno-preview
go-importgithub.com/angular/angular git https://github.com/angular/angular.git
octolytics-dimension-user_id139426
octolytics-dimension-user_loginangular
octolytics-dimension-repository_id24195339
octolytics-dimension-repository_nwoangular/angular
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id24195339
octolytics-dimension-repository_network_root_nwoangular/angular
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release32ac708bac264dafdc28e10ff49b4d137f0c34a7
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/angular/angular/issues/69550#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular%2Fissues%2F69550
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular%2Fissues%2F69550
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=angular%2Fangular
Reloadhttps://github.com/angular/angular/issues/69550
Reloadhttps://github.com/angular/angular/issues/69550
Reloadhttps://github.com/angular/angular/issues/69550
angularhttps://github.com/angular
angularhttps://github.com/angular/angular
Codehttps://github.com/angular/angular
Issues833 (833)https://github.com/angular/angular/issues
Pull requests123 (123)https://github.com/angular/angular/pulls
Discussionshttps://github.com/angular/angular/discussions
Actionshttps://github.com/angular/angular/actions
Projectshttps://github.com/angular/angular/projects
Security and quality40 (40)https://github.com/angular/angular/security
Insightshttps://github.com/angular/angular/insights
https://github.com/angular/angular
New issuehttps://github.com/login?return_to=https://github.com/angular/angular/issues/69550
New issuehttps://github.com/login?return_to=https://github.com/angular/angular/issues/69550
ResourceURL sanitizer bypass through host-binding selector mismatchhttps://github.com/angular/angular/issues/69550#top
area: securityIssues related to built-in security features, such as HTML sanitationhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20security%22
needsTriagehttps://github.com/angular/angular/milestone/83
https://github.com/SkyZeroZx
SkyZeroZxhttps://github.com/SkyZeroZx
on Jun 27, 2026https://github.com/angular/angular/issues/69550#issue-4759927142
https://issuetracker.google.com/u/1/issues/513926480https://issuetracker.google.com/u/1/issues/513926480
angular-robothttps://github.com/apps/angular-robot
area: securityIssues related to built-in security features, such as HTML sanitationhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20security%22
gemini-triagedhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22gemini-triaged%22
on Jun 27, 2026https://github.com/angular/angular/issues/69550#event-27288447823
ngbothttps://github.com/apps/ngbot
needsTriagehttps://github.com/angular/angular/milestone/83
on Jun 27, 2026https://github.com/angular/angular/issues/69550#event-27288448167
angular-robothttps://github.com/apps/angular-robot
needsTriagehttps://github.com/angular/angular/milestone/83
on Jun 27, 2026https://github.com/angular/angular/issues/69550#event-27288448192
SkyZeroZxhttps://github.com/SkyZeroZx
on Jun 29, 2026https://github.com/angular/angular/issues/69550#event-27312876888
fix(core): sanitize host bindings on concrete hostshttps://github.com/SkyZeroZx/angular/commit/4222cfdcaaede476e2a8aa0ef35ea1f8db0b7514
https://docs.github.com/articles/closing-issues-via-commit-messages
4222cfdhttps://github.com/SkyZeroZx/angular/commit/4222cfdcaaede476e2a8aa0ef35ea1f8db0b7514
fix(core): sanitize host bindings on concrete hostshttps://github.com/SkyZeroZx/angular/commit/ac9a44a2717f4a4456e9e0a6c55604bfea2a5147
https://docs.github.com/articles/closing-issues-via-commit-messages
ac9a44ahttps://github.com/SkyZeroZx/angular/commit/ac9a44a2717f4a4456e9e0a6c55604bfea2a5147
fix(core): sanitize host bindings on concrete hostshttps://github.com/SkyZeroZx/angular/commit/027cd322e5282e8b76569d3be155407cd7366154
https://docs.github.com/articles/closing-issues-via-commit-messages
027cd32https://github.com/SkyZeroZx/angular/commit/027cd322e5282e8b76569d3be155407cd7366154
fix(core): sanitize host bindings on concrete hostshttps://github.com/SkyZeroZx/angular/commit/b527d55cc7d6f576e3615bfd6b04ed778e992284
https://docs.github.com/articles/closing-issues-via-commit-messages
b527d55https://github.com/SkyZeroZx/angular/commit/b527d55cc7d6f576e3615bfd6b04ed778e992284
fix(core): sanitize host bindings on concrete hostshttps://github.com/SkyZeroZx/angular/commit/3936609edfa8d218913d02463fca29ea2ec731a4
https://docs.github.com/articles/closing-issues-via-commit-messages
3936609https://github.com/SkyZeroZx/angular/commit/3936609edfa8d218913d02463fca29ea2ec731a4
SkyZeroZxhttps://github.com/SkyZeroZx
on Jul 21, 2026https://github.com/angular/angular/issues/69550#event-28287035902
fix(core): sanitize host bindings on concrete hostshttps://github.com/SkyZeroZx/angular/commit/bcb1b75987ee6a072f68317285513a6df698ac3a
https://docs.github.com/articles/closing-issues-via-commit-messages
bcb1b75https://github.com/SkyZeroZx/angular/commit/bcb1b75987ee6a072f68317285513a6df698ac3a
fix(core): sanitize host bindings on concrete hostshttps://github.com/SkyZeroZx/angular/commit/645adbebae0da7950943016ba66dc539332cfefc
https://docs.github.com/articles/closing-issues-via-commit-messages
645adbehttps://github.com/SkyZeroZx/angular/commit/645adbebae0da7950943016ba66dc539332cfefc
fix(core): sanitize host bindings on concrete hostshttps://github.com/SkyZeroZx/angular/commit/6caa298dee58319b2d674dc91364e26ffe3ecb2b
https://docs.github.com/articles/closing-issues-via-commit-messages
6caa298https://github.com/SkyZeroZx/angular/commit/6caa298dee58319b2d674dc91364e26ffe3ecb2b
alxhubhttps://github.com/alxhub
completedhttps://github.com/angular/angular/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
d06e374https://github.com/angular/angular/commit/d06e3748b7b9e03c197694c5888556ffae54b366
on Jul 29, 2026https://github.com/angular/angular/issues/69550#event-28670475375
alxhubhttps://github.com/alxhub
on Jul 29, 2026https://github.com/angular/angular/issues/69550#event-28670476558
fix(core): sanitize host bindings on concrete hosts (#69558)https://github.com/angular/angular/commit/2df018fe25942e60edb1b95aebcda266012e3f25
#69558https://github.com/angular/angular/pull/69558
https://docs.github.com/articles/closing-issues-via-commit-messages
2df018fhttps://github.com/angular/angular/commit/2df018fe25942e60edb1b95aebcda266012e3f25
fix(core): sanitize host bindings on concrete hosts (#69558)https://github.com/angular/angular/commit/23cf1a828be0d5bd29ce84cb904b5df9ed67f544
#69558https://github.com/angular/angular/pull/69558
https://docs.github.com/articles/closing-issues-via-commit-messages
23cf1a8https://github.com/angular/angular/commit/23cf1a828be0d5bd29ce84cb904b5df9ed67f544
angular-robothttps://github.com/angular-robot
on Jul 29, 2026https://github.com/angular/angular/issues/69550#event-28671575828
fix(core): sanitize host bindings on concrete hosts (angular#69558)https://github.com/angular-robot/angular/commit/d06e3748b7b9e03c197694c5888556ffae54b366
angular#69558https://github.com/angular/angular/pull/69558
https://docs.github.com/articles/closing-issues-via-commit-messages
d06e374https://github.com/angular-robot/angular/commit/d06e3748b7b9e03c197694c5888556ffae54b366
https://github.com/apps/angular-automatic-lock-bot
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Oct 18, 2026https://github.com/angular/angular/issues/69550#issuecomment-6243658502
automatic conversation locking policyhttps://github.com/angular/angular/blob/f0fbced1c55bc8b8ed9df01cea99df42f3e7eae3/contributing-docs/auto-issue-locking.md
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Oct 18, 2026https://github.com/angular/angular/issues/69550#event-33547690053
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angular/issues/69550
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angular/issues/69550
area: securityIssues related to built-in security features, such as HTML sanitationhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20security%22
needsTriageNo due datehttps://github.com/angular/angular/milestone/83
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.