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.
npm install astro@7.4.2Security advisories for astro
Astro: Reflected/Stored XSS via unescaped <script>/<style> tag content in JSX/MDX rendering
- Affected
- <7.3.2
- Fixed in
- 7.3.2
Astro: Arbitrary CSS injection in Astro View Transitions
- Affected
- >=7.1.0 <7.3.3
- Fixed in
- 7.3.3
Astro: Remote code execution through AVIF image optimization
- Affected
- <7.2.8
- Fixed in
- 7.2.8
Astro: Authorization bypass from missing path-segment boundary check when stripping the configured base
- Affected
- <7.2.4
- Fixed in
- 7.2.4
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
Astro: XSS via unescaped spread attribute names in renderHTMLElement (incomplete fix for CVE-2026-54298)
- Affected
- <7.0.6
- Fixed in
- 7.0.6
Astro: Cross-site scripting via unescaped transition:* directive values on hydrated islands
- Affected
- >=3.10.0 <7.0.4
- Fixed in
- 7.0.4
Astro: Authorization Bypass via Decode Iteration Limit and Rewrite Path Canonicalization Mismatch
- Affected
- >=6.4.7 <6.4.8
- Fixed in
- 6.4.8
Astro: Reflected XSS via unescaped View Transition animation properties
- Affected
- >=2.9.0 <7.1.0
- Fixed in
- 7.1.0
Astro: XSS via Unescaped Attribute Names in Spread Props
- Affected
- <6.4.6
- Fixed in
- 6.4.6
Astro: Host header SSRF in prerendered error page fetch
- Affected
- <6.4.6
- Fixed in
- 6.4.6
Astro: Reflected XSS via unescaped slot name
- Affected
- <6.3.3
- Fixed in
- 6.3.3
Astro: Server island encrypted parameters vulnerable to cross-component replay
- Affected
- <6.1.10
- Fixed in
- 6.1.10
Astro: XSS in define:vars via incomplete </script> tag sanitization
- Affected
- <6.1.6
- Fixed in
- 6.1.6
Astro: Remote allowlist bypass via unanchored matchPathname wildcard
- Affected
- >=2.10.10 <5.18.1
- Fixed in
- 5.18.1
Astro has an Authentication Bypass via Double URL Encoding, a bypass for CVE-2025-64765
- Affected
- <5.15.8
- Fixed in
- 5.15.8
Astro Cloudflare adapter has Stored Cross-site Scripting vulnerability in /_image endpoint
- Affected
- <5.15.9
- Fixed in
- 5.15.9
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
Astro vulnerable to reflected XSS via the server islands feature
- Affected
- <5.15.8
- Fixed in
- 5.15.8
Astro Development Server has Arbitrary Local File Read
- Affected
- <5.14.3
- Fixed in
- 5.14.3
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
Astro development server error page is vulnerable to reflected Cross-site Scripting
- Affected
- >=5.2.0 <5.15.6
- Fixed in
- 5.15.6
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
Astro's `X-Forwarded-Host` is reflected without validation
- Affected
- <5.14.3
- Fixed in
- 5.14.3
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
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
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
Atro CSRF Middleware Bypass (security.checkOrigin)
- Affected
- <4.16.17
- Fixed in
- 4.16.17
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.