StraitOfVuln
Latest / CVE-2026-126365

CVE-2026-126365

MediumCVSS 5.4 (v3.1)Awaiting Analysis
CVE.org ↗NVD ↗

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.

Details

CVE ID
CVE-2026-126365
Published / updated
13 Nov 2026, 00:20 UTC · last modified 17 Nov 2026, 22:17 UTC
Severity
MEDIUM
CVSS score
5.4 · v3.1 · CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N · Attack vector: Network
Affected vendor
@astrojs, withastro
Affected products
markdoc, prism, astro
Affected versions
markdoc: >= 0.3.0, < 2.1.2
prism: < 4.1.2
astro: < 7.4.3
From the publisher's (CNA) CVE record. NVD analysis is pending.
Fixed versions
Not stated in the data. Check the vendor advisory.
Exploitation status
Not in CISA KEV (no confirmed exploitation recorded)
EPSS
0.21% probability of exploitation in the next 30 days · 13% percentile (03 Dec 2026)
Weakness
Remediation
See the vendor advisory below.
Source (CNA)
security-advisories@github.com