Live threats

All CVEs / Astro

CVE-2026-54298Astro

Medium 6.1 No auth needed

Priority
52
CVSS 3.1
6.1
EPSS
—
Auth required
No
Published
Jun 22, 2026
Updated
Oct 25, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-79
SSVC (CISA)
Exploitation: proof of concept · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

What happens

Astro is a web framework. Prior to 6.4.6, the spreadAttributes function in Astro's server-side rendering pipeline iterates over object keys and passes them directly to addAttribute, which interpolates the key into the HTML output without escaping. When a developer uses the spread syntax {...props} on an HTML element and the object keys come from an untrusted source (API, CMS, URL parameters), an attacker can inject arbitrary HTML attributes including event handlers like onmousemove, onclick, or break out of the attribute context entirely to inject new elements. This vulnerability is fixed in 6.4.6.

Original NVD text.

What to do

  1. Apply the vendor's security update for Astro.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm astro < 6.4.6 6.4.6 npm install astro@6.4.6

Per OSV / GitHub Advisories (GHSA-jrpj-wcv7-9fh9). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
astroastro< 6.4.6

Official sources

References

Links published by the sources. Open them with care.