
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-27829 is a Server-Side Request Forgery (SSRF) vulnerability in Astro's image pipeline that allows bypassing image.domains / image.remotePatterns domain allowlist restrictions when the inferSize option is used. It affects @astrojs/node versions 9.0.0 through 9.5.3 (npm package). The vulnerability was published by the Astro maintainer (matthewp) on February 23, 2026, and patched in version 9.5.4. The CVSS v3.1 base score is 6.5–7.2 (Moderate/Medium), depending on scope interpretation (GitHub Advisory, Astro Security Advisory).
The root cause is a missing domain validation check (CWE-918: Server-Side Request Forgery) in Astro's inferRemoteSize function within packages/astro/src/assets/utils/remoteProbe.ts. When inferSize: true is passed to getImage(), the framework fetches the remote image at render time to determine its dimensions, but prior to the fix, it did not call isRemoteAllowed() to validate the URL against the configured image.domains or image.remotePatterns allowlist. Additionally, HTTP redirects were not blocked (redirect: 'manual' was absent), enabling redirect-based SSRF chaining. An attacker who can influence the image URL — for example, through CMS-managed content or user-supplied data passed to getImage() — can trigger server-side fetches to arbitrary hosts (GitHub Advisory, Patch Commit).
Successful exploitation allows an attacker to cause the Astro server to make HTTP requests to arbitrary internal or external hosts, bypassing the developer-configured domain allowlist. This enables SSRF attacks against internal network services (e.g., databases, admin panels) and cloud metadata endpoints (e.g., http://169.254.169.254/ on AWS/GCP/Azure), potentially leading to information disclosure of sensitive credentials or configuration data. Integrity and availability are also marginally impacted, as the server can be directed to consume resources fetching from attacker-controlled or unintended hosts (GitHub Advisory, Astro Security Advisory).
A public proof-of-concept (PoC) is included in the official GitHub Security Advisory, demonstrating exploitation by passing http://127.0.0.1:8888/internal-api as the image src with inferSize: true to bypass an allowlist configured for localhost:9000 only. No evidence of in-the-wild exploitation has been reported as of the advisory date. The EPSS score is approximately 0.038% (23rd percentile), indicating low near-term exploitation probability. The vulnerability is not listed in the CISA KEV catalog. No threat actor attribution is available (GitHub Advisory, Astro Security Advisory).
@astrojs/node versions 9.0.0–9.5.3 in server-side rendering (output: 'server') mode that uses getImage() with inferSize: true and accepts user- or CMS-supplied image URLs.http://169.254.169.254/latest/meta-data/ for AWS IMDSv1, or http://127.0.0.1:<port>/internal-api).src value through the controllable input (e.g., a CMS field, API parameter, or query string) that is passed to getImage({ src: 'http://169.254.169.254/latest/meta-data/', inferSize: true }).127.0.0.1, 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16) or cloud metadata endpoints (169.254.169.254) not matching configured image.domains or image.remotePatterns.http://169.254.169.254/latest/meta-data/ or http://metadata.google.internal/ originating from the Node.js server process.inferSize: true with image URLs pointing to non-allowlisted or internal hosts.GET requests from the Astro server's IP address.node process hosting the Astro application to internal network addresses or metadata endpoints.Upgrade @astrojs/node to version 9.5.4 or later, which implements proper isRemoteAllowed() validation in inferRemoteSize() and blocks HTTP redirects (redirect: 'manual') across all image fetch paths (Patch Commit, GitHub Advisory). If immediate upgrade is not possible, disable the inferSize option for all remote images as a temporary workaround. Additionally, validate all user- or CMS-supplied image URLs at the application level before passing them to getImage(), and ensure image.domains / image.remotePatterns are configured as restrictively as possible.
The vulnerability was reported by an external researcher credited as pHo9UBenaA and published by Astro maintainer matthewp on February 23, 2026. A brief post appeared on Bluesky via the CVE tracking account, and the vulnerability was picked up by automated CVE aggregators including Vulners, CVEFeed, and VulDB shortly after disclosure. No significant independent researcher commentary or major media coverage has been identified beyond standard CVE tracking (GitHub Advisory).
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."