Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. astro
  4. ›
  5. CVE-2024-56140

CVE-2024-56140: Atro CSRF Middleware Bypass (security.checkOrigin)

December 18, 2024

A bug in Astro’s CSRF-protection middleware allows requests to bypass CSRF checks.

References

  • 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. Learn more about Dependency Scanning →

Affected versions

All versions before 4.16.17

Fixed versions

  • 4.16.17

Solution

Upgrade to version 4.16.17 or above.

Impact 5.9 MEDIUM

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

Learn more about CVSS

Weakness

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

Source file

npm/astro/CVE-2024-56140.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Wed, 14 May 2025 12:15:58 +0000.