Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. astro
  4. ›
  5. CVE-2026-33769

CVE-2026-33769: Astro: Remote allowlist bypass via unanchored matchPathname wildcard

March 26, 2026

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. In our PoC, both the allowed path and a bypass path returned 200 with the same SVG payload, confirming the bypass.

References

  • github.com/advisories/GHSA-g735-7g2w-hh3f
  • github.com/withastro/astro
  • github.com/withastro/astro/security/advisories/GHSA-g735-7g2w-hh3f
  • nvd.nist.gov/vuln/detail/CVE-2026-33769

Code Behaviors & Features

Detect and mitigate CVE-2026-33769 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 2.10.10 before 5.18.1

Fixed versions

  • 5.18.1

Solution

Upgrade to version 5.18.1 or above.

Impact 5.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-183: Permissive List of Allowed Inputs
  • CWE-20: Improper Input Validation

Source file

npm/astro/CVE-2026-33769.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 09 May 2026 12:18:33 +0000.