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

Goal: 1000 CNY · Raised: 1325 CNY

100%

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

CVSS 4.2 · Medium EPSS 0.16% · P6
Get alerts for future matching vulnerabilitiesLog 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: NVD (National Vulnerability Database)
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: NVD (National Vulnerability Database)
CVSS Information
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N
Source: NVD (National Vulnerability Database)
Vulnerability Type
在Web页面生成时对输入的转义处理不恰当(跨站脚本)
Source: NVD (National Vulnerability Database)

Affected Products

VendorProductAffected VersionsCPESubscribe
withastroastro < 6.4.6 -

II. Public POCs for CVE-2026-54298

#POC DescriptionSource LinkShenlong Link
AI-Generated POCPremium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-54298

登录查看更多情报信息。

Other References for CVE-2026-54298 (1)

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

CVE-2026-542997.5 HIGHAstro: Host-header full-read SSRF in core prerendered error-page fetch (prerenderedErrorPa
CVE-2026-501467.1 HIGHAstro: Reflected XSS via unescaped slot name
CVE-2026-543005.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