You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Escape < and > in attribute values written by the Rust renderer (defense in depth after GHSA-5mm2) #808
On a component that Vue hydrates, Citry's Rust server renderer writes attribute values with < and > unescaped. Browsers read < and < in a quoted attribute value the same way, so this is valid HTML, but it means the serialized page holds text that looks like tags inside attribute values. Any later step that reads the page as text can mistake it for real markup. That is what GHSA-5mm2-p7xq-jchq was: asset tag placement found a </head> inside an attribute value. citry 1.1.0 fixed placement with a tag-aware scan.
Proposal: escape < and > (as < and >) in attribute values in the Rust renderer too, on every path that writes attributes (hydrated output, the Vue server renderer, the native render path), so the serialized page never holds tag-like text inside an attribute value. This closes the root cause as defense in depth.
Needs a citry-core release, and hydration parity tests: the browser must read the same attribute value, and Vue must adopt the server HTML without mismatch warnings.
Check output byte stability (cache keys, snapshot tests) and benchmark the render path.
Activity