Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. astro
  4. ›
  5. GHSA-8mv7-9c27-98vc

GHSA-8mv7-9c27-98vc: Astro: composable `astro/hono` pipeline bypasses `security.checkOrigin` when `middleware()` is absent or misordered

July 20, 2026

In the composable astro/hono pipeline, the security.checkOrigin protection is only installed by the middleware() primitive. The actions() and pages() primitives each dispatch to user code independently, so a pipeline that mounts either primitive before (or without) middleware() will bypass the origin check for those requests.

References

  • github.com/advisories/GHSA-8mv7-9c27-98vc
  • github.com/withastro/astro/commit/0b30b35f864310bee8485c952d1877e82e2b9b1a
  • github.com/withastro/astro/pull/17250
  • github.com/withastro/astro/releases/tag/astro@7.0.6
  • github.com/withastro/astro/security/advisories/GHSA-8mv7-9c27-98vc

Code Behaviors & Features

Detect and mitigate GHSA-8mv7-9c27-98vc with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 7.0.0 before 7.0.6

Fixed versions

  • 7.0.6

Solution

Upgrade to version 7.0.6 or above.

Impact 4.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-352: Cross-Site Request Forgery (CSRF)

Source file

npm/astro/GHSA-8mv7-9c27-98vc.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 08 Aug 2026 00:16:44 +0000.