Skip to content

Escape < and > in attribute values written by the Rust renderer (defense in depth after GHSA-5mm2) #808

Open

Description

@JuroOravec

(Opus 5.5)

On a component that Vue hydrates, Citry's Rust server renderer writes attribute values with < and > unescaped. Browsers read &lt; 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 &lt; and &gt;) 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.

🤖 Generated with Claude Code

https://claude.ai/code/session_01KUhrHaXagmW5ZxpRAMwyom

Activity

  1. added this to the Next sprint milestone on Nov 19, 2026
  2. added
    next-sprint
    on Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    next-sprint

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions