Repository navigation
fix(deps): update dependency @astrojs/node to v11 [security] - autoclosed - #1935
renovate[bot] wants to merge 1 commit into
Conversation
Renovate PR Review Results⚖️ Safety Assessment:
|
|
🚀 Preview deployment ready! ✅ Preview URL: https://pr-1935---web-njpdbbjcea-an.a.run.app This comment was automatically generated by the deploy-preview workflow. |
58e906e to
80ec546
Compare
80ec546 to
ea2b341
Compare
ea2b341 to
2811eb0
Compare
2811eb0 to
65c9ad9
Compare
65c9ad9 to
0c1239c
Compare
0c1239c to
b47cc5b
Compare
b47cc5b to
d575f54
Compare
d575f54 to
6d49b86
Compare
6d49b86 to
ceb6fcc
Compare
ceb6fcc to
2f8985e
Compare
2f8985e to
c2a5b53
Compare
c2a5b53 to
f45b655
Compare
f45b655 to
06c3146
Compare
0932bd9 to
e9332a5
Compare
e9332a5 to
e34fecc
Compare
e34fecc to
78b2033
Compare
78b2033 to
2e12278
Compare
2e12278 to
b81674e
Compare
b81674e to
0e0a77f
Compare
0e0a77f to
52c978b
Compare
52c978b to
e08a4ae
Compare
e08a4ae to
474457d
Compare
474457d to
4590256
Compare
4590256 to
bd95e57
Compare
bd95e57 to
2963105
Compare
2963105 to
89a93f5
Compare
89a93f5 to
daa8d10
Compare
This PR contains the following updates:
^10.0.4→^11.0.0@astrojs/node: Backslash-prefixed paths not recognized as internal by trailing-slash redirect
CVE-2026-59730 / GHSA-r557-wffq-wvrc
More information
Details
Impact
With
trailingSlash: 'always'configured, the@astrojs/nodestandalone server's static file handler appends a trailing slash to request paths and issues a301redirect. Paths beginning with/\(slash-backslash) were not recognized as internal paths, so the handler would echo the raw path back in theLocationheader. Because browsers treat\as/per the WHATWG URL specification, the resulting redirect could resolve to an external host.Preconditions:
trailingSlash: 'always'must be set (non-default; the default is'ignore')Patches
Fixed by treating backslash-prefixed paths the same as
//-prefixed paths inisInternalPath(), so they are no longer rewritten with a trailing slash.Workarounds
Use the default
trailingSlash: 'ignore'setting, which does not issue trailing-slash redirects in the static file handler.References
Severity
CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:N/SI:L/SA:NReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Astro: Malformed port in the Host header can crash the Node adapter
CVE-2026-102984 / GHSA-qh8j-hqjv-7m4x
More information
Details
Summary
In the Astro Node adapter, a request whose
Hostheader contains a malformed port (for exampleexample.com:65536orexample.com:8080:8080) produced an invalid request URL. The fallback intended to recover from an unparseable URL reused the same malformed host, so it failed again and raised an uncaughtTypeError: Invalid URLwhile the request was being built, before any route ran.Impact
The effect depends on the adapter configuration:
standalone): the request returns500 Internal Server Errorand the server continues running.staticHeaders: trueoption: the throw reaches a synchronous HTTP handler that does not catch it, becoming anuncaughtExceptionthat terminates the process.This is an availability-only issue. It does not expose data or allow code execution. Triggering it requires sending a hand-crafted
Hostheader, and many proxies and CDNs reject malformed hosts before they reach the origin.Affected versions
@astrojs/node<= 11.1.2.Patches
Fixed in
@astrojs/node11.1.3. When the incoming host cannot be parsed, the request URL now degrades to a host the server controls, so the request is handled instead of throwing. Hosts carrying more than a singlehostname:portpair are also rejected during host validation.Workarounds
Upgrade to
@astrojs/node11.1.3 or later. Deployments that terminate malformedHostheaders at a reverse proxy or CDN are not reachable through this path.Credits
Reported by @Celggar.
Severity
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:NReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Release Notes
withastro/astro (@astrojs/node)
v11.1.3Compare Source
Patch Changes
#17636
51723b1Thanks @matthewp! - Updates the adapter to wait for the configured log destination through Astro's newapp.getLogger()API. This release requires Astro 7.2.1 or later.Updated dependencies [
8c193f6]:v11.1.2Compare Source
Patch Changes
c1cf110Thanks @tianrking! - Return a 404 instead of a 500 for unknown parameters that match a prerendered dynamic endpoint.v11.1.1Compare Source
Patch Changes
8b211a5Thanks @astrobot-houston! - Fixes an EventEmitter memory leak when serving static pages over keep-alive connections withstaticHeadersenabled and CSP (security.csp) activev11.1.0Compare Source
Minor Changes
90c98aeThanks @adamchal! - Whensession: falseis set inastro.config, the adapter no longer auto-wires the filesystem session driver. Combined with the matchingastrochange, this lets the session runtime tree-shake out of the server bundle.Patch Changes
004fb0aThanks @dmgawel! - Fixes middleware mode routing when a prerendered dynamic route sorts before an on-demand fallbackv11.0.3Compare Source
Patch Changes
c895b12]:v11.0.2Compare Source
Patch Changes
#17252
eb6f97eThanks @matthewp! - Fixes trailing-slash handling for request paths that begin with a backslashWith
trailingSlash: 'always', the standalone Node server could append a trailing slash to a request path that begins with a backslash (for example/\example.com/foo) and echo that path back in theLocationheader of a301response. Because browsers resolve a leading\the same way as/, the resultingLocationcould point off-site.Such paths are now recognized as internal paths, matching the existing handling for paths that begin with
//, so they are no longer rewritten with a trailing slash.Updated dependencies [
eb6f97e]:v11.0.1Compare Source
Patch Changes
02b73b0Thanks @ematipico! - Fixes an issue where thepeerDependenciesfield used incorrect dependencies.v11.0.0Compare Source
Patch Changes
#17054
d426b67Thanks @astrobot-houston! - Fixes an issue where Astro files with non-ASCII characters in their name weren't correctly served after the build.#17027
241250bThanks @ocavue! - Triggers beta prereleases for packages that are still on alphaConfiguration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, 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.