Intel

AIKIDO-2026-10972

@astrojs/internal-helpers is vulnerable to Server-Side Request Forgery (SSRF)

Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published May 28, 2026
May 28, 2026

65

CVE Score

Medium

Server-Side Request Forgery (SSRF)

Are you affected? Scan for Free

TL;DR

The isRemotePath() helper in @astrojs/internal-helpers/path classifies image href values for Astro's /_image pipeline. Before the fix, URL-encoded or literal control characters immediately after a leading slash caused the helper to treat the value as a local path. Downstream image handling could then follow protocol-relative or remote targets and bypass configured image.domains and image.remotePatterns restrictions. The patch replaces the negative slash check with a positive allowlist so control characters no longer bypass remote-path detection.

How do I fix this?

Upgrade the @astrojs/internal-helpers library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Versions

0.7.4 - 0.9.0

Fixed in 0.9.1

Background info

@astrojs/internal-helpers is vulnerable to Server-Side Request Forgery (SSRF) in versions 0.7.4 - 0.9.0.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea