astro vulnerabilities

Astro is a modern site builder with web best practices, performance, and DX front-of-mind.

Registry
npm
Latest
7.4.2
License
MIT

29 known advisories

The latest version, 7.4.2, is not affected by any of them. Projects on older versions may be.

Update to the latest version:npm install astro@7.4.2

Security advisories for astro

  • MediumGHSA-98hj-9722-w3j822 Oct 2026

    Astro: Reflected/Stored XSS via unescaped <script>/<style> tag content in JSX/MDX rendering

    Affected
    <7.3.2
    Fixed in
    7.3.2
  • LowGHSA-mpr7-6m5w-76rw22 Oct 2026

    Astro: Arbitrary CSS injection in Astro View Transitions

    Affected
    >=7.1.0 <7.3.3
    Fixed in
    7.3.3
  • CriticalGHSA-26w7-cxv4-gfx28 Sept 2026

    Astro: Remote code execution through AVIF image optimization

    Affected
    <7.2.8
    Fixed in
    7.2.8
  • MediumGHSA-376h-93r7-7g6f8 Sept 2026

    Astro: Authorization bypass from missing path-segment boundary check when stripping the configured base

    Affected
    <7.2.4
    Fixed in
    7.2.4
  • MediumGHSA-8mv7-9c27-98vc20 Jul 2026

    Astro: composable `astro/hono` pipeline bypasses `security.checkOrigin` when `middleware()` is absent or misordered

    Affected
    >=7.0.0 <7.0.6
    Fixed in
    7.0.6
  • MediumGHSA-f48w-9m4c-m7f520 Jul 2026

    Astro: XSS via unescaped spread attribute names in renderHTMLElement (incomplete fix for CVE-2026-54298)

    Affected
    <7.0.6
    Fixed in
    7.0.6
  • LowGHSA-7pw4-f3q4-r2p220 Jul 2026

    Astro: Cross-site scripting via unescaped transition:* directive values on hydrated islands

    Affected
    >=3.10.0 <7.0.4
    Fixed in
    7.0.4
  • HighGHSA-vj59-8hwv-xxmv20 Jul 2026

    Astro: Authorization Bypass via Decode Iteration Limit and Rewrite Path Canonicalization Mismatch

    Affected
    >=6.4.7 <6.4.8
    Fixed in
    6.4.8
  • MediumGHSA-4g3v-8h47-v7g620 Jul 2026

    Astro: Reflected XSS via unescaped View Transition animation properties

    Affected
    >=2.9.0 <7.1.0
    Fixed in
    7.1.0
  • MediumGHSA-jrpj-wcv7-9fh916 Jun 2026

    Astro: XSS via Unescaped Attribute Names in Spread Props

    Affected
    <6.4.6
    Fixed in
    6.4.6
  • HighGHSA-2pvr-wf23-7pc716 Jun 2026

    Astro: Host header SSRF in prerendered error page fetch

    Affected
    <6.4.6
    Fixed in
    6.4.6
  • HighGHSA-8hv8-536x-4wqp16 Jun 2026

    Astro: Reflected XSS via unescaped slot name

    Affected
    <6.3.3
    Fixed in
    6.3.3
  • LowGHSA-xr5h-phrj-8vxv13 May 2026

    Astro: Server island encrypted parameters vulnerable to cross-component replay

    Affected
    <6.1.10
    Fixed in
    6.1.10
  • MediumGHSA-j687-52p2-xcff21 Apr 2026

    Astro: XSS in define:vars via incomplete </script> tag sanitization

    Affected
    <6.1.6
    Fixed in
    6.1.6
  • LowGHSA-g735-7g2w-hh3f26 Mar 2026

    Astro: Remote allowlist bypass via unanchored matchPathname wildcard

    Affected
    >=2.10.10 <5.18.1
    Fixed in
    5.18.1
  • MediumGHSA-whqg-ppgf-wp8c8 Dec 2025

    Astro has an Authentication Bypass via Double URL Encoding, a bypass for CVE-2025-64765

    Affected
    <5.15.8
    Fixed in
    5.15.8
  • MediumGHSA-fvmw-cj7j-j39q19 Nov 2025

    Astro Cloudflare adapter has Stored Cross-site Scripting vulnerability in /_image endpoint

    Affected
    <5.15.9
    Fixed in
    5.15.9
  • MediumGHSA-ggxq-hp9w-j79419 Nov 2025

    Astro's middleware authentication checks based on url.pathname can be bypassed via url encoded values

    Affected
    <5.15.8
    Fixed in
    5.15.8
  • HighGHSA-wrwg-2hg8-v72319 Nov 2025

    Astro vulnerable to reflected XSS via the server islands feature

    Affected
    <5.15.8
    Fixed in
    5.15.8
  • LowGHSA-x3h8-62x9-952g19 Nov 2025

    Astro Development Server has Arbitrary Local File Read

    Affected
    <5.14.3
    Fixed in
    5.14.3
  • MediumGHSA-hr2q-hp5q-x76713 Nov 2025

    Astro vulnerable to URL manipulation via headers, leading to middleware and CVE-2025-61925 bypass

    Affected
    >=2.16.0 <5.15.5
    Fixed in
    5.15.5
  • LowGHSA-w2vj-39qv-7vh713 Nov 2025

    Astro development server error page is vulnerable to reflected Cross-site Scripting

    Affected
    >=5.2.0 <5.15.6
    Fixed in
    5.15.6
  • HighGHSA-qcpr-679q-rhm228 Oct 2025

    Astro's bypass of image proxy domain validation leads to SSRF and potential XSS

    Affected
    >=5.13.4 <5.13.10
    Fixed in
    5.13.10
  • MediumGHSA-5ff5-9fcw-vg8810 Oct 2025

    Astro's `X-Forwarded-Host` is reflected without validation

    Affected
    <5.14.3
    Fixed in
    5.14.3
  • MediumGHSA-xf8x-j4p2-f74919 Aug 2025

    Astro allows unauthorized third-party images in _image endpoint

    Affected
    >=5.0.0-alpha.0 <5.13.2 · <4.16.19
    Fixed in
    4.16.19, 5.13.2
  • MediumGHSA-cq8c-xv66-36gw7 Aug 2025

    Astros's duplicate trailing slash feature leads to an open redirection security issue

    Affected
    >=5.2.0 <5.12.8
    Fixed in
    5.12.8
  • HighGHSA-49w6-73cw-chjr19 Dec 2024

    Astro's server source code is exposed to the public if sourcemaps are enabled

    Affected
    >=5.0.0-alpha.0 <5.0.8 · <4.16.18
    Fixed in
    4.16.18, 5.0.8
  • MediumGHSA-c4pw-33h3-35xw18 Dec 2024

    Atro CSRF Middleware Bypass (security.checkOrigin)

    Affected
    <4.16.17
    Fixed in
    4.16.17
  • MediumGHSA-m85w-3h95-hcf914 Oct 2024

    DOM Clobbering Gadget found in astro's client-side router that leads to XSS

    Affected
    >=3.0.0 <4.16.1
    Fixed in
    4.16.1

Which of your client projects still run an old astro?

NPMscan reads the package-lock.json, yarn.lock and pnpm-lock.yaml in every GitHub repo you pick and checks each installed version against these advisories, including the packages your packages pull in. Each finding comes with the command that fixes it.

Other npm packages

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily. Package details from the npm registry.