fix(deps): update dependency @astrojs/cloudflare to v12 [security] #109
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
This PR contains the following updates:
11.0.4->12.6.6GitHub Vulnerability Alerts
CVE-2025-58179
Summary
When using Astro's Cloudflare adapter (
@astrojs/cloudflare) configured withoutput: 'server'while using the defaultimageService: 'compile', the generated image optimization endpoint doesn't check the URLs it receives, allowing content from unauthorized third-party domains to be served.Details
On-demand rendered sites built with Astro include an
/_imageendpoint, which returns optimized versions of images.The
/_imageendpoint is restricted to processing local images bundled with the site and also supports remote images from domains the site developer has manually authorized (using theimage.domainsorimage.remotePatternsoptions).However, a bug in impacted versions of the
@astrojs/cloudflareadapter for deployment on Cloudflare’s infrastructure, allows an attacker to bypass the third-party domain restrictions and serve any content from the vulnerable origin.PoC
Create a new minimal Astro project (
[email protected])Configure it to use the Cloudflare adapter (
@astrojs/[email protected]) and server output:Deploy to Cloudflare Pages or Workers
Append
/_image?href=https://placehold.co/600x400to the deployment URL.This will serve the placeholder image from the unauthorised
placehold.codomain.Impact
Allows a non-authorized third-party to create URLs on an impacted site’s origin that serve unauthorized content. This includes the risk of server-side request forgery (SSRF) and by extension cross-site scripting (XSS) if a user follows a link to a maliciously crafted URL.
Release Notes
withastro/astro (@astrojs/cloudflare)
v12.6.6Compare Source
Patch Changes
9ecf359Thanks @alexanderniebuhr! - Improves the image proxy endpoint when using the default compile option to adhere to user configuration regarding the allowed remote domainsUpdated dependencies []:
v12.6.5Compare Source
Patch Changes
#14259
02366e9Thanks @ascorbic! - Removes warning when using the adapter with a static build.The Cloudflare adapter now has several uses outside of on-demand rendered pages, so this warning is misleading. Similar warnings have already been removed from other adapters.
#14234
15b55f3Thanks @yanthomasdev! - Fixes an issue that could cause duplicate exports when configuringworkerEntrypoint.namedExports#14240
77b18fbThanks @delucis! - Increases the minimum supported version of Astro to 5.7.0Updated dependencies []:
v12.6.4Compare Source
Patch Changes
4d16de7]:v12.6.3Compare Source
Patch Changes
#14066
7abde79Thanks @alexanderniebuhr! - Refactors the internal solution which powers Astro Sessions when running local development with ˋastro devˋ.The adapter now utilizes Cloudflare's local support for Cloudflare KV. This internal change is a drop-in replacement and does not require any change to your projectct code.
However, you now have the ability to connect to the remote Cloudflare KV Namespace if desired and use production data during local development.
Updated dependencies []:
v12.6.2Compare Source
Patch Changes
#13894
b36e72fThanks @florian-lefebvre! - Removes special handling of theASTRO_STUDIO_APP_TOKENenvironment variableUpdated dependencies [
0567fb7]:v12.6.1Compare Source
Patch Changes
b8ca69bThanks @ascorbic! - Refactor remote path detectionUpdated dependencies [
b8ca69b]:v12.6.0Compare Source
Minor Changes
#13837
7cef86fThanks @alexanderniebuhr! - Adds new configuration options to allow you to set a customworkerEntryPointfor Cloudflare Workers. This is useful if you want to use features that require handlers (e.g. Durable Objects, Cloudflare Queues, Scheduled Invocations) not supported by the basic generic entry file.This feature is not supported when running the Astro dev server. However, you can run
astro buildfollowed by eitherwrangler deploy(to deploy it) orwrangler devto preview it.The following example configures a custom entry file that registers a Durable Object and a queue handler:
Patch Changes
#13963
c667c55Thanks @florian-lefebvre! - Fixes a case where the platform proxy would not be disposed when the dev process endedUpdated dependencies []:
v12.5.5Compare Source
Patch Changes
#13930
acb9b30Thanks @alexanderniebuhr! - Fixes an issue where setting values forAstro.responseresulted in a Cloudflare runtime exception.Updated dependencies [
de82ef2,de82ef2,de82ef2]:v12.5.4Compare Source
Patch Changes
#13817
b7258f1Thanks @yanthomasdev! - Clarifies and reduces a few logs when starting the dev server with@astrojs/cloudflare.Warnings about sharp support will now be suppressed when you have explicitly set an
imageServiceoption.Updated dependencies []:
v12.5.3Compare Source
Patch Changes
#13792
7910feaThanks @alexeyzimarev! - Unify imported images detection across adaptersUpdated dependencies []:
v12.5.2Compare Source
Patch Changes
#13731
c3e80c2Thanks @jsparkdev! - update vite to latest version for fixing CVEUpdated dependencies []:
v12.5.1Compare Source
Patch Changes
#13591
5dd2d3fThanks @florian-lefebvre! - Removes unused codeUpdated dependencies [
5dd2d3f]:v12.5.0Compare Source
Minor Changes
#13527
2fd6a6bThanks @ascorbic! - The experimental session API introduced in Astro 5.1 is now stable and ready for production use.Sessions are used to store user state between requests for on-demand rendered pages. You can use them to store user data, such as authentication tokens, shopping cart contents, or any other data that needs to persist across requests:
v12.4.1Compare Source
Patch Changes
#13596
3752519Thanks @jsparkdev! - update vite to latest version to fix CVE#13547
360cb91Thanks @jsparkdev! - Updates vite to the latest versionUpdated dependencies []:
v12.4.0Compare Source
Minor Changes
#13514
a9aafecThanks @ascorbic! - Automatically configures Cloudflare KV storage when experimental sessions are enabledIf the
experimental.sessionflag is enabled when using the Cloudflare adapter, Astro will automatically configure the session storage using the Cloudflare KV driver. You can still manually configure the session storage if you need to use a different driver or want to customize the session storage configuration. If you want to use sessions, you will need to create the KV namespace and declare it in your wrangler config. You can do this using the Wrangler CLI:This will log the id of the created namespace. You can then add it to your
wrangler.json/wrangler.tomlfile like this:By default it uses the binding name
SESSION, but if you want to use a different binding name you can do so by passing thesessionKVBindingNameoption to the adapter. For example:See the Cloudflare KV docs for more details on setting up KV namespaces.
See the experimental session docs for more information on configuring session storage.
Patch Changes
#13526
ff9d69eThanks @jsparkdev! - updateviteto the latest versionUpdated dependencies []:
v12.3.1Compare Source
Patch Changes
#13505
a98ae5bThanks @ematipico! - Updates the dependencyviteto the latest.Updated dependencies []:
v12.3.0Compare Source
Minor Changes
#13444
9721f4aThanks @florian-lefebvre! - Adds globalastro:envsupportCloudflare workers now support importing
envin the global scope. Until now, callingastro:envAPIs had to be done within request scope or the values wereundefined.With this release, they can be called anywhere server-side, like any other official adapter.
Patch Changes
#13463
d5ad591Thanks @ascorbic! - Fixes a bug that caused builds to fail when a base directory is configuredUpdated dependencies []:
v12.2.4Compare Source
Patch Changes
042d1de]:v12.2.3Compare Source
Patch Changes
#13323
80926faThanks @ematipico! - Updatesesbuildandviteto the latest to avoid false positives audits warnings caused byesbuild.Updated dependencies [
1e11f5e]:v12.2.2Patch Changes
#13304
6efd57dThanks @ematipico! - Fixes a small issue where the package was pulling an outdated version of its internal dependencies.#13201
065157cThanks @ekwoka! - Includes onerror passthrough param for Cloudflare Image Service#13299
2e1321eThanks @bluwy! - Usestinyglobbyfor globbing filesUpdated dependencies []:
v12.2.1Patch Changes
ce66003Thanks @bluwy! - Removes internalvuehandlingv12.2.0Minor Changes
4b5cd22Thanks @florian-lefebvre! - Stabilizesastro:envsecrets supportPatch Changes
#454
83cedadThanks @alexanderniebuhr! - Improves Astro 5 support#501
012b31dThanks @florian-lefebvre! - Refactor of the redirects logicv12.1.0Minor Changes
1d4e6fcThanks @meyer! - Addswrangler.jsoncto the default watched config files. If a config file is specified inplatformProxy.configPath, that file location is watched instead of the defaults.Patch Changes
a8a8ab1Thanks @bluwy! - Removes resolving with "node" conditionto fix Vue importsv12.0.1Patch Changes
70e0054Thanks @bluwy! - Fixes setting customworkerdandworkerconditions for the ssr environment onlyv12.0.0Major Changes
#367
e02b54aThanks @alexanderniebuhr! - Removed support for the Squoosh image service. As the underlying librarylibsquooshis no longer maintained, and the image service sees very little usage we have decided to remove it from Astro.Our recommendation is to use the base Sharp image service, which is more powerful, faster, and more actively maintained.
If you are using this service, and cannot migrate to the base Sharp image service, a third-party extraction of the previous service is available here: https://github.com/Princesseuh/astro-image-service-squoosh
#367
e02b54aThanks @alexanderniebuhr! - Deprecates thefunctionPerRouteoptionThis option is now deprecated, and will be removed entirely in Astro v5.0. We suggest removing this option from your configuration as soon as you are able to:
import { defineConfig } from 'astro/config'; import vercel from '@​astrojs/vercel/serverless'; export default defineConfig({ // ... output: 'server', adapter: vercel({ - functionPerRoute: true, }), });#375
e7881f7Thanks @Princesseuh! - Updates internal code to works with Astro 5 changes to hybrid rendering. No changes are necessary to your project, apart from using Astro 5#397
776a266Thanks @Princesseuh! - Welcome to the Astro 5 beta! This release has no changes from the latest alpha of this package, but it does bring us one step closer to the final, stable release.Starting from this release, no breaking changes will be introduced unless absolutely necessary.
To learn how to upgrade, check out the Astro v5.0 upgrade guide in our beta docs site.
#451
f248546Thanks @ematipico! - Updates esbuild dependency to v0.24.0#392
3a49eb7Thanks @Princesseuh! - Updates internal code for Astro 5 changes. No changes is required to your project, apart from using Astro 5Patch Changes
9cedc9bThanks @renovate! - InheritsplatformProxyoption types fromwranglerv11.2.0Minor Changes
169ac24Thanks @schummar! - Changes the logic which generates the_routes.jsonfile to improve generation for projects with many static pages, while still making sure all routes work as expected.Patch Changes
d63bed8Thanks @alexanderniebuhr! - Fixes an issue wherecloudflare:scoped imports made the build fail. We externalize all imports with thecloudflare:scope by default now.v11.1.0Minor Changes
44dfa99Thanks @veitbjarsch! - Added functionality to compare include and exclude rules to reduce the amount of cloudflare rulesv11.0.5Patch Changes
04e5c38Thanks @veitbjarsch! - Fixes a bug which was caused on windows when splitting static file pathsConfiguration
📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.