p PatchFirst

CVE-2026-59729

CVE-2026-59729 · Astro: XSS via unescaped spread attribute names in renderHTMLElement (incomplete fix for CVE-2026-54298)

Cette page présente des faits issus de sources publiques. Consultez l’avis original avant toute mise à jour.

Astro is a web framework for content-driven websites. Versions prior to 7.0.6 are vulnerable to XSS through unescaped spread attribute names in renderHTMLElement. The fix for CVE-2026-54298 (GHSA-jrpj-wcv7-9fh9) added an INVALID_ATTR_NAME_CHAR guard to addAttribute() so that spread-prop attribute names containing "' >/= or whitespace are dropped. A second attribute-rendering path, renderHTMLElement() in packages/astro/src/runtime/server/render/dom.ts, has its own inline attribute loop that does not go through addAttribute() and was not updated. It interpolates the attribute name unescaped and only escapes the value, so untrusted prop keys spread onto a native-HTMLElement-subclass component can still break out of the attribute context. This issue has been fixed in version 7.0.6.

CVSS 5.1 · Moyenne · EPSS 0,5% · Correctif disponible

Publication
Mise à jour

Pile logicielle: node

Produits et versions concernés

  • astro

    Versions du logiciel
    • < 7.0.6: Concernée

    Aucun correctif publié

  • astro npm

    Plages de versions concernées
    • SEMVER: < 7.0.6

    Mettez à jour vers 7.0.6

Sources originales

Vérifiez votre serveur →