Relative Path Traversal Affecting @astrojs/cloudflare package, versions <12.6.10


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Relative Path Traversal vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-ASTROJSCLOUDFLARE-14059140
  • published20 Nov 2025
  • disclosed19 Nov 2025
  • creditMonish Basaniwal

Introduced: 19 Nov 2025

NewCVE-2025-64757  (opens in a new tab)
CWE-22  (opens in a new tab)
CWE-23  (opens in a new tab)

How to fix?

Upgrade @astrojs/cloudflare to version 12.6.10 or higher.

Overview

@astrojs/cloudflare is a Deploy your site to Cloudflare Workers/Pages

Affected versions of this package are vulnerable to Relative Path Traversal via the href parameter in the image optimization endpoint during development mode. An attacker can access arbitrary local image files readable by the Node.js process by sending crafted HTTP requests specifying absolute file paths.

References

CVSS Base Scores

version 4.0
version 3.1