Astro [email protected]stable Released Nov 11, 2026
Impact Score: 4/10

Astro [email protected] - Release Notes & Engineering Impact

Source available - automated, not human-reviewed

Component: astro · Channel: stable. Automated analysis, not a compatibility certification. How this works.

Analysis updated: 2026-11-11.

Compatibility not verified - check source notes
$ npm install --save-exact [email protected]
📄 .MD
⚡ Executive Summary (TL;DR)

Astro 7.4.11 tightens security validation for forwarded host and protocol headers against configured allowed domains. It also resolves runtime bug fixes, including preventing object mutation when spreading attributes onto elements with scoped styles.

Who Does This Impact? (Role-Based Analysis)

💻 Software Engineers & Devs

Engineers using `security.allowedDomains` or spreading object properties onto styled Astro components should update to ensure stable attribute rendering and header handling.

📊 Product & Engineering Leads

This patch update enhances platform security and runtime stability without altering user-facing features or workflows.

⚙️ DevOps & Security

Infrastructure engineers handling reverse proxies or relying on Vite-generated license files should verify build outputs and `X-Forwarded-*` header rules.

⚡ Performance & Enhancements (3)

  • Validates `X-Forwarded-Proto`, `X-Forwarded-Host`, and `X-Forwarded-Port` together against `security.allowedDomains` entries.
  • Returns a 400 Bad Request error for malformed percent-encoded paths in the dev server and static preview instead of a 500 error.
  • Improves `astro check` error reporting to display original loading errors instead of prompting for package reinstallation.

🔧 Bug Fixes & Patches (3)

  • Fixed object mutation when spreading objects onto elements with scoped styles across renders.
  • Fixed `astro build` deleting license files created by Vite's `build.license` configuration.
  • Fixed `security.allowedDomains` accepting non-HTTP(S) `X-Forwarded-Proto` values such as `ftp` or `ws`.
📄 View Raw Release Notes (Original Developer Log)
### Patch Changes - [#18641](https://github.com/withastro/astro/pull/18641) [`08e2cee`](https://github.com/withastro/astro/commit/08e2cee8b3ca41db0aa158549e51d2046fbd57a4) Thanks [@astro-factory](https://github.com/apps/astro-factory)! - Validates the protocol, host and port from `X-Forwarded-Proto`, `X-Forwarded-Host` and `X-Forwarded-Port` together against each `security.allowedDomains` entry, instead of one at a time: - A forwarded protocol is only applied when an entry allows it for the host in use. - A forwarded port is only applied when the entry for that host lists it. - A forwarded host without a forwarded protocol is validated with the protocol of the server. - An entry with `port: '443'` (or `'80'` for `http`) now matches a host that doesn't include a port. - [#18651](https://github.com/withastro/astro/pull/18651) [`93a9057`](https://github.com/withastro/astro/commit/93a9057fdcee6273a3b2199bc80b788039c3ac87) Thanks [@umeraamir69](https://github.com/umeraamir69)! - Returns 400 Bad Request for malformed percent-encoded paths in the dev server and static preview instead of bubbling into a 500 - [#18672](https://github.com/withastro/astro/pull/18672) [`e901468`](https://github.com/withastro/astro/commit/e901468eafb752f51192940040d4217e8e88e5bf) Thanks [@astro-factory](https://github.com/apps/astro-factory)! - Fixes `astro check` reporting `@astrojs/check` as missing when the package is installed but throws while loading. The original error is now shown instead of an install prompt. - [#18641](https://github.com/withastro/astro/pull/18641) [`08e2cee`](https://github.com/withastro/astro/commit/08e2cee8b3ca41db0aa158549e51d2046fbd57a4) Thanks [@astro-factory](https://github.com/apps/astro-factory)! - Fixes `security.allowedDomains` accepting non-HTTP(S) `X-Forwarded-Proto` values (such as `ftp` or `ws`) when the list mixes patterns with and without a `protocol` - [#18686](https://github.com/withastro/astro/pull/18686) [`62bb716`](https://github.com/withastro/astro/commit/62bb716444159e733dad6c82a436e82577c53d05) Thanks [@astro-factory](https://github.com/apps/astro-factory)! - Fixes `astro build` deleting the license file generated by Vite's `build.license` option. Astro now removes only its own Vite manifest from the `.vite/` output folder. - [#18629](https://github.com/withastro/astro/pull/18629) [`e9916e1`](https://github.com/withastro/astro/commit/e9916e1bff5f3e740d533a6f504630bd6c528ddf) Thanks [@decrek](https://github.com/decrek)! - Fixes spreading an object onto an element with scoped styles changing that object. When the same object was spread on every render, for example a constant imported from another module, its `class` grew with every request. - [#18641](https://github.com/withastro/astro/pull/18641) [`08e2cee`](https://github.com/withastro/astro/commit/08e2cee8b3ca41db0aa158549e51d2046fbd57a4) Thanks [@astro-factory](https://github.com/apps/astro-factory)! - Tightens how `security.allowedDomains` validates the `Host` and `X-Forwarded-Host` headers. Only a plain hostname with an optional port is accepted, and the validated host is applied to `Astro.url` exactly as it was matched. - Updated dependencies [[`d13beeb`](https://github.com/withastro/astro/commit/d13beeb66c753f03cbdbf4509cf2c527c816f1a4), [`e9916e1`](https://github.com/withastro/astro/commit/e9916e1bff5f3e740d533a6f504630bd6c528ddf)]: - @astrojs/[email protected] - @astrojs/[email protected] - @astrojs/[email protected]