astro@4.11.4 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
  • 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) due to improper user input sanitization and insecure usage of JSON.stringify method in the server-islands.ts component.

How to fix Cross-site Scripting (XSS)?

Upgrade astro to version 4.12.2 or higher.

<4.12.2