astro@4.15.1 vulnerabilities

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

Direct Vulnerabilities

Known vulnerabilities in the astro package. This does not include vulnerabilities belonging to this package’s dependencies.

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.
Fix for free
Vulnerability Vulnerable Version
  • M
Cross-site Scripting (XSS)

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 Cross-site Scripting (XSS) through the ViewTransitions component. An attacker can execute arbitrary scripts in the context of the user's browser session by manipulating the DOM elements such as iframe tags with unsanitized name attributes to shadow document.scripts (DOM Clobbering Attack).

Note:

This is only exploitable if the application uses Astro's client-side routing and stores attacker-controlled scriptless HTML elements on the destination pages.

How to fix Cross-site Scripting (XSS)?

Upgrade astro to version 4.16.1 or higher.

>=3.0.0 <4.16.1