Server-side Request Forgery (SSRF) Affecting @astrojs/internal-helpers package, versions <0.7.3


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.04% (11th percentile)

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 Server-side Request Forgery (SSRF) vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-ASTROJSINTERNALHELPERS-13734354
  • published29 Oct 2025
  • disclosed28 Oct 2025
  • creditping, Avalanche Ridings

Introduced: 28 Oct 2025

NewCVE-2025-59837  (opens in a new tab)
CWE-918  (opens in a new tab)

How to fix?

Upgrade @astrojs/internal-helpers to version 0.7.3 or higher.

Overview

@astrojs/internal-helpers is an Internal helpers used by core Astro packages.

Affected versions of this package are vulnerable to Server-side Request Forgery (SSRF) via the /_image endpoint. An attacker can access internal or unauthorized resources by submitting crafted URLs to the generated image optimization endpoint configured with output: server and utilizing default imageService: compile.

Note:

This was partially fixed by the patch for CVE-2025-58179. That fix blocks http://, https:// and //, but can be bypassed using backslashes (\); the endpoint still issues a server-side fetch.

References

CVSS Base Scores

version 4.0
version 3.1