CVE-2026-73425: CWE-185: Incorrect Regular Expression in withastro astro
Astro versions prior to 8.1.2 contain a vulnerability in the Netlify adapter where certain pathname values in image.remotePatterns are converted into regular expressions without properly escaping metacharacters. This can cause unintended matching of paths beyond the intended restrictive pattern. The issue is fixed in version 8.1.2.
AI Analysis
Technical Summary
The Astro web framework's Netlify adapter converts each image.remotePatterns entry into a regular expression for Netlify's Image CDN allowlist. In versions before 8.1.2, the function remotePatternToRegex() escapes dots in hostnames but does not escape regular expression metacharacters in pathname values such as ., +, ?, (, and [. This improper escaping causes restrictive pathnames like /img/v1.0/file to match additional unintended paths that include metacharacters, potentially allowing image optimization on paths that were meant to be excluded. Netlify enforces the generated regex directly, and Astro's matchPattern() helper does not revalidate the request, which contributes to the issue. The vulnerability is addressed in Astro version 8.1.2.
Potential Impact
The vulnerability could allow image optimization requests on paths that were intended to be excluded by the restrictive pathname pattern, potentially leading to unintended resource access within the allowed host. However, the CVSS score is low (3.7) with low confidentiality impact and no integrity or availability impact. There are no known exploits in the wild.
Mitigation Recommendations
Upgrade to Astro version 8.1.2 or later, where this issue is fixed by properly escaping regular expression metacharacters in pathname values. No other mitigations are indicated.
CVE-2026-73425: CWE-185: Incorrect Regular Expression in withastro astro
Description
Astro versions prior to 8.1.2 contain a vulnerability in the Netlify adapter where certain pathname values in image.remotePatterns are converted into regular expressions without properly escaping metacharacters. This can cause unintended matching of paths beyond the intended restrictive pattern. The issue is fixed in version 8.1.2.
CVSS v3.1
Score 3.7low
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The Astro web framework's Netlify adapter converts each image.remotePatterns entry into a regular expression for Netlify's Image CDN allowlist. In versions before 8.1.2, the function remotePatternToRegex() escapes dots in hostnames but does not escape regular expression metacharacters in pathname values such as ., +, ?, (, and [. This improper escaping causes restrictive pathnames like /img/v1.0/file to match additional unintended paths that include metacharacters, potentially allowing image optimization on paths that were meant to be excluded. Netlify enforces the generated regex directly, and Astro's matchPattern() helper does not revalidate the request, which contributes to the issue. The vulnerability is addressed in Astro version 8.1.2.
Potential Impact
The vulnerability could allow image optimization requests on paths that were intended to be excluded by the restrictive pathname pattern, potentially leading to unintended resource access within the allowed host. However, the CVSS score is low (3.7) with low confidentiality impact and no integrity or availability impact. There are no known exploits in the wild.
Mitigation Recommendations
Upgrade to Astro version 8.1.2 or later, where this issue is fixed by properly escaping regular expression metacharacters in pathname values. No other mitigations are indicated.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-08-12T14:32:11.796Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a7ce1eabf8831d5392b033d
Added to database: 08/12/2026, 21:13:14 UTC
Last enriched: 08/12/2026, 21:28:20 UTC
Last updated: 08/12/2026, 22:42:09 UTC
Views: 5
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.