# CVE-2026-126361: Astro: XSS via attribute injection in dynamic tag names

- Severity: Low 2.3 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.42%, higher than 37% of CVEs (2026-12-01)
- Published: 2026-11-12T22:26:35.206Z
- Modified: 2026-11-17T20:17:40.227Z
- Also known as: GHSA-mh32-jxcr-mh9f
- Weaknesses: CWE-79, CWE-184
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- withastro astro: < 7.4.5
- astro (npm): before 7.4.5

## Every score

- GitHub_M: CVSS:4.0 2.3 Low `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N`
- GitHub: CVSS:4.0 Low `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N`

## References

- <https://github.com/withastro/astro/security/advisories/GHSA-mh32-jxcr-mh9f> (web)
- <https://github.com/withastro/astro/pull/18520> (web)
- <https://github.com/withastro/astro/commit/e023abac912d7cb6af2b9fb5107ef5dabc667096> (web)
- <https://github.com/withastro/astro/releases/tag/astro@7.4.5> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-126361> (advisory)
- <https://github.com/withastro/astro> (package)

## Sources

- CVE List: [CVE-2026-126361](https://www.cve.org/CVERecord?id=CVE-2026-126361), CVE Terms of Use, modified 2026-11-17
- GitHub Advisory Database: [GHSA-mh32-jxcr-mh9f](https://github.com/advisories/GHSA-mh32-jxcr-mh9f), CC-BY-4.0, modified 2026-11-13
- NVD: [CVE-2026-126361](https://nvd.nist.gov/vuln/detail/CVE-2026-126361), Public domain, modified 2026-11-17

---

Page: https://cve.day/CVE-2026-126361 · Whole record: https://cve.day/CVE-2026-126361.json · Rebuilt by cve.day 2026-11-25T22:59:50.578Z
