CVE-2025-64757
JavaScript vulnerability analysis and mitigation

Overview

A vulnerability (CVE-2025-64757) has been identified in the Astro web framework's development server that allows arbitrary local file read access through the image optimization endpoint. The vulnerability was discovered and disclosed on November 19, 2025, affecting Astro versions prior to 5.14.3. The issue specifically impacts Astro development environments and allows remote attackers to read any image file accessible to the Node.js process on the host system (GitHub Advisory).

Technical details

The vulnerability exists in the Node.js image endpoint handler during development mode. The endpoint accepts an href parameter that specifies the path to an image file, but in development mode, this parameter is processed without adequate path validation, allowing attackers to specify absolute file paths. The issue is located in packages/astro/src/assets/endpoint/node.ts where the development branch bypasses the security checks that exist in the production code path. The vulnerability has been assigned a CVSS v3.1 base score of 3.5 (Low) with the vector string CVSS:3.1/AV:A/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N, indicating adjacent network attack vector, low attack complexity, no privileges required, and user interaction required (GitHub Advisory, NVD).

Impact

The vulnerability has a HIGH confidentiality impact as it allows unauthorized access to any image file readable by the Node.js process, with the complete file contents accessible via HTTP response transformed to PNG format. There is no integrity impact as the vulnerability only allows reading files, not modification. While there is no direct availability impact, there is potential for resource exhaustion through repeated large image requests (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in Astro version 5.14.3. The fix involves moving the development server logic to a new file (packages/astro/src/assets/endpoint/dev.ts) and adding a check using isParentDirectory to ensure the requested file is within the project's root directory (GitHub Patch).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-67731HIGH8.7
  • JavaScriptJavaScript
  • servify-express
NoYesDec 12, 2025
CVE-2025-67718HIGH8.7
  • JavaScriptJavaScript
  • formio
NoYesDec 11, 2025
CVE-2025-65513HIGH7.5
  • JavaScriptJavaScript
  • mcp-fetch-server
NoNoDec 09, 2025
CVE-2025-67716MEDIUM5.7
  • JavaScriptJavaScript
  • @auth0/nextjs-auth0
NoYesDec 11, 2025
CVE-2025-67490MEDIUM5.4
  • JavaScriptJavaScript
  • @auth0/nextjs-auth0
NoYesDec 10, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management