Storage of File with Sensitive Data Under Web Root Affecting astro package, versions <4.16.18>=5.0.0-alpha.0 <5.0.8


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of concept

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-ASTRO-8539778
  • published20 Dec 2024
  • disclosed19 Dec 2024
  • creditlilnasy

Introduced: 19 Dec 2024

NewCVE-2024-56159  (opens in a new tab)
CWE-219  (opens in a new tab)

How to fix?

Upgrade astro to version 4.16.18, 5.0.8 or higher.

Overview

astro is an Astro is a modern site builder with web best practices, performance, and DX front-of-mind.

Affected versions of this package are vulnerable to Storage of File with Sensitive Data Under Web Root due to the exposure of sourcemap files in publicly accessible directories during the build process. An attacker can access and reconstruct server-side source code by making unauthorized HTTP GET requests to the server hosting the website.

Note:

This is only exploitable if sourcemaps are enabled.

CVSS Scores

version 4.0
version 3.1