Skip to content
Vulnerability Intelligence

CVE-2024-56159

HighExploitedPublic exploit

Astro's server source code is exposed to the public if sourcemaps are enabled

Published Dec 19, 2024 · Updated Aug 12, 2026 · Also known as GHSA-49w6-73cw-chjr

Key Facts

Patch immediately
  • CVE-2024-56159 is a high-severity vulnerability (CVSS 7.8 v4) affecting Astro, withastro/astro (github-repo).
  • It is exploited in the wild, listed in Industry KEV feed since Feb 11, 2026. Public exploit code is available.
  • EPSS estimates a 1.5% probability of exploitation in the next 30 days.
  • Fixed versions are available, including Astro 4.16.18, Astro 5.0.8.
  • Brandefense priority: patch immediately, because it is listed as exploited in the wild.

CVSS v4

7.8

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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

EPSS (30-day exploit likelihood)

1.5%

Higher than 74.4% of all scored CVEs

Exploited in the wild

Yes

1 catalog listing

Public exploit code

Available

Proof-of-concept or weaponized module

Get the full CVE-2024-56159 brief as a PDF

Every affected product and fixed release, exploitation status and a first 24 hours response checklist, emailed within minutes.

Description

Astro is a web framework for content-driven websites. A bug in the build process allows any unauthenticated user to read parts of the server source code. During build, along with client assets such as css and font files, the sourcemap files for the server code are moved to a publicly-accessible folder. Any outside party can read them with an unauthorized HTTP GET request to the same server hosting the rest of the website. While some server files are hashed, making their access obscure, the files corresponding to the file system router (those in src/pages) are predictably named. For example. the sourcemap file for src/pages/index.astro gets named dist/client/pages/index.astro.mjs.map. This vulnerability is the root cause of issue #12703, which links to a simple stackblitz project demonstrating the vulnerability. Upon build, notice the contents of the dist/client (referred to as config.build.client in astro code) folder. All astro servers make the folder in question accessible to the public internet without any authentication. It contains .map files corresponding to the code that runs on the server. All server-output projects on Astro 5 versions v5.0.3 through v5.0.7, that have sourcemaps enabled, either directly or through an add-on such as sentry, are affected. The fix for server-output projects was released in astro@5.0.8. Additionally, all static-output projects built using Astro 4 versions 4.16.17 or older, or Astro 5 versions 5.0.8 or older, that have sourcemaps enabled are also affected. The fix for static-output projects was released in astro@5.0.9, and backported to Astro v4 in astro@4.16.18. The immediate impact is limited to source code. Any secrets or environment variables are not exposed unless they are present verbatim in the source code. There is no immediate loss of integrity within the the vulnerable server. However, it is possible to subsequently discover another vulnerability via the revealed source code . There is no immediate impact to availability of the vulnerable server. However, the presence of an unsafe regular expression, for example, can quickly be exploited to subsequently compromise the availability. The fix for server-output projects was released in astro@5.0.8, and the fix for static-output projects was released in astro@5.0.9 and backported to Astro v4 in astro@4.16.18. Users are advised to update immediately if they are using sourcemaps or an integration that enables sourcemaps.

Known-Exploited Catalog Listings

CatalogAddedRemediation dueRansomware use
Industry KEV feedFeb 11, 2026n/aNot reported

Required action: Apply remediations or mitigations per vendor instructions or discontinue use of the product if remediation or mitigations are unavailable.

Affected Products

4 affected entries in total
ProductAffected versionsFixed in
AstroAstro>= 5.0.0-alpha.0, >= >= 5.0.0, < 5.0.84.16.18
withastro/astrogithub-repoSee advisoryn/a

Patched Releases

Astro

4.16.18, 5.0.8

Timeline

  1. Publicly disclosed

    Dec 19, 2024

  2. Added to Industry KEV feed

    Feb 11, 2026

  3. Last updated

    Aug 12, 2026

Weakness Type

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

References

6 more references in the full CVE brief

FAQ

Common Questions.

Is CVE-2024-56159 Running On Your Attack Surface?

Brandefense maps vulnerabilities like this one to your internet-facing assets and tells you exactly where to patch.

Request A Demo