CVE-2024-56159 — Vulnerability in astro — CVE Details
Astro's server source code is exposed to the public if sourcemaps are enabled
Summary
Advisory Timeline
- First published December 19, 2024 (662 days ago).
- Last revised November 27, 2025 — 343 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
npm install astro@5.0.8
npm install astro@4.16.18
After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.
Affected Packages (2)
Affects 1 ecosystem: npm (1).
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-219
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.9 score means for each attack dimension.
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:H/SI:L/SA:L
References
- https://github.com/withastro/astro/security/advisories/GHSA-49w6-73cw-chjrWEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-56159ADVISORY
- https://github.com/withastro/astro/issues/12703WEB
- https://github.com/withastro/astro/commit/039d022b1bbaacf9ea83071d27affc5318e0e515WEB
- https://github.com/withastro/astro/commit/c879f501ff01b1a3c577de776a1f7100d78f8dd5WEB
- https://github.com/getsentry/sentry-javascript/blob/develop/packages/astro/src/integration/index.ts#L50WEB
- https://github.com/withastro/astroPACKAGE
- https://github.com/withastro/astro/blob/176fe9f113fd912f9b61e848b00bbcfecd6d5c2c/packages/astro/src/core/build/static-build.ts#L139WEB
Frequently Asked Questions
- What is CVE-2024-56159?
- Astro's server source code is exposed to the public if sourcemaps are enabled This vulnerability has been assigned a severity rating of HIGH (CVSS score: 9.9/10).
- How do I check if my project is affected by CVE-2024-56159?
- CVE-2024-56159 affects astro. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2024-56159 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Exploitation is straightforward and causes maximum impact. Patch immediately.
Also Known As
Related CVEs
- CVE-2026-107375HIGH
JHipster: SQL Injection in the Parameter of JHipster-Generated Reactive (WebFlux + R2DBC) Applicationssort
- CVE-2026-107384HIGH
MariaDB Connector/Node.js: SQL injection through object keys in SET expansion (permitSetMultiParamEntries)
Check if you're affected
Scan your dependencies to see if this vulnerability affects your projects.
Scan Your Dependencies