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

CVE-2024-56159: Astro's server source code is exposed to the public if sourcemaps are enabled

December 19, 2024 (updated November 27, 2025)

A bug in the build process allows any unauthenticated user to read parts of the server source code.

References

  • github.com/advisories/GHSA-49w6-73cw-chjr
  • github.com/getsentry/sentry-javascript/blob/develop/packages/astro/src/integration/index.ts
  • github.com/withastro/astro
  • github.com/withastro/astro/blob/176fe9f113fd912f9b61e848b00bbcfecd6d5c2c/packages/astro/src/core/build/static-build.ts
  • github.com/withastro/astro/commit/039d022b1bbaacf9ea83071d27affc5318e0e515
  • github.com/withastro/astro/commit/c879f501ff01b1a3c577de776a1f7100d78f8dd5
  • github.com/withastro/astro/issues/12703
  • github.com/withastro/astro/security/advisories/GHSA-49w6-73cw-chjr
  • nvd.nist.gov/vuln/detail/CVE-2024-56159

Code Behaviors & Features

Detect and mitigate CVE-2024-56159 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 →

Affected versions

All versions before 4.16.18, all versions starting from 5.0.0-alpha.0 before 5.0.8

Fixed versions

  • 5.0.8
  • 4.16.18

Solution

Upgrade to versions 4.16.18, 5.0.8 or above.

Impact 5.3 MEDIUM

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

Learn more about CVSS

Weakness

  • CWE-219: Storage of File with Sensitive Data Under Web Root

Source file

npm/astro/CVE-2024-56159.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sun, 08 Nov 2026 00:15:41 +0000.