THREATOPS
THREAT OPS › Threat News › [GHSA] GHSA-mh32-jxcr-mh9f (low) — Astro: XSS via attribute injection in dynamic tag names

[GHSA] GHSA-mh32-jxcr-mh9f (low) — Astro: XSS via attribute injection in dynamic tag names

medgithub_advisoriesPublished 2026-11-13

GHSA-mh32-jxcr-mh9f Severity: low CVE: CVE-2026-126361

Astro: XSS via attribute injection in dynamic tag names

## Summary

When a dynamic tag (`const Tag = ...; <Tag />`) resolves to a string, Astro renders it as a raw HTML element name. The name was filtered to remove characters that could inject attributes, but the filter did not handle `/`. Because HTML parsers treat `/` inside a tag as an at

Indicators of compromise

Original source: https://github.com/advisories/GHSA-mh32-jxcr-mh9f