Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-54298— Astro: XSS via Unescaped Attribute Names in Spread Props

Quick assessment

Affected
withastro astro
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Astro是Astro团队开源的一个内容驱动网站的 web 框架。 Astro 6.4.6之前版本存在跨站脚本漏洞,该漏洞源于spreadAttributes函数在服务器端渲染过程中未对对象键进行转义,可能导致攻击者注入任意HTML属性或注入新元素。

CVSS 4.2 · Medium EPSS 0.23% · P12

Possible ATT&CK Techniques 1 AI

T1189 · Drive-by Compromise

Affected Version Matrix 1

VendorProduct Version RangeStatus
withastro astro < 6.4.6 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-54298

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Astro: XSS via Unescaped Attribute Names in Spread Props
Source: CVE Program / CVE List V5
Vulnerability Description
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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N
Source: CVE Program / CVE List V5
Vulnerability Type
在Web页面生成时对输入的转义处理不恰当(跨站脚本)
Source: CVE Program / CVE List V5
Vulnerability Title
Astro 跨站脚本漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Astro是Astro团队开源的一个内容驱动网站的 web 框架。 Astro 6.4.6之前版本存在跨站脚本漏洞,该漏洞源于spreadAttributes函数在服务器端渲染过程中未对对象键进行转义,可能导致攻击者注入任意HTML属性或注入新元素。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
withastro astro < 6.4.6 -

II. Public POCs for CVE-2026-54298

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-54298

请登录查看更多情报信息。

Vendor Advisories for CVE-2026-54298 (1)

Same Patch Batch · withastro · 2026-06-22 · 4 CVEs total

CVE-2026-54299 7.5 HIGH Astro: Host-header full-read SSRF in core prerendered error-page fetch (prerenderedErrorPa
CVE-2026-50146 7.1 HIGH Astro: Reflected XSS via unescaped slot name
CVE-2026-54300 5.3 MEDIUM @astrojs/netlify broadens Astro image.remotePatterns in Netlify Image CDN config

IV. Related Vulnerabilities

V. Comments for CVE-2026-54298

No comments yet


Leave a comment