p PatchFirst

CVE-2025-55303

CVE-2025-55303 · Unauthorized third-party images in Astro’s _image endpoint

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

CVSS 6.9 · Medium · EPSS 0.6% · Public exploit · Fix available

Published
Updated

Stack: node

Affected products and versions

  • astro

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

    No fix published

  • astro npm

    Affected ranges
    • SEMVER: ≥ 5.0.0-alpha.0, < 5.13.2

    Update to 5.13.2

  • @astrojs/node npm

    Affected ranges
    • SEMVER: < 9.1.1

    Update to 9.1.1

  • astro npm

    Affected ranges
    • SEMVER: < 4.16.19

    Update to 4.16.19

Original sources

Check your server →