René's URL Explorer Experiment


Title: Angular service worker bypasses explicit `redirect: 'error'`, leaks authenticated content into JavaScript, and replays it after logout. · Issue #68620 · angular/angular · GitHub

Open Graph Title: Angular service worker bypasses explicit `redirect: 'error'`, leaks authenticated content into JavaScript, and replays it after logout. · Issue #68620 · angular/angular

X Title: Angular service worker bypasses explicit `redirect: 'error'`, leaks authenticated content into JavaScript, and replays it after logout. · Issue #68620 · angular/angular

Description: Which @angular/* package(s) are the source of the bug? service-worker Description Details Angular service worker asset handling reconstructs outgoing requests through AssetGroup.newRequestWithMetadata() while preserving headers only. In ...

Open Graph Description: Which @angular/* package(s) are the source of the bug? service-worker Description Details Angular service worker asset handling reconstructs outgoing requests through AssetGroup.newRequestWithMetad...

X Description: Which @angular/* package(s) are the source of the bug? service-worker Description Details Angular service worker asset handling reconstructs outgoing requests through AssetGroup.newRequestWithMetad...

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

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Angular service worker bypasses explicit `redirect: 'error'`, leaks authenticated content into JavaScript, and replays it after logout.","articleBody":"### Which @angular/* package(s) are the source of the bug?\n\nservice-worker\n\n### Description\n\nDetails\nAngular service worker asset handling reconstructs outgoing requests through AssetGroup.newRequestWithMetadata() while preserving headers only. In the redirected asset path, this drops explicit redirect policy from the original request. As a result, a caller-supplied fetch(..., {redirect: 'error'}) is turned into a redirect-following request inside the framework service worker.\n\nThe root cause is in Angular-owned code:\n\npackages/service-worker/worker/src/assets.ts\nAssetGroup.fetchFromNetwork() manually follows redirected responses\nAssetGroup.newRequestWithMetadata() rebuilds requests without preserving explicit redirect\nThis is a framework-owned request-policy bypass, not generic stale-cache behavior, because the browser's original decision is to reject the request and Angular service worker changes that outcome.\n\nAttack scenario\nAny actor who can get a victim to open a normal page or deep link that causes the Angular application itself to fetch the public asset URL can exploit this behavior in an Angular application that uses the Angular service worker on the affected scope and has a same-origin redirect from a public asset path to authenticated/private content. The attack does not need injected JavaScript in the victim origin if the app already performs the asset fetch on page load or route change.\n\nWhat they gain:\n\naccess to authenticated same-origin secret content that the browser would not have returned for the original redirect: 'error' request\npersistence of that secret under a public URL in the Angular service-worker cache\nreplay of the secret after logout, because the cached public URL continues returning the previously fetched private content\nThe strongest proven impact is confidentiality exposure to JavaScript plus post-logout replay of authenticated content. The current browser repro already models a realistic app-origin trigger because opening /?auto=1 causes the page's own boot script to issue the vulnerable fetch automatically, and the fetched path is an asset-style JSON URL matching the kind of startup/route asset requests Angular-owned code already performs.\n\n### Please provide a link to a minimal reproduction of the bug\n\n_No response_\n\n### Please provide the exception or error you saw\n\n```true\n\n```\n\n### Please provide the environment you discovered this bug in (run `ng version`)\n\n```true\n\n```\n\n### Anything else?\n\n_No response_","author":{"url":"https://github.com/Yenya030","@type":"Person","name":"Yenya030"},"datePublished":"2026-05-07T13:16:24Z","url":"https://github.com/angular/angular/issues/68620"}

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:9b031e96-b907-6316-64a3-8b0420e02e82
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA3EC:17C530:B3DD4A:E817EA:6B063907
html-safe-nonce67b7f203f34b70b2406a419556a08170e6a322cf3eaae9471e852832dfa19411
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBM0VDOjE3QzUzMDpCM0RENEE6RTgxN0VBOjZCMDYzOTA3IiwidmlzaXRvcl9pZCI6IjEyODg3MjE0MDE1NzAwMTU0OTUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac23d6619b6b68b3a3ebba29ea06845ba734573595f0aa7ed0520ea6cd2b618aad
hovercard-subject-tagissue:4399046010
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/68620/issue_layout
twitter:imagehttps://opengraph.githubassets.com/9104d9e62767cc51a514dcc7be65a823f3077d3dec9945eb40e1d87dbdff4971/angular/angular/issues/68620
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/9104d9e62767cc51a514dcc7be65a823f3077d3dec9945eb40e1d87dbdff4971/angular/angular/issues/68620
og:image:altWhich @angular/* package(s) are the source of the bug? service-worker Description Details Angular service worker asset handling reconstructs outgoing requests through AssetGroup.newRequestWithMetad...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameYenya030
hostnamegithub.com
expected-hostnamegithub.com
Nonedcf72c457c022486d23c3cbb0dd21aba537a87611ca9ddabd1799cf2eaa9b297
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
release0f38f5735226749ec5e08a8649dce4cb2613d9ad
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/angular/angular/issues/68620#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular%2Fissues%2F68620
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%2F68620
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/68620
Reloadhttps://github.com/angular/angular/issues/68620
Reloadhttps://github.com/angular/angular/issues/68620
angularhttps://github.com/angular
angularhttps://github.com/angular/angular
Codehttps://github.com/angular/angular
Issues831 (831)https://github.com/angular/angular/issues
Pull requests122 (122)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/68620
New issuehttps://github.com/login?return_to=https://github.com/angular/angular/issues/68620
Angular service worker bypasses explicit redirect: 'error', leaks authenticated content into JavaScript, and replays it after logout.https://github.com/angular/angular/issues/68620#top
area: service-workerhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20service-worker%22
needsTriagehttps://github.com/angular/angular/milestone/83
https://github.com/Yenya030
Yenya030https://github.com/Yenya030
on May 7, 2026https://github.com/angular/angular/issues/68620#issue-4399046010
angular-robothttps://github.com/apps/angular-robot
area: service-workerhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20service-worker%22
gemini-triagedhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22gemini-triaged%22
on May 7, 2026https://github.com/angular/angular/issues/68620#event-25262627229
ngbothttps://github.com/apps/ngbot
needsTriagehttps://github.com/angular/angular/milestone/83
on May 7, 2026https://github.com/angular/angular/issues/68620#event-25262628567
https://github.com/Yenya030
Yenya030https://github.com/Yenya030
on May 7, 2026https://github.com/angular/angular/issues/68620#issuecomment-4397518961
@alan-agius4https://github.com/alan-agius4
@JeanMechehttps://github.com/JeanMeche
#67494https://github.com/angular/angular/pull/67494
https://github.com/alan-agius4
alan-agius4https://github.com/alan-agius4
on May 8, 2026https://github.com/angular/angular/issues/68620#issuecomment-4404680993
alan-agius4https://github.com/alan-agius4
not plannedhttps://github.com/angular/angular/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Anot-planned
on May 8, 2026https://github.com/angular/angular/issues/68620#event-25296289455
https://github.com/Yenya030
Yenya030https://github.com/Yenya030
on May 8, 2026https://github.com/angular/angular/issues/68620#issuecomment-4405656390
@alan-agius4https://github.com/alan-agius4
https://github.com/Yenya030
Yenya030https://github.com/Yenya030
on May 18, 2026https://github.com/angular/angular/issues/68620#issuecomment-4480881969
@alan-agius4https://github.com/alan-agius4
GHSA-x288-3778-4hhxhttps://github.com/advisories/GHSA-x288-3778-4hhx
#67494https://github.com/angular/angular/pull/67494
https://github.com/josephperrott
josephperrotthttps://github.com/josephperrott
on May 20, 2026https://github.com/angular/angular/issues/68620#issuecomment-4493375523
#67494https://github.com/angular/angular/pull/67494
angularhttps://github.com/angular
on May 20, 2026https://github.com/angular/angular/issues/68620#event-25733325943
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angular/issues/68620
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angular/issues/68620
area: service-workerhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20service-worker%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

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.