Skip to content

Conversation

@florian-lefebvre
Copy link
Member

Changes

  • Merge main into next

Testing

N/A

Docs

N/A

matthewp and others added 18 commits October 8, 2025 08:57
* fix(security): require allowedDomains config for X-Forwarded-Host validation

Fixes X-Forwarded-Host header injection vulnerability by requiring explicit
allowedDomains configuration. When not configured, X-Forwarded-Host headers
are ignored to prevent manipulation of Astro.url by malicious requests.

- Add security.allowedDomains configuration using RemotePattern format
- Validate X-Forwarded-Host against allowedDomains patterns in both App and NodeApp
- Ignore untrusted headers when no allowedDomains configured (secure by default)
- Update tests to verify security behavior with and without configuration

* Address PR review feedback on allowedDomains implementation

- Remove pathname field from allowedDomains schema (not applicable to host headers)
- Clarify documentation that protocol, hostname, and port are all validated if provided
- Add test demonstrating port validation behavior when port not specified in pattern

* add changeset

* make it a patch

* explain the breaking change

* Update secure-forwarded-host-validation.md
* Fix failing x-forwarded-host tests

* allow setting the manifest

* fix other test and add changeset

* fix another thing

* h4

* set it back

* replace heading with bold since CI complains
* [ci] release

* Skip yarn test that fails with unpublished dependencies

The yarn test packs astro and attempts to install it, which fails when
workspace dependencies like @astrojs/internal-helpers have been bumped
but not yet published to npm. Skip this test to allow the release to proceed.

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Matthew Phillips <[email protected]>
…enabled (#14235)

* add onPageLoad call to tap strategy

* add changeset

* add tests

* format

* rename test

* fix tests

* remove onPageLoad, add event listener directly on the document
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* docs: fix `security.allowedDomains` version
* docs: add changeset
- Make getAllowedDomains() call optional with fallback to empty array
- Update peer dependency to require astro@^5.14.3
- Fixes #14513
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
@florian-lefebvre florian-lefebvre self-assigned this Oct 13, 2025
@changeset-bot
Copy link

changeset-bot bot commented Oct 13, 2025

🦋 Changeset detected

Latest commit: 01b63bb

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@florian-lefebvre florian-lefebvre merged commit f135f5b into next Oct 13, 2025
6 checks passed
@florian-lefebvre florian-lefebvre deleted the chore/update-next branch October 13, 2025 15:17
@github-actions github-actions bot added feat: markdown Related to Markdown (scope) pkg: example Related to an example package (scope) 🚨 action Modifies GitHub Actions pkg: integration Related to any renderer integration (scope) pkg: astro Related to the core `astro` package (scope) docs pr labels Oct 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🚨 action Modifies GitHub Actions docs pr feat: markdown Related to Markdown (scope) pkg: astro Related to the core `astro` package (scope) pkg: example Related to an example package (scope) pkg: integration Related to any renderer integration (scope)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants