CVE-2024-56140: Atro CSRF Middleware Bypass (security.checkOrigin)
(updated )
A bug in Astro’s CSRF-protection middleware allows requests to bypass CSRF checks.
References
- developer.mozilla.org/en-US/docs/Web/HTTP/CORS
- github.com/advisories/GHSA-c4pw-33h3-35xw
- github.com/withastro/astro
- github.com/withastro/astro/blob/6031962ab5f56457de986eb82bd24807e926ba1b/packages/astro/src/core/app/middlewares.ts
- github.com/withastro/astro/commit/e7d14c374b9d45e27089994a4eb72186d05514de
- github.com/withastro/astro/security/advisories/GHSA-c4pw-33h3-35xw
- nvd.nist.gov/vuln/detail/CVE-2024-56140
Code Behaviors & Features
Detect and mitigate CVE-2024-56140 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →