Patchfirst
CVE-2025-55303 Public exploit Medium · 6.9 EPSS 0.8%

Unauthorized third-party images in Astro’s _image endpoint

Fix:upgrade astro to 5.15.8 or later also fixes CVE-2024-56159, CVE-2025-64764 Details ↓

withastro · astro

Summary

Astro, the withastro web framework, has a flaw in the /_image optimization endpoint of sites using on-demand rendering, where a protocol-relative URL such as //example.com can bypass the configured third-party domain restrictions and cause images from unauthorized domains to be served. An unauthenticated remote attacker with network access to the site can exploit this simply by crafting a request to the endpoint, with no special configuration, privileges, or user interaction required.

Official description · CVE.org

Astro is a web framework for content-driven websites. In versions of astro before 5.13.2 and 4.16.18, the image optimization endpoint in projects deployed with on-demand rendering allows images from unauthorized third-party domains to be served. On-demand rendered sites built with Astro include an /_image endpoint which returns optimized versions of images. A bug in impacted versions of astro allows an attacker to bypass the third-party domain restrictions by using a protocol-relative URL as the image source, e.g. /_image?href=//example.com/image.png. This vulnerability is fixed in 5.13.2 and 4.16.18.

Breakdown
61.1 / 100
Exploited
Yes, in VulnCheck KEV
Reports
0
Tactics
0/15

First seen exploited 6 months after disclosure.

  1. Disclosedday 0
  2. First seen exploitedVulnCheck KEV evidence+6 mo

See the family tree

A fix was bypassed or incomplete 2 times over 8 months. The latest fix listed for astro is 5.14.3.

Same bug familyLinked by evidence that a fix failed or the same code was patched again. Oldest first.

  1. This CVECVE-2025-55303Unauthorized third-party images in Astro’s _image endpoint19 Aug 2025
  2. same family
    CVE-2025-58179Astro Cloudflare adapter is vulnerable to Server-Side Request…4 Sep 2025
  3. incomplete fixHigh

    Why these are linked:

    • Stated in the CVE textThis vulnerability exists due to an incomplete fix for CVE-2025-58179.
    CVE-2025-59837astro allows bypass of image proxy domain validation leading to…28 Oct 2025
  4. relatedHigh

    Why these are linked:

    CVE-2025-64757Astro Development Server is Vulnerable to Arbitrary Local File…19 Nov 2025
  5. relatedMedium

    Why these are linked:

    CVE-2025-65019Astro Cloudflare adapter has a Stored Cross Site Scripting…19 Nov 2025
  6. same family
    CVE-2026-25545Astro has Full-Read SSRF in error rendering via Host: header…24 Feb 2026
  7. same family
    CVE-2026-27829Astro is vulnerable to SSRF due to missing allowlist enforcement…26 Feb 2026
  8. same family
    CVE-2026-41321@astrojs/cloudflare: SSRF via redirect following in Cloudflare…24 Apr 2026

Fixes in astronpm package, by fixed version. Earlier and later fixes in the same package, not necessarily the same bug.

  1. 4.16.17CVE-2024-5614018 Dec 2024
  2. 5.0.8CVE-2024-5615919 Dec 2024
  3. 5.12.8CVE-2025-547938 Aug 2025
  4. 5.13.2CVE-2025-5530319 Aug 2025
  5. 5.13.10CVE-2025-5983728 Oct 2025
  6. 5.14.3CVE-2025-6192510 Oct 2025
  7. 5.14.3CVE-2025-6475719 Nov 2025Latest listed

Affected versions and fixes

as published in the CVE record

withastro astro

Affected: >= 5.0.0-alpha.0, < 5.13.2 · < 4.16.18

Am I affected? What do I upgrade to?

From GitHub Security Advisories and OSV

2 packages in 1 ecosystem. Main package: astro.

Upgrade to 5.15.8 or later

Fixes this CVE and 2 other known vulnerabilities in this package (CVE-2024-56159, CVE-2025-64764).

npmnpm install astro@5.15.8

First fixed in 5.13.2 for CVE-2025-55303.

Affected versions, by release line

If you runUpgrade to
5.0.0-alpha.0 up to 5.13.25.15.8first fix for this CVE: 5.13.2
All versions before 4.16.19

Still affected on this line by CVE-2025-64764 (fixed in 5.15.8, a newer line).

4.16.19

“Up to” means the second version is the fix and is not affected.

Other packages that bundle this code (1)

Forks, repackagings and products that include the affected code. Each has its own fixed version.

  • npm@astrojs/node
    Affected: All versions before 9.1.1Upgrade to 9.1.1 or later

Check your lockfile against all CVEs

References

2 links, grouped by NVD tag
↑ ↓ chooseEnter openEsc close