CVE-2026-126365
Description
Astro is a web framework for content-driven websites. Prior to @astrojs/prism 4.1.2, and from @astrojs/markdoc 0.3.0 until 2.1.2, runHighlighterWithAstro() returned code unchanged when Prism had no grammar for the requested language, and callers inserted that result as raw HTML. A code block labeled with an unsupported language could therefore render embedded HTML and script instead of displaying it as text. The Prism component was affected when applications supplied untrusted code with an unsupported or attacker-controlled lang, and the @astrojs/markdoc prism() extension was affected for less-trusted content authors even when Markdoc's ordinary HTML rendering was disabled. This issue is fixed in @astrojs/prism 4.1.2 and @astrojs/markdoc 2.1.2.
Weakness
- CWE-79: Improper Neutralization of Input During Web Page Generation
CISA SSVC decision points
| Exploitation | none |
|---|---|
| Automatable | no |
| Technical impact | partial |
| Scored | 2026-11-17 |
Timeline
- 2026-11-12Published by the CNA22:36 UTC
- 2026-11-13Published in NVD00:20 UTC · 1 hour 43 minutes after the CNA
- 2026-11-17CISA SSVC decision recorded5 days after publication
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| @astrojs markdoc | ||
| @astrojs prism | ||
| withastro astro |
References
- https://github.com/withastro/astro/commit/edfbf4ab34ff007ae8f7188af76a023a15c9443d
- https://github.com/withastro/astro/releases/tag/@astrojs/markdoc@2.1.2
- https://github.com/withastro/astro/releases/tag/@astrojs/prism@4.1.2
- https://github.com/withastro/astro/security/advisories/GHSA-ff38-p3qj-4pmf
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2026-126365'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2026-126365'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2026-126365'curl 'https://api.contrastcyber.com/cve_products/CVE-2026-126365'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).