CVE-2025-64757 Astro Development Server is Vulnerable to Arbitrary Local File Read

Low 3.5 Published Updated

Remote attackers can read arbitrary local image files via the Astro development server's image optimization endpoint.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2025-64757?

CVE-2025-64757 is a low-severity path traversal vulnerability in withastro astro, published on 19 Nov 2025. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

Astro is a web framework. Prior to version 5.14.3, a vulnerability has been identified in the Astro framework's development server that allows arbitrary local file read access through the image optimization endpoint. The vulnerability affects Astro development environments and allows remote attackers to read any image file accessible to the Node.js process on the host system. This issue has been patched in version 5.14.3.

Weakness: CWE-23, CWE-22

Which versions are affected by CVE-2025-64757?

2 open source packages ship an affected version, including astro. It affects 1 product.

PackageAffectedFixed in
astro npmAll versions5.14.3
astro npmAll versions5.14.3

Products include Astro Astro.

How do I fix CVE-2025-64757?

Upgrade astro to 5.14.3 or later.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2025-64757 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-64757 exists.

Sources

Also known as GHSA-x3h8-62x9-952g.

Is CVE-2025-64757 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free