Vulnerability · Published Aug 12, 2026 · Assigned by GitHub_M
CVE-2026-73423Astro: composable `astro/hono` pipeline bypasses `security.checkOrigin` when `middleware()` is absent or misordered
Medium 5.1
In plain English
A medium-severity cross-site request forgery in astro from withastro. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 18% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | astro | 7.0.6 | GHSA-8mv7-9c27-98vc |
Affected products (as reported)
Weakness: CWE-352 · Vector: 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
References
- https://github.com/withastro/astro/security/advisories/GHSA-8mv7-9c27-98vc x_refsource_CONFIRM
- https://github.com/withastro/astro/pull/17250 x_refsource_MISC
- https://github.com/withastro/astro/commit/0b30b35f864310bee8485c952d1877e82e2b9b1a x_refsource_MISC
- https://github.com/withastro/astro/releases/tag/astro@7.0.6 x_refsource_MISC