Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-73425: CWE-185: Incorrect Regular Expression in withastro astro

0
Low
VulnerabilityCVE-2026-73425cvecve-2026-73425cwe-185
Published: 08/12/2026 (08/12/2026, 20:41:10 UTC)
Source: CVE Database V5
Vendor/Project: withastro
Product: 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

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
None
Availability
None
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N

Affected software

GitHub Actionsmore threats →ai
withastro/astro
pkg:github/withastro/astro
Affected versions
<8.1.2

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/12/2026, 21:28:20 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses