Skip to main content
EPSS 0.5%top 56%

CVE-2026-73422: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in withastro astro

0
Medium
VulnerabilityCVE-2026-73422cvecve-2026-73422cwe-79
Published: 08/12/2026 (08/12/2026, 20:32:56 UTC)
Source: CVE Database V5
Vendor/Project: withastro
Product: astro

Description

Astro is a web framework for content-driven websites. From 2.9.0 until 7.1.0, Astro's server-side View Transition CSS generator interpolates animation properties into an inline style element without escaping them for CSS and HTML contexts. An attacker-controlled View Transition animation value such as duration can terminate the generated style element and inject arbitrary HTML or JavaScript. The affected code is packages/astro/src/runtime/server/transition.ts; renderTransition passes sheet.toString() into markHTMLString(), while addAnimationProperty serializes duration through toTimeValue() and also handles easing, direction, delay, fillMode, and name. Exploitation requires an on-demand or server-rendered route to pass attacker-controlled data into a View Transition animation definition and can execute arbitrary JavaScript in the affected application's origin, allowing access to sensitive page data and authenticated actions available to the victim. This issue is fixed in version 7.1.0.

CVSS v4.0

Score 5.3medium

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vuln. Confidentiality
None
Vuln. Integrity
None
Vuln. Availability
None
Subsq. Confidentiality
Low
Subsq. Integrity
Low
Subsq. Availability
None
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N

Affected software

withastro

astro

Affected versions
>=2.9.0 <7.1.0
astro
pkg:npm/astro
Affected versions
>=2.9.0 <7.1.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/12/2026, 20:57:20 UTC

Technical Analysis

The Astro web framework (versions 2.9.0 through 7.0.x) has a CWE-79 cross-site scripting vulnerability due to improper neutralization of input during web page generation. Specifically, the server-side View Transition CSS generator interpolates animation properties such as duration into inline style elements without escaping them for CSS and HTML contexts. This allows an attacker controlling these animation values to terminate the style element and inject arbitrary HTML or JavaScript. The vulnerable code is located in packages/astro/src/runtime/server/transition.ts, where renderTransition passes serialized animation properties into markHTMLString() without proper sanitization. Exploitation requires an on-demand or server-rendered route that passes attacker-controlled data into a View Transition animation definition. Successful exploitation enables arbitrary JavaScript execution in the application's origin, risking access to sensitive page data and authenticated user actions. The vulnerability is resolved in Astro version 7.1.0.

Potential Impact

An attacker who can supply malicious input to a View Transition animation property in an affected Astro application can execute arbitrary JavaScript in the context of the application's origin. This can lead to theft of sensitive page data and unauthorized actions performed with the victim's privileges. The vulnerability requires user interaction (UI) and network access but no privileges or authentication. The CVSS 4.0 base score is 5.3 (medium severity), reflecting the moderate impact and ease of exploitation.

Mitigation Recommendations

This vulnerability is fixed in Astro version 7.1.0. Users should upgrade to version 7.1.0 or later to remediate the issue. There is no official patch or temporary fix available for earlier versions. Until upgrading, avoid passing untrusted input into View Transition animation properties in server-rendered or on-demand routes to reduce risk.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-08-12T14:32:11.795Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 6a7cda88bf8831d53922d9e9

Added to database: 08/12/2026, 20:41:44 UTC

Last enriched: 08/12/2026, 20:57:20 UTC

Last updated: 09/27/2026, 01:47:44 UTC

Views: 52

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses