
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-33769 is a remote allowlist bypass vulnerability in the Astro web framework caused by an unanchored matchPathname wildcard in the remotePatterns path enforcement logic. It affects Astro versions from 2.10.10 up to (but not including) 5.18.1 for Node.js. An unauthenticated remote attacker can craft URLs that bypass configured path prefix restrictions on allowlisted hosts, enabling unauthorized fetching of remote resources via server-side endpoints such as the image optimization endpoint. It was published on March 24, 2026, with a CVSS v3.1 score of 5.3 (Medium) and a CVSS v4.0 score of 2.9 (Low) (GitHub Advisory).
The root cause is improper input validation (CWE-20) combined with a permissive allowlist implementation (CWE-183) in the matchPathname() function within packages/internal-helpers/src/remote.ts. When a remotePattern pathname ends with /* (e.g., /img/*), the function uses JavaScript's .replace() to strip the prefix before counting path segments — but .replace() is not anchored to the start of the string. As a result, a URL path like /evil/img/secret incorrectly matches the pattern /img/* because /img/ is found and removed from the middle of the path, leaving only one segment (secret), which satisfies the single-chunk check. The taint flow is: user-controlled href parameter → transform.src → isRemoteAllowed() → matchPattern() → matchPathname(), ultimately causing the /_image endpoint to fetch and return the unauthorized remote resource (GitHub Advisory).
Successful exploitation allows an unauthenticated attacker to retrieve files and data from paths outside the intended allowlisted prefix on an otherwise permitted host, constituting a file/data disclosure and partial SSRF expansion. The confidentiality impact is limited to resources accessible on allowlisted hosts beyond the configured path prefix; integrity and availability are not affected. While the scope is constrained to the vulnerable system and does not enable lateral movement or code execution, it could expose sensitive files or internal resources served by allowlisted hosts if those hosts serve content beyond the intended path (GitHub Advisory).
A proof-of-concept (PoC) exploit consisting of two complete Python scripts — a client and a mock attacker server — is publicly available in the GitHub Security Advisory (GitHub Advisory). The vulnerability requires no authentication, no user interaction, and is exploitable over the network, though attack requirements are rated as "Present" (AT:P) under CVSS v4.0, reflecting the need for a specific remotePatterns configuration to be in place. The EPSS score is approximately 0.085% (11th percentile), and there is no evidence of active in-the-wild exploitation or CISA KEV catalog inclusion as of the time of reporting (GitHub Advisory).
/_image) with remotePatterns configured to restrict access to specific path prefixes (e.g., pathname: '/img/*')./img/* is allowed on cdn.example, craft a URL like https://cdn.example/evil/img/secret.svg.GET /_image?href=https%3A%2F%2Fcdn.example%2Fevil%2Fimg%2Fsecret.svg&f=svg.matchPathname() function incorrectly matches the path because .replace('/img/', '') removes the prefix from the middle of the path, leaving one segment and passing the check. The server fetches and returns the content of the unintended path with HTTP 200./_image endpoint with href parameters pointing to paths that do not start with the configured allowlisted prefix (e.g., /evil/img/secret.svg when only /img/* is allowed); outbound HTTP/HTTPS requests from the Astro server to allowlisted hosts for unexpected resource paths./_image requests with URL-encoded href values containing path segments before the allowlisted prefix (e.g., %2Fevil%2Fimg%2F); HTTP 200 responses for /_image requests that should have returned 403 based on configured remotePatterns.remotePatterns pathname prefix on allowlisted hosts, observable via response content matching resources not intended to be publicly served (GitHub Advisory).Upgrade Astro to version 5.18.1 or later, which patches the matchPathname() function to anchor the prefix replacement to the start of the path string, preventing the bypass (GitHub Advisory). As a temporary workaround prior to patching, review and tighten remotePatterns configuration to use /** (double-star) patterns where possible, and consider implementing additional server-side URL validation before passing URLs to the image endpoint. Restricting network-level access to the /_image endpoint to trusted clients can also reduce exposure until the patch is applied.
The vulnerability was reported by security researcher christos-eth and published by Astro maintainer matthewp on March 24, 2026, via the GitHub Security Advisory program (GitHub Advisory). No significant broader media coverage or notable social media discussion has been identified beyond standard CVE tracking and advisory aggregation sites.
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."