CVE-2026-126365

Medium

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.

SeverityMedium
CVSS5.4
Exploit probability—
ProductAstro
PublishedNov 13, 2026
First seenNov 13, 2026

How to fix

Update
  • withastro astro7.4.3 or later
  • @astrojs prism4.1.2 or later

Affected products

ProductAffected versionsFixed in
withastro astrov < 7.4.37.4.3
@astrojs prismv < 4.1.24.1.2
@astrojs markdoc>= 0.3.0, < 2.1.2—

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.