Bug 2572868 (CVE-2026-126365) - CVE-2026-126365 @astrojs/prism: @astrojs/markdoc: astro: Cross-Site Scripting via unsupported syntax highlighting language
Summary: CVE-2026-126365 @astrojs/prism: @astrojs/markdoc: astro: Cross-Site Scripting...
Keywords:
Status: NEW
Alias: CVE-2026-126365
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-11-12 22:41 UTC by OSIDB Bzimport
Modified: 2026-11-12 22:54 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-11-12 22:41:35 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.