{"id":"GHSA-qh8j-hqjv-7m4x","revision":"57d59709947147429872bab82883fb51","records":[{"revision":"57d59709947147429872bab82883fb51","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-qh8j-hqjv-7m4x","aliases":["CVE-2026-102984"],"title":"Astro: Malformed port in the Host header can crash the Node adapter","description":"## Summary\n\nIn the Astro Node adapter, a request whose `Host` header contains a malformed port (for example `example.com:65536` or `example.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 uncaught `TypeError: Invalid URL` while the request was being built, before any route ran.\n\n## Impact\n\nThe effect depends on the adapter configuration:\n\n- Default configuration (`standalone`): the request returns `500 Internal Server Error` and the server continues running.\n- With the opt-in `staticHeaders: true` option: the throw reaches a synchronous HTTP handler that does not catch it, becoming an `uncaughtException` that terminates the process.\n\nThis is an availability-only issue. It does not expose data or allow code execution. Triggering it requires sending a hand-crafted `Host` header, and many proxies and CDNs reject malformed hosts before they reach the origin.\n\n## Affected versions\n\n`@astrojs/node` <= 11.1.2.\n\n## Patches\n\nFixed in `@astrojs/node` 11.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 single `hostname:port` pair are also rejected during host validation.\n\n## Workarounds\n\nUpgrade to `@astrojs/node` 11.1.3 or later. Deployments that terminate malformed `Host` headers at a reverse proxy or CDN are not reachable through this path.\n\n## Credits\n\nReported by @Celggar.","state":0,"publishedAt":"2026-09-30T23:29:40+00:00","modifiedAt":"2026-09-30T23:45:04.0318435+00:00","affected":[{"ecosystem":"npm","name":"@astrojs/node","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"11.1.3"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V4","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"HIGH"}],"references":["https://github.com/withastro/astro/security/advisories/GHSA-qh8j-hqjv-7m4x","https://nvd.nist.gov/vuln/detail/CVE-2026-102984","https://github.com/withastro/astro/pull/17572","https://github.com/withastro/astro/commit/2066f39c60707a100531b4ef4bb5dab8feafa7f2","https://github.com/withastro/astro","https://github.com/withastro/astro/releases/tag/@astrojs/node@11.1.3"],"sourceUrl":"https://github.com/advisories/GHSA-qh8j-hqjv-7m4x","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-qh8j-hqjv-7m4x","identifiers":["GHSA-qh8j-hqjv-7m4x","CVE-2026-102984"]},"retained":false,"historicalAffected":[]}],"coverage":[]}