CVE-2026-126365withastro astro Cross-site Scripting (XSS)
NVDCVSS scored by security-advisories@github.com
Vulnerability Summary
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.
CVSS v3.1 Base Metrics — Score 5.4 (MEDIUM)
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:NAttack VectorNetwork
Attack ComplexityLow
Privileges RequiredLow
User InteractionRequired
ScopeChanged
ConfidentialityLow
IntegrityLow
AvailabilityNone
Affected & Patched Versions
- withastro astro < 7.4.3
- @astrojs prism < 4.1.2
- @astrojs markdoc >= 0.3.0, < 2.1.2
No patched version published yet
Until a fix ships, reduce exposure:
- Restrict access to the affected service or interface to trusted networks.
- Disable the affected feature if you do not need it.
- Watch the vendor advisory for a firmware or software update.
What to do
Fix it during your normal patch cycle. No exploitation is confirmed yet.
- Check whether you run withastro astro and which version.
- No patched version is listed yet. Limit access to the affected service to trusted networks, and disable the feature if you can.
- Subscribe to the vendor advisory so you learn when a fix ships.
Timeline
- Nov 13, 2026Published
- Nov 17, 2026Record last modified
Score, severity and exploitation changes are tracked from the day Watchtower started logging them.
Get notified about new withastro astro CVEsYou are reading CVE-2026-126365. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alertsExternal References
- Patchhttps://github.com/withastro/astro/commit/edfbf4ab34ff007ae8f7188af76a023a15c9443d
- Referencehttps://github.com/withastro/astro/releases/tag/@astrojs/markdoc@2.1.2
- Referencehttps://github.com/withastro/astro/releases/tag/@astrojs/prism@4.1.2
- Vendor Advisoryhttps://github.com/withastro/astro/security/advisories/GHSA-ff38-p3qj-4pmf
Data last checked: Nov 24, 2026 14:13 UTC