René's URL Explorer Experiment


Title: fix(provider-utils): block .internal download hostnames (#23653) · vercel/ai@b089ce8 · GitHub

Open Graph Title: fix(provider-utils): block .internal download hostnames (#23653) · vercel/ai@b089ce8

X Title: fix(provider-utils): block .internal download hostnames (#23653) · vercel/ai@b089ce8

Description: The AI Toolkit for TypeScript. From the creators of Next.js, the AI SDK is a free open-source library for building AI-powered applications and agents - fix(provider-utils): block .internal download hostnames (#23653) · vercel/ai@b089ce8

Open Graph Description: ## Background Download URL validation accepts `.internal` hostnames even though the suffix is reserved for private use. Blocking it provides modest defense in depth, especially for runtimes or cus...

X Description: ## Background Download URL validation accepts `.internal` hostnames even though the suffix is reserved for private use. Blocking it provides modest defense in depth, especially for runtimes or cus...

Opengraph URL: /vercel/ai/commit/b089ce848a41a81be167cce4b1bb8a00e2fffab0

X: @github

direct link

Domain: redirect.github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/:user_id/:repository/commit/:name(/*path)
route-controllercommit
route-actionshow
fetch-noncev2:682133b1-fe52-045b-d845-20c9f92827d8
current-catalog-service-hashf3abb0cc802f3d7b95fc8762b94bdcb13bf39634c40c357301c4aa1d67a256fb
request-idEB32:ABE51:138FF02:19B5846:6AED7302
html-safe-nonce1c3b968f6269d36f66bc2dde434322aca48df316555a5ea2d8eb40c429375d7f
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQjMyOkFCRTUxOjEzOEZGMDI6MTlCNTg0Njo2QUVENzMwMiIsInZpc2l0b3JfaWQiOiI2OTYxNDczMDQzMTU4NjI3MDc0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacb75397a3f8894cbcc98b87ecddf2990eaf1242ba571dfc0872aa8491f593bfe1
hovercard-subject-tagrepository:644461337
github-keyboard-shortcutsrepository,commits,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///commit/show
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/vercel/ai/commit/b089ce8
twitter:imagehttps://opengraph.githubassets.com/e0419a76e4e4012a0e69a4105763a94437bf66c3d623f3bebf3db23768cbb06c/vercel/ai/commit/b089ce848a41a81be167cce4b1bb8a00e2fffab0
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/e0419a76e4e4012a0e69a4105763a94437bf66c3d623f3bebf3db23768cbb06c/vercel/ai/commit/b089ce848a41a81be167cce4b1bb8a00e2fffab0
og:image:alt## Background Download URL validation accepts `.internal` hostnames even though the suffix is reserved for private use. Blocking it provides modest defense in depth, especially for runtimes or cus...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:updated_time1792544564
hostnamegithub.com
expected-hostnamegithub.com
None56fb42677ae87ed3e64410323d67980aa65d0485568a7858f874e7edfc6d1c11
turbo-cache-controlno-cache
go-importgithub.com/vercel/ai git https://github.com/vercel/ai.git
octolytics-dimension-user_id14985020
octolytics-dimension-user_loginvercel
octolytics-dimension-repository_id644461337
octolytics-dimension-repository_nwovercel/ai
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id644461337
octolytics-dimension-repository_network_root_nwovercel/ai
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
release9c9a37e2423ed382cf39f70b5aa4b4858b40a3b0
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namecommits

Links:

Skip to contenthttps://redirect.github.com/vercel/ai/commit/b089ce8#start-of-content
https://redirect.github.com/
Sign inhttps://redirect.github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fvercel%2Fai%2Fcommit%2Fb089ce8
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://redirect.github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fvercel%2Fai%2Fcommit%2Fb089ce8
Sign uphttps://redirect.github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fcommit%2Fshow&source=header-repo&source_repo=vercel%2Fai
Reloadhttps://redirect.github.com/vercel/ai/commit/b089ce8
Reloadhttps://redirect.github.com/vercel/ai/commit/b089ce8
Reloadhttps://redirect.github.com/vercel/ai/commit/b089ce8
vercelhttps://redirect.github.com/vercel
aihttps://redirect.github.com/vercel/ai
Codehttps://redirect.github.com/vercel/ai
Issues475 (475)https://redirect.github.com/vercel/ai/issues
Pull requests1k (1k)https://redirect.github.com/vercel/ai/pulls
Actionshttps://redirect.github.com/vercel/ai/actions
Projectshttps://redirect.github.com/vercel/ai/projects
Security and quality6 (6)https://redirect.github.com/vercel/ai/security
Insightshttps://redirect.github.com/vercel/ai/pulse
https://redirect.github.com/vercel/ai
Browse fileshttps://redirect.github.com/vercel/ai/tree/b089ce848a41a81be167cce4b1bb8a00e2fffab0
https://redirect.github.com/vercel/ai/tree/b089ce848a41a81be167cce4b1bb8a00e2fffab0
gr2mhttps://redirect.github.com/vercel/ai/commits?author=gr2m
Diode11-Althttps://redirect.github.com/vercel/ai/commits?author=Diode11-Alt
#23653https://github.com/vercel/ai/pull/23653
#14132https://github.com/vercel/ai/pull/14132
@Diode11-Althttps://github.com/Diode11-Alt
#14132https://github.com/vercel/ai/pull/14132
1f68635https://redirect.github.com/vercel/ai/commit/1f686350c2e080e8a8558654d8857a01523966f8
block-internal-download-hostnames.mdhttps://redirect.github.com/vercel/ai/commit/b089ce8#diff-5cca29bb9b73c1120bbe998008f7717610a9651b77c43713129113cc17a4cc08
11-secure-url-fetching.mdxhttps://redirect.github.com/vercel/ai/commit/b089ce8#diff-bea6901e8180249954d9ae1ce9f5a4809855c5460dfed419e630140f5ddedb6d
fetch-with-validated-redirects.test.tshttps://redirect.github.com/vercel/ai/commit/b089ce8#diff-40bf5907b4c8539b8c292f2b7c626eb050a70a1a8933a49edc7cad5e76df7338
validate-download-url.test.tshttps://redirect.github.com/vercel/ai/commit/b089ce8#diff-13948f829ea2126b1bd9899e25333e95797f02721b9d849729fe4980432608a0
validate-download-url.tshttps://redirect.github.com/vercel/ai/commit/b089ce8#diff-72a9f817e6461445e66b94e4323d838af542dcb47e2e664782806691cea030a2
‎.changeset/block-internal-download-hostnames.md‎https://redirect.github.com/vercel/ai/commit/b089ce8#diff-5cca29bb9b73c1120bbe998008f7717610a9651b77c43713129113cc17a4cc08
‎content/docs/06-advanced/11-secure-url-fetching.mdx‎https://redirect.github.com/vercel/ai/commit/b089ce8#diff-bea6901e8180249954d9ae1ce9f5a4809855c5460dfed419e630140f5ddedb6d
‎packages/provider-utils/src/fetch-with-validated-redirects.test.ts‎https://redirect.github.com/vercel/ai/commit/b089ce8#diff-40bf5907b4c8539b8c292f2b7c626eb050a70a1a8933a49edc7cad5e76df7338
‎packages/provider-utils/src/validate-download-url.test.ts‎https://redirect.github.com/vercel/ai/commit/b089ce8#diff-13948f829ea2126b1bd9899e25333e95797f02721b9d849729fe4980432608a0
‎packages/provider-utils/src/validate-download-url.ts‎https://redirect.github.com/vercel/ai/commit/b089ce8#diff-72a9f817e6461445e66b94e4323d838af542dcb47e2e664782806691cea030a2
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.