CVE-2026-126361
Astro: XSS via attribute injection in dynamic tag names
Auswirkung
Astro is a web framework for content-driven websites. Prior to 7.4.5, Astro rendered a string used as a dynamic element name as raw HTML after applying an incomplete character filter. A / in the string could make an HTML parser treat the remainder as attributes, allowing untrusted element-name input to inject event-handler markup. The .astro dynamic-tag renderer, JSX renderer, and MDX renderer were affected, and exploitation required an application to use request-controlled or stored untrusted data as all or part of an element name. This issue is fixed in version 7.4.5.
Ein Angreifer kann die Lücke über das Netzwerk ausnutzen, ohne Anmeldung, allerdings muss ein Nutzer beteiligt sein, etwa indem er Inhalte ansieht. Dafür müssen bestimmte Bedingungen erfüllt sein, was einen Angriff erschwert. Bei Erfolg: geringes Risiko, dass Daten ausgelesen werden, geringes Risiko, dass Daten oder Systeme verändert werden.
Betroffene Pakete
| Ökosystem | Paket | Betroffen | Behoben in |
|---|---|---|---|
| npm | astro | <= 7.4.4 | 7.4.5 |
Betroffene Produkte · Withastro
| Produkt | Betroffene Versionen |
|---|---|
| Astro | vor 7.4.5 Version < 7.4.5 |
Schwachstellenklasse
Referenzen
- NVD-Eintrag
- CVE.org-Eintrag
- GitHub-Advisory
- https://github.com/withastro/astro/security/advisories/GHSA-mh32-jxcr-mh9f
- https://github.com/withastro/astro/pull/18520
- https://github.com/withastro/astro/commit/e023abac912d7cb6af2b9fb5107ef5dabc667096
- https://github.com/withastro/astro/releases/tag/astro@7.4.5
- https://github.com/advisories/GHSA-mh32-jxcr-mh9f
- https://nvd.nist.gov/vuln/detail/CVE-2026-126361