CVE-2026-73423: CWE-352: Cross-Site Request Forgery (CSRF) in withastro astro
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.
AI Analysis
Technical Summary
Astro versions 7.0.0 to 7.0.5 using the composable astro/hono pipeline are vulnerable to CSRF due to the security.checkOrigin middleware being applied only through middleware(). If actions() is mounted before middleware(), or pages() is used without middleware(), cross-origin form-encoded requests can trigger state-mutating handlers before origin verification. This enables blind write-only CSRF attacks using victim cookies against ActionHandler.handle and PagesHandler.handleWithErrorFallback when manifest.checkOrigin is enabled. The default non-composable astro() pipeline is not affected. The vulnerability is resolved in version 7.0.6.
Potential Impact
An attacker can induce a victim's browser to send cross-origin requests that mutate state on the target server without the victim's consent or knowledge. The attacker cannot read the response, so the attack is blind, but state changes can still occur. This can lead to unauthorized actions being performed on behalf of the victim. The vulnerability requires the use of the composable astro/hono pipeline with manifest.checkOrigin enabled and improper middleware ordering or omission. The default pipeline is not affected.
Mitigation Recommendations
A fix is available in astro version 7.0.6. Users should upgrade to version 7.0.6 or later to resolve this CSRF vulnerability. Since this is a cloud service, the vendor typically manages remediation server-side; users should verify with the vendor advisory for confirmation. Until patched, ensure that middleware() is mounted before actions() and pages(), or avoid using pages() without middleware(), to maintain the origin check. Follow the vendor's official guidance for secure pipeline configuration.
CVE-2026-73423: CWE-352: Cross-Site Request Forgery (CSRF) in withastro astro
Description
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.
CVSS v4.0
Score 5.1medium
Affected software
withastro
astro
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
Astro versions 7.0.0 to 7.0.5 using the composable astro/hono pipeline are vulnerable to CSRF due to the security.checkOrigin middleware being applied only through middleware(). If actions() is mounted before middleware(), or pages() is used without middleware(), cross-origin form-encoded requests can trigger state-mutating handlers before origin verification. This enables blind write-only CSRF attacks using victim cookies against ActionHandler.handle and PagesHandler.handleWithErrorFallback when manifest.checkOrigin is enabled. The default non-composable astro() pipeline is not affected. The vulnerability is resolved in version 7.0.6.
Potential Impact
An attacker can induce a victim's browser to send cross-origin requests that mutate state on the target server without the victim's consent or knowledge. The attacker cannot read the response, so the attack is blind, but state changes can still occur. This can lead to unauthorized actions being performed on behalf of the victim. The vulnerability requires the use of the composable astro/hono pipeline with manifest.checkOrigin enabled and improper middleware ordering or omission. The default pipeline is not affected.
Mitigation Recommendations
A fix is available in astro version 7.0.6. Users should upgrade to version 7.0.6 or later to resolve this CSRF vulnerability. Since this is a cloud service, the vendor typically manages remediation server-side; users should verify with the vendor advisory for confirmation. Until patched, ensure that middleware() is mounted before actions() and pages(), or avoid using pages() without middleware(), to maintain the origin check. Follow the vendor's official guidance for secure pipeline configuration.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-08-12T14:32:11.795Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Is Cloud Service
- true
Threat ID: 6a7cda88bf8831d53922d9ef
Added to database: 08/12/2026, 20:41:44 UTC
Last enriched: 08/12/2026, 20:57:10 UTC
Last updated: 09/26/2026, 01:47:44 UTC
Views: 55
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.
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.