René's URL Explorer Experiment


Title: fix(@angular-devkit/schematics): prevent schematic writes from escaping the workspace via symlinks by adilburaksen · Pull Request #33334 · angular/angular-cli · GitHub

Open Graph Title: fix(@angular-devkit/schematics): prevent schematic writes from escaping the workspace via symlinks by adilburaksen · Pull Request #33334 · angular/angular-cli

X Title: fix(@angular-devkit/schematics): prevent schematic writes from escaping the workspace via symlinks by adilburaksen · Pull Request #33334 · angular/angular-cli

Description: Reopens #33325 (the previous PR was accidentally closed; this is the same single-file fix rebased cleanly onto current main). A schematic / migration write can escape the workspace root via a symlinked directory inside the workspace. The schematics NodeWorkflow writes through virtualFs.ScopedHost, whose containment is lexical (it joins the path under the root but does not resolve symlinks), and the schematics Tree only rejects ... So a workspace that contains a symlinked directory can route a write/delete/rename to a file outside the workspace. Fix WorkspaceRootHost extends virtualFs.ScopedHost resolves the real (symlink-collapsed) path with realpathSync (walking up to the first existing ancestor for not-yet-created files) and rejects any write/delete/rename whose real location is outside the workspace root (rel === ".." || rel.startsWith(".." + sep) || isAbsolute(rel)). This mirrors the realpath-based root restriction already used by the MCP host (createRootRestrictedHost). No change for legitimate in-workspace paths. Single file changed: packages/angular_devkit/schematics/tools/workflow/node-workflow.ts (+70 −1).

Open Graph Description: Reopens #33325 (the previous PR was accidentally closed; this is the same single-file fix rebased cleanly onto current main). A schematic / migration write can escape the workspace root via a symli...

X Description: Reopens #33325 (the previous PR was accidentally closed; this is the same single-file fix rebased cleanly onto current main). A schematic / migration write can escape the workspace root via a symli...

Opengraph URL: https://github.com/angular/angular-cli/pull/33334

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:8c4498a7-32e8-1312-e184-d74a5e71e961
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD0A0:303FF4:3E4B6ED:564D77D:6A60F5CB
html-safe-nonce10167d5ede21821c55b7d674dfee30f36686641f66f6a5cd5b1e47b79fd016c0
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMEEwOjMwM0ZGNDozRTRCNkVEOjU2NEQ3N0Q6NkE2MEY1Q0IiLCJ2aXNpdG9yX2lkIjoiMzQ5MTAyOTI1OTEyMDYwNDYxOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacec1bcb1b0dbfed5178a3800d053fa661d6cda21f0c748161d388f7b2460a585b
hovercard-subject-tagpull_request:3834518238
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/angular/angular-cli/pull/33334/files
twitter:imagehttps://avatars.githubusercontent.com/u/56400880?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/56400880?s=400&v=4
og:image:altReopens #33325 (the previous PR was accidentally closed; this is the same single-file fix rebased cleanly onto current main). A schematic / migration write can escape the workspace root via a symli...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None01a0f3379195d313175de239776b09dd4a079d5b2ea29dd9c37e85cd4cd5e990
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/angular/angular-cli git https://github.com/angular/angular-cli.git
octolytics-dimension-user_id139426
octolytics-dimension-user_loginangular
octolytics-dimension-repository_id36891867
octolytics-dimension-repository_nwoangular/angular-cli
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id36891867
octolytics-dimension-repository_network_root_nwoangular/angular-cli
turbo-body-classeslogged-out env-production page-responsive
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release00ca1a9089c8f2453e5d118d0554c8a26883d159
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/angular/angular-cli/pull/33334/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular-cli%2Fpull%2F33334%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular-cli%2Fpull%2F33334%2Ffiles
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=angular%2Fangular-cli
Reloadhttps://github.com/angular/angular-cli/pull/33334/files
Reloadhttps://github.com/angular/angular-cli/pull/33334/files
Reloadhttps://github.com/angular/angular-cli/pull/33334/files
Please reload this pagehttps://github.com/angular/angular-cli/pull/33334/files
angular https://github.com/angular
angular-clihttps://github.com/angular/angular-cli
Notifications https://github.com/login?return_to=%2Fangular%2Fangular-cli
Fork 11.9k https://github.com/login?return_to=%2Fangular%2Fangular-cli
Star 27k https://github.com/login?return_to=%2Fangular%2Fangular-cli
Code https://github.com/angular/angular-cli
Issues 271 https://github.com/angular/angular-cli/issues
Pull requests 35 https://github.com/angular/angular-cli/pulls
Actions https://github.com/angular/angular-cli/actions
Security and quality 5 https://github.com/angular/angular-cli/security
Insights https://github.com/angular/angular-cli/pulse
Code https://github.com/angular/angular-cli
Issues https://github.com/angular/angular-cli/issues
Pull requests https://github.com/angular/angular-cli/pulls
Actions https://github.com/angular/angular-cli/actions
Security and quality https://github.com/angular/angular-cli/security
Insights https://github.com/angular/angular-cli/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fangular%2Fangular-cli%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fangular%2Fangular-cli%2Fissues%2Fnew%2Fchoose
adilburaksenhttps://github.com/adilburaksen
angular:mainhttps://github.com/angular/angular-cli/tree/main
adilburaksen:schematics-workspace-realpath-containmenthttps://github.com/adilburaksen/angular-cli/tree/schematics-workspace-realpath-containment
Conversation 5 https://github.com/angular/angular-cli/pull/33334
Commits 2 https://github.com/angular/angular-cli/pull/33334/commits
Checks 9 https://github.com/angular/angular-cli/pull/33334/checks
Files changed https://github.com/angular/angular-cli/pull/33334/files
Please reload this pagehttps://github.com/angular/angular-cli/pull/33334/files
fix(@angular-devkit/schematics): prevent schematic writes from escaping the workspace via symlinks https://github.com/angular/angular-cli/pull/33334/files#top
Show all changes 2 commits https://github.com/angular/angular-cli/pull/33334/files
33e009c fix(@angular-devkit/schematics): prevent schematic writes from escapi… adilburaksen Jun 9, 2026 https://github.com/angular/angular-cli/pull/33334/commits/33e009c5c2d55bd5b6c35af4b78d7f6c9dd5ad84
1e73594 fix(@angular-devkit/schematics): handle non-existent paths in workspa… adilburaksen Jun 9, 2026 https://github.com/angular/angular-cli/pull/33334/commits/1e735946b7363f44634154e0371a78c40df6ce38
Clear filters https://github.com/angular/angular-cli/pull/33334/files
Please reload this pagehttps://github.com/angular/angular-cli/pull/33334/files
Please reload this pagehttps://github.com/angular/angular-cli/pull/33334/files
packages/angular_devkit/schematics/tools/workflow/node-workflow.tshttps://github.com/angular/angular-cli/pull/33334/files#diff-ba1593742b03806c00a95f1a26825a3113a8844ad9de5ad3a1fc073450e74e13
View file https://github.com/angular/angular-cli/blob/1e735946b7363f44634154e0371a78c40df6ce38/packages/angular_devkit/schematics/tools/workflow/node-workflow.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/angular/angular-cli/pull/33334/{{ revealButtonHref }}
https://github.com/angular/angular-cli/pull/33334/files#diff-ba1593742b03806c00a95f1a26825a3113a8844ad9de5ad3a1fc073450e74e13
https://github.com/angular/angular-cli/pull/33334/files#diff-ba1593742b03806c00a95f1a26825a3113a8844ad9de5ad3a1fc073450e74e13
gemini-code-assisthttps://github.com/apps/gemini-code-assist
Jun 9, 2026https://github.com/angular/angular-cli/pull/33334/files#r3383759324
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
https://camo.githubusercontent.com/7559374fd248a2a146dfe7112beda558979c4f6d02dbe7c5161fd893fe834423/68747470733a2f2f7777772e677374617469632e636f6d2f636f64657265766965776167656e742f686967682d7072696f726974792e737667
Please reload this pagehttps://github.com/angular/angular-cli/pull/33334/files
https://github.com/angular/angular-cli/pull/33334/files#diff-ba1593742b03806c00a95f1a26825a3113a8844ad9de5ad3a1fc073450e74e13
https://github.com/angular/angular-cli/pull/33334/files#diff-ba1593742b03806c00a95f1a26825a3113a8844ad9de5ad3a1fc073450e74e13
Please reload this pagehttps://github.com/angular/angular-cli/pull/33334/files
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.