Skip to main content

Astro CVE-2026-73423

| EUVDEUVD-2026-57608 MEDIUM
Cross-Site Request Forgery (CSRF) (CWE-352)
2026-08-12 GitHub_M GHSA-8mv7-9c27-98vc
5.1
CVSS 4.0 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Victim visits attacker-controlled page
  2. Delivery
    Browser auto-submits cross-origin form POST with victim session cookies
  3. Exploit
    Astro composable pipeline routes request to actions() or pages() handler
  4. Execution
    Origin check bypassed due to missing or misordered middleware()
  5. Persist
    ActionHandler.handle or PagesHandler.handleWithErrorFallback executes with victim credentials
  6. Impact
    Server-side state mutated without victim awareness

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V3 - Web Frontend Security Anti-CSRF tokens, SameSite cookies
MITRE ATT&CK

1 technique across 1 tactic: Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires all four of the following conditions: (1) the target application uses the composable astro/hono pipeline - NOT the default astro() all-in-one pipeline, which is fully unaffected; (2) within that pipeline, either actions() is mounted before middleware() OR pages() is used without middleware() being present at all; (3) security.checkOrigin is true, which is the framework default and therefore met in virtually all unmodified installations; and (4) the victim must hold an active authenticated session on the target application AND must visit an attacker-controlled page that submits a cross-origin form request. What limits exploitation: the vulnerable pipeline configuration is explicitly opt-in and non-default; the attacker cannot read the cross-origin response body, restricting the attack to blind state mutation only; and the attack surface is limited to POST/PUT/PATCH/DELETE endpoints with form-encoded content types (application/x-www-form-urlencoded, multipart/form-data, text/plain) - JSON API calls are not covered by this origin check mechanism.

Impact

The CVSS 4.0 score of 5.1 (Medium, AV:N/AC:L/AT:N/PR:N/UI:A/SC:N/SI:L/SA:N) accurately reflects real-world risk: the attack requires no attacker privileges and is network-based with low complexity, but active victim interaction is required and the impact is limited to blind integrity mutation of subsequent-system state with no confidentiality or availability consequence. EPSS data is not present in the provided intelligence, so probabilistic exploitation likelihood cannot be quantified. No CISA KEV listing and no public POC exist at time of analysis, indicating this is not confirmed actively exploited. Critically, the true exposed population is significantly narrower than the raw version range implies: only deployments using the composable astro/hono pipeline with a misordered or absent middleware() are affected. The risk is amplified by the fact that the official examples/advanced-routing example and Cloudflare Hono documentation shipped the vulnerable ordering, meaning developers following canonical guidance were unknowingly vulnerable.

Exploit ScenarioDerived

An attacker hosts a webpage containing a hidden HTML form whose action attribute targets a state-mutating Astro Action endpoint on the victim's server (e.g., an account-settings update or funds-transfer action). When an authenticated victim visits the attacker's page - via a phishing link or a malicious ad - the browser auto-submits the form with the victim's session cookies attached. Because the composable pipeline processes actions() before middleware(), the CSRF origin check never runs, and the Astro Action handler executes the state mutation (account change, data write, transaction trigger) using the victim's authenticated session without their awareness. No public POC is known at time of analysis.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Aug 12, 2026

Cross-site request forgery in Astro 7.0.0-7.0.5 allows unauthenticated network attackers to trigger state-mutating Actions and on-demand page endpoints using a victim's session cookies when the composable astro/hono pipeline is configured with actions() or pages() mounted without a preceding middleware() call. The default non-composable astro() pipeline is entirely unaffected; only deployments following the vulnerable pipeline composition pattern - which was demonstrated in the official examples/advanced-routing example and Cloudflare Hono documentation - are exposed. The attack is blind write-only: the attacker can mutate server state but cannot read the cross-origin response body. No public exploit or CISA KEV listing exists at time of analysis; the issue is fixed in Astro 7.0.6.

RemediationAI

The primary fix is to upgrade to Astro 7.0.6 via npm install astro@7.0.6 or equivalent; this release applies the origin check independently at both ActionHandler.handle and PagesHandler.handleWithErrorFallback regardless of pipeline assembly order, as documented in the release at https://github.com/withastro/astro/releases/tag/astro@7.0.6 and implemented in https://github.com/withastro/astro/pull/17250. If immediate upgrade is not feasible, the GHSA advisory prescribes a configuration workaround: always mount middleware() first in the composable pipeline before actions() and pages(), even when no custom middleware logic exists - specifically app.use(middleware()); app.use(actions()); app.use(pages());. This workaround restores the origin check but requires a deliberate code change in every composable pipeline in the codebase; any pipeline that omits middleware() entirely remains vulnerable under this workaround, and it provides no protection once forgotten during future refactors, making the upgrade strongly preferable.

Affected VersionsENISA

astro 7.0.0, < 7.0.6

Affected Packages

npm astro fix: 7.0.6

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in npm

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Astro's security.checkOrigin feature (enabled by default via manifest.checkOrigin = true) guards against CWE-352 by comparing the Origin HTTP header of incoming POST/PUT/PATCH/DELETE requests to the site's own URL, rejecting cross-site form submissions. In the classic astro() all-in-one pipeline, Astro injects a virtual middleware module unconditionally, so the check always runs. In the composable astro/hono pipeline introduced in v7.0.0 (CPE: cpe:2.3:a:withastro:astro:*:*:*:*:*:*:*:*), users manually assemble middleware(), actions(), and pages() primitives as Hono middleware. The origin check was only wired inside middleware(), leaving ActionHandler.handle and PagesHandler.handleWithErrorFallback unguarded when invoked before or without that primitive. The fix (PR #17250, commit 0b30b35) refactored the check into a shared origin-check.ts module, applying isForbiddenCrossOriginRequest() directly at both dispatch sinks in a manner that is order-independent and idempotent if middleware() has already run.

Know when Astro gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 5.1 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:N/SI:L/SA:N
vuln.today AI 4.7 MEDIUM

Network CSRF requiring victim interaction (UI:R); no attacker privileges; scope changes to affect server state (S:C); blind write-only mutation limits impact to I:L with no confidentiality or availability consequence.

3.1 AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:N/SI:L/SA:N
Red Hat 4.3 MEDIUM

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Active
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
Low
Subsequent system: Availability
None

Lifecycle Timeline

1
Patch available
Aug 12, 2026 - 23:03 EUVD

DescriptionCVE.org

Astro is a web framework for content-driven websites. From 7.0.0 until 7.0.6, the composable astro/hono pipeline installs security.checkOrigin only through the middleware() primitive, while actions() and pages() can dispatch to user code independently. Mounting actions() before middleware(), as in the examples/advanced-routing example and Cloudflare Hono documentation, allows cross-origin form-encoded action requests to execute before the origin check, and using pages() without middleware() drops the check for on-demand endpoints and pages. The flaw enables blind write-only cross-site request forgery using the victim's cookies against ActionHandler.handle and PagesHandler.handleWithErrorFallback when manifest.checkOrigin is enabled; the attacker can trigger a state-mutating action or endpoint handler but cannot read the cross-origin response. The default non-composable astro() pipeline is not affected. This issue is fixed in version 7.0.6.

Threat Intelligence Overview

EPSS Score
0.2%
Top 92% exploitable
Prevalence
Medium
popular JavaScript framework for content-driven sites, not enterprise-dominant
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Request Forgery exploits the automatic credential inclusion behavior of web browsers.

More in Astro

View all
CVE-2018-7180 CRITICAL POC
9.8 Feb 17

SQL Injection exists in the Saxum Astro 4.0.14 component for Joomla!. Rated critical severity (CVSS 9.8), this vulnerabi

CVE-2026-25545 HIGH POC
8.6 Feb 24

Astro web framework versions prior to 9.5.4 contain a server-side request forgery vulnerability in error page handling t

CVE-2026-59731 HIGH POC
8.2 Jul 08

Authorization bypass in the Astro web framework version 6.4.7 lets remote unauthenticated attackers reach protected rout

CVE-2024-56159 HIGH POC
7.8 Dec 19

Astro is a web framework for content-driven websites. Rated high severity (CVSS 7.8), this vulnerability is remotely exp

CVE-2025-59837 HIGH POC
7.2 Oct 28

Server-side request forgery in Astro's built-in image proxy lets unauthenticated remote attackers force the server to fe

CVE-2025-58179 HIGH POC
7.2 Sep 05

Astro is a web framework for content-driven websites. Rated high severity (CVSS 7.2), this vulnerability is remotely exp

CVE-2025-55303 MEDIUM POC
6.9 Aug 19

Astro is a web framework for content-driven websites. Rated medium severity (CVSS 6.9), this vulnerability is remotely e

CVE-2025-64765 MEDIUM POC
6.9 Nov 19

Astro is a web framework. Rated medium severity (CVSS 6.9), this vulnerability is remotely exploitable, no authenticatio

CVE-2025-64525 MEDIUM POC
6.5 Nov 13

Astro is a web framework. Rated medium severity (CVSS 6.5), this vulnerability is remotely exploitable, no authenticatio

CVE-2025-61925 MEDIUM POC
6.5 Oct 10

Unvalidated reflection of the X-Forwarded-Host header in Astro (versions before 5.14.3) lets remote, unauthenticated att

CVE-2026-27829 MEDIUM POC
6.5 Feb 26

Astro web framework versions 9.0.0 through 9.5.3 fail to validate remote image domains when the inferSize option is enab

CVE-2026-84376 MEDIUM POC
6.3 Sep 02

Base-path prefix bypass in Astro prior to 7.2.4 allows unauthenticated remote attackers to reach protected server-side r

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy