Vulnerability · Published Oct 21, 2026 · Assigned by GitHub_M
CVE-2026-114127Astro: Arbitrary CSS injection in Astro View Transitions
Low 2.3
In plain English
A low-severity cross-site scripting in astro from withastro. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 43% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
Astro is a web framework for content-driven websites. From 7.1.0 until 7.3.3, Astro's server-side View Transition CSS generator does not keep string animation properties within their generated declarations. An application that passes attacker-controlled data into properties such as duration, delay, easing, direction, fillMode, or animation names can allow CSS delimiters to terminate the declaration and add attacker-selected rules to the server-rendered page. The generated stylesheet still escapes literal less-than characters, so the injected content cannot terminate the style element or directly inject HTML or JavaScript. The injected CSS can conceal or reposition content, add generated text, and otherwise misrepresent the interface; some applications may also expose data already present in selectable DOM attributes through conditional resource loads. This issue is fixed in 7.3.3.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | astro | 7.3.3 | GHSA-mpr7-6m5w-76rw |
Affected products (as reported)
Weakness: CWE-79 · Vector: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N
References
- https://github.com/withastro/astro/security/advisories/GHSA-mpr7-6m5w-76rw x_refsource_CONFIRM
- https://github.com/withastro/astro/pull/17970 x_refsource_MISC
- https://github.com/withastro/astro/commit/0b4dc3a211910b589d3805ab4dfedf11b0e712bb x_refsource_MISC
- https://github.com/withastro/astro/releases/tag/astro@7.3.3 x_refsource_MISC