npmWorst: Critical31 advisories
astro: known vulnerabilities
astro has 31 reviewed security advisories in the GitHub Advisory Database — 1 critical, 6 high, 17 moderate, 7 low. The most recent was published 2026-11-13. Each one below lists the affected version range, the release that fixes it, its CVE and severity. SkyShield matches these against the astro versions running across your servers, containers and images, and ranks what to patch first.
How to fix astro
Upgrade astro to a release at or above the fixed version shown for each advisory below. For npm:
npm install astro@7.4.5 (or run npm audit fix)
SkyShield checks the installed version on every machine and container, so you can see which hosts are still on an affected release after you roll the fix out.
Advisories (31)
Astro: XSS via attribute injection in dynamic tag names
Low CWE-184 CWE-79
— Affected: before 7.4.5. Fixed in 7.4.5. Published 2026-11-13. GHSA-mh32-jxcr-mh9f · CVE-2026-126361
Astro: Image endpoint in @astrojs/node can read files from a case-variant sibling of the output directory on case-sensitive filesystems
Moderate CWE-178 CWE-22
— Affected: from 5.14.3 up to 7.4.7. Fixed in 7.4.7. Published 2026-11-13. GHSA-r3h5-4585-7x3w · CVE-2026-126364
Astro: Reflected/Stored XSS via unescaped <script>/<style> tag content in JSX/MDX rendering
Moderate 6.5 CWE-79
— Affected: before 7.3.2. Fixed in 7.3.2. Published 2026-10-21. GHSA-98hj-9722-w3j8 · CVE-2026-114128
Astro: Arbitrary CSS injection in Astro View Transitions
Low CWE-79
— Affected: from 7.1.0 up to 7.3.3. Fixed in 7.3.3. Published 2026-10-21. GHSA-mpr7-6m5w-76rw · CVE-2026-114127
Astro: Remote code execution through AVIF image optimization
Critical 9.8 CWE-125 CWE-787
— Affected: before 7.2.8. Fixed in 7.2.8. Published 2026-09-08. GHSA-26w7-cxv4-gfx2
Astro: Authorization bypass from missing path-segment boundary check when stripping the configured base
Moderate CWE-187
— Affected: before 7.2.4. Fixed in 7.2.4. Published 2026-09-02. GHSA-376h-93r7-7g6f · CVE-2026-84376
Astro: Cross-site scripting via unescaped transition:* directive values on hydrated islands
Low CWE-116 CWE-79 CWE-83
— Affected: from 3.10.0 up to 7.0.4. Fixed in 7.0.4. Published 2026-07-27. GHSA-7pw4-f3q4-r2p2 · CVE-2026-59727
Astro: XSS via unescaped spread attribute names in renderHTMLElement (incomplete fix for CVE-2026-54298)
Moderate CWE-79
— Affected: before 7.0.6. Fixed in 7.0.6. Published 2026-07-27. GHSA-f48w-9m4c-m7f5 · CVE-2026-59729
Astro: Reflected XSS via unescaped View Transition animation properties
Moderate CWE-79
— Affected: from 2.9.0 up to 7.1.0. Fixed in 7.1.0. Published 2026-07-20. GHSA-4g3v-8h47-v7g6 · CVE-2026-73422
Astro: composable `astro/hono` pipeline bypasses `security.checkOrigin` when `middleware()` is absent or misordered
Moderate CWE-352
— Affected: from 7.0.0 up to 7.0.6. Fixed in 7.0.6. Published 2026-07-20. GHSA-8mv7-9c27-98vc · CVE-2026-73423
Astro: Authorization Bypass via Decode Iteration Limit and Rewrite Path Canonicalization Mismatch
High 8.2 CWE-647
— Affected: from 6.4.7 up to 6.4.8. Fixed in 6.4.8. Published 2026-07-08. GHSA-vj59-8hwv-xxmv · CVE-2026-59731
Astro: Host header SSRF in prerendered error page fetch
High 7.5 CWE-20 CWE-918
— Affected: before 6.4.6. Fixed in 6.4.6. Published 2026-06-22. GHSA-2pvr-wf23-7pc7 · CVE-2026-54299
Astro: Reflected XSS via unescaped slot name
High 7.1 CWE-79 CWE-80
— Affected: before 6.3.3. Fixed in 6.3.3. Published 2026-06-22. GHSA-8hv8-536x-4wqp · CVE-2026-50146
Astro: XSS via Unescaped Attribute Names in Spread Props
Moderate 4.2 CWE-79
— Affected: before 6.4.6. Fixed in 6.4.6. Published 2026-06-22. GHSA-jrpj-wcv7-9fh9 · CVE-2026-54298
Astro: Server island encrypted parameters vulnerable to cross-component replay
Low 6.1 CWE-323 CWE-79
— Affected: before 6.1.10. Fixed in 6.1.10. Published 2026-05-13. GHSA-xr5h-phrj-8vxv · CVE-2026-45028
Astro: XSS in define:vars via incomplete </script> tag sanitization
Moderate 6.1 CWE-79
— Affected: before 6.1.6. Fixed in 6.1.6. Published 2026-04-24. GHSA-j687-52p2-xcff · CVE-2026-41067
Astro: Remote allowlist bypass via unanchored matchPathname wildcard
Low 5.3 CWE-183 CWE-20
— Affected: from 2.10.10 up to 5.18.1. Fixed in 5.18.1. Published 2026-03-24. GHSA-g735-7g2w-hh3f · CVE-2026-33769
Astro has an Authentication Bypass via Double URL Encoding, a bypass for CVE-2025-64765
Moderate 6.5 CWE-647
— Affected: before 5.15.8. Fixed in 5.15.8. Published 2025-12-09. GHSA-whqg-ppgf-wp8c · CVE-2025-66202
Astro Cloudflare adapter has Stored Cross-site Scripting vulnerability in /_image endpoint
Moderate 5.4 CWE-79
— Affected: before 5.15.9. Fixed in 5.15.9. Published 2025-11-19. GHSA-fvmw-cj7j-j39q · CVE-2025-65019
Astro's middleware authentication checks based on url.pathname can be bypassed via url encoded values
Moderate CWE-22
— Affected: before 5.15.8. Fixed in 5.15.8. Published 2025-11-19. GHSA-ggxq-hp9w-j794 · CVE-2025-64765
Astro vulnerable to reflected XSS via the server islands feature
High 7.1 CWE-79 CWE-80
— Affected: before 5.15.8. Fixed in 5.15.8. Published 2025-11-19. GHSA-wrwg-2hg8-v723 · CVE-2025-64764
Astro Development Server has Arbitrary Local File Read
Low 3.5 CWE-22 CWE-23
— Affected: before 5.14.3. Fixed in 5.14.3. Published 2025-11-19. GHSA-x3h8-62x9-952g · CVE-2025-64757
Astro vulnerable to URL manipulation via headers, leading to middleware and CVE-2025-61925 bypass
Moderate 6.5 CWE-918
— Affected: from 2.16.0 up to 5.15.5. Fixed in 5.15.5. Published 2025-11-13. GHSA-hr2q-hp5q-x767 · CVE-2025-64525
Astro development server error page is vulnerable to reflected Cross-site Scripting
Low 2.7 CWE-79
— Affected: from 5.2.0 up to 5.15.6. Fixed in 5.15.6. Published 2025-11-13. GHSA-w2vj-39qv-7vh7 · CVE-2025-64745
Astro's bypass of image proxy domain validation leads to SSRF and potential XSS
High 7.2 CWE-79 CWE-918
— Affected: from 5.13.4 up to 5.13.10. Fixed in 5.13.10. Published 2025-10-28. GHSA-qcpr-679q-rhm2 · CVE-2025-59837
Astro's `X-Forwarded-Host` is reflected without validation
Moderate 6.5 CWE-20 CWE-470
— Affected: before 5.14.3. Fixed in 5.14.3. Published 2025-10-10. GHSA-5ff5-9fcw-vg88 · CVE-2025-61925
Astro allows unauthorized third-party images in _image endpoint
Moderate 6.1 CWE-79
— Affected: before 4.16.19. Fixed in 4.16.19. Published 2025-08-19. GHSA-xf8x-j4p2-f749 · CVE-2025-55303
Astros's duplicate trailing slash feature leads to an open redirection security issue
Moderate CWE-601
— Affected: from 5.2.0 up to 5.12.8. Fixed in 5.12.8. Published 2025-08-08. GHSA-cq8c-xv66-36gw · CVE-2025-54793
Astro's server source code is exposed to the public if sourcemaps are enabled
High CWE-219
— Affected: before 4.16.18. Fixed in 4.16.18. Published 2024-12-19. GHSA-49w6-73cw-chjr · CVE-2024-56159
Atro CSRF Middleware Bypass (security.checkOrigin)
Moderate 5.9 CWE-352
— Affected: before 4.16.17. Fixed in 4.16.17. Published 2024-12-18. GHSA-c4pw-33h3-35xw · CVE-2024-56140
DOM Clobbering Gadget found in astro's client-side router that leads to XSS
Moderate 5.9 CWE-79
— Affected: from 3.0.0 up to 4.16.1. Fixed in 4.16.1. Published 2024-10-14. GHSA-m85w-3h95-hcf9 · CVE-2024-47885
Find astro across your fleet
Install one agent per server and connect your cloud. SkyShield matches your packages and images against GHSA,
CISA KEV and EPSS and shows the fix per machine. Free for one server, then from $49 per server a month.
Start free.