The vulnerability is an arbitrary CSS injection in Astro's server-side View Transition CSS generator. The root cause is that animation property values (such as duration, delay, easing, direction, fillMode, and animation names) were serialized into CSS declarations without escaping CSS delimiters (;, {, }). When an application passes attacker-controlled data into a transition animation value, the attacker can terminate the intended CSS declaration and inject arbitrary CSS rules into the server-rendered page.
The vulnerable code path is in packages/astro/src/runtime/server/transition.ts:
stringifyAnimation() / stringifyAnimations() collect animation values from transition objects.
addAnimationProperty() converts each value to a string via toString() and pushes it into the animation builder without any escaping.
animationBuilder()'s toString() method interpolates these raw values into CSS declarations (${k}: ${value.join(', ')};), where the unescaped delimiters become active CSS.
The fix (commit 0b4dc3a211910b589d3805ab4dfedf11b0e712bb) added an escapeCSSValue() function that encodes CSS delimiters (;, {, }) as hex escapes, and modified addAnimationProperty() to apply this escaping before pushing values into the builder. This confirms that addAnimationProperty() was the function lacking the necessary sanitization, and stringifyAnimations()/stringifyAnimation() are the entry points that feed untrusted values into it.
These functions are TypeScript/JavaScript, so per the profiler rules, they appear without namespace/module paths (just the function name).