Description
Astro is a web framework. From version 2.10.10 to before version 5.18.1, this issue concerns Astro's remotePatterns path enforcement for remote URLs used by server-side fetchers such as the image optimization endpoint. The path matching logic for /* wildcards is unanchored, so a pathname that contains the allowed prefix later in the path can still match. As a result, an attacker can fetch paths outside the intended allowlisted prefix on an otherwise allowed host. This issue has been patched in version 5.18.1.
Published: 2026-03-24
Score: 2.9 Low
EPSS: < 1% Very Low
KEV: No
Impact: Unauthorized Remote Resource Fetch
Action: Upgrade
AI Analysis

Impact

Astro implements remote pattern allowlists for server‑side fetchers, such as the image optimization endpoint. In versions 2.10.10 through 5.18.0 the wildcard logic that matches a pathname is unanchored, meaning a request path that contains the permitted prefix later in the URL can still satisfy the rule. Consequently, an attacker can craft a URL that points to a resource outside the intended prefix on an otherwise allowed host, enabling unauthorized retrieval of remote content. This flaw exposes the application to inadvertent data leakage but does not lead to code execution or privilege escalation.

Affected Systems

The vulnerability affects the Astro web framework from the vendor withastro:astro. It is present in releases from 2.10.10 up to, but not including, 5.18.1. All Node.js environments that run Astro are impacted, because the flaw resides in the framework rather than the underlying runtime. Users running any of these Astro versions should be aware that their remote resource fetch endpoints could be abused.

Risk and Exploitability

The CVSS score of 2.9 indicates a low severity, and the EPSS score is below 1 %, suggesting a very low probability that attackers will target this flaw in the near term. The vulnerability is not listed in the KEV catalog, which means no confirmed exploit activity has been reported. Exploitation requires sending malicious requests to an Astro application that uses the affected image optimization or fetch resolution features with unfiltered remotePatterns. Thus, the likely attack vector is remote, via crafted URLs to a public endpoint. While the impact is limited to unauthorized data access, the flaw still calls for mitigation to prevent potential data leakage.

Generated by OpenCVE AI on March 26, 2026 at 14:58 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Astro to version 5.18.1 or later
  • Verify that remotePatterns configurations include only the intended prefixes
  • If upgrading is not immediately possible, restrict exposure of image optimization or fetch endpoints to trusted traffic
  • Monitor logs for abnormal remote fetch attempts

Generated by OpenCVE AI on March 26, 2026 at 14:58 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-g735-7g2w-hh3f Astro: Remote allowlist bypass via unanchored matchPathname wildcard
History

Thu, 26 Mar 2026 12:15:00 +0000

Type Values Removed Values Added
First Time appeared Astro
Astro astro
CPEs cpe:2.3:a:astro:astro:*:*:*:*:*:node.js:*:*
Vendors & Products Astro
Astro astro
Metrics cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N'}


Wed, 25 Mar 2026 12:00:00 +0000

Type Values Removed Values Added
First Time appeared Withastro
Withastro astro
Vendors & Products Withastro
Withastro astro

Tue, 24 Mar 2026 21:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Tue, 24 Mar 2026 19:00:00 +0000

Type Values Removed Values Added
Description Astro is a web framework. From version 2.10.10 to before version 5.18.1, this issue concerns Astro's remotePatterns path enforcement for remote URLs used by server-side fetchers such as the image optimization endpoint. The path matching logic for /* wildcards is unanchored, so a pathname that contains the allowed prefix later in the path can still match. As a result, an attacker can fetch paths outside the intended allowlisted prefix on an otherwise allowed host. This issue has been patched in version 5.18.1.
Title Astro: Remote allowlist bypass via unanchored matchPathname wildcard
Weaknesses CWE-20
References
Metrics cvssV4_0

{'score': 2.9, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:P'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-03-24T20:13:25.845Z

Reserved: 2026-03-23T18:30:14.127Z

Link: CVE-2026-33769

cve-icon Vulnrichment

Updated: 2026-03-24T20:13:11.332Z

cve-icon NVD

Status : Analyzed

Published: 2026-03-24T19:16:55.837

Modified: 2026-03-26T12:04:56.100

Link: CVE-2026-33769

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-03-27T09:20:46Z

Weaknesses