CVE-2026-126365
Published:November 12, 2026
Updated:November 13, 2026
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.
Affected Packages
https://github.com/withastro/astro.git (GITHUB):
Affected version(s) >=@astrojs/markdoc@0.3.0 <@astrojs/markdoc@2.1.2 || >=@astrojs/markdoc@1.0.0-alpha.0 <@astrojs/markdoc@2.1.2 || >=@astrojs/markdoc@2.0.0-alpha.0 <@astrojs/markdoc@2.1.2Fix Suggestion:
Update to version @astrojs/markdoc@2.1.2https://github.com/withastro/astro.git (GITHUB):
Affected version(s) >=@astrojs/prism@0.4.1 <@astrojs/prism@4.1.2 || >=@astrojs/prism@1.0.0 <@astrojs/prism@4.1.2 || >=@astrojs/prism@2.0.0-beta.0 <@astrojs/prism@4.1.2 || >=@astrojs/prism@3.0.0-beta.0 <@astrojs/prism@4.1.2 || >=@astrojs/prism@4.0.0-beta.1 <@astrojs/prism@4.1.2Fix Suggestion:
Update to version @astrojs/prism@4.1.2@astrojs/prism (NPM):
Affected version(s) >=3.0.0-beta.0 <4.1.2 || >=4.0.0-alpha.0 <4.1.2 || >=1.0.0 <4.1.2 || >=0.0.0-cloudcannon-fix-20230306211609 <4.1.2 || >=0.4.1 <4.1.2 || >=2.0.0-beta.0 <4.1.2Fix Suggestion:
Update to version 4.1.2@astrojs/markdoc (NPM):
Affected version(s) >=0.3.0 <2.1.2 || >=1.0.0-alpha.0 <2.1.2 || >=2.0.0-alpha.0 <2.1.2Fix Suggestion:
Update to version 2.1.2Related ResourcesĀ (6)
Do you need more information?
Contact UsCVSS v4
Base Score:
5.1
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
LOW
User Interaction
PASSIVE
Vulnerable System Confidentiality
LOW
Vulnerable System Integrity
LOW
Vulnerable System Availability
NONE
Subsequent System Confidentiality
LOW
Subsequent System Integrity
LOW
Subsequent System Availability
NONE
CVSS v3
Base Score:
5.4
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
LOW
User Interaction
REQUIRED
Scope
CHANGED
Confidentiality
LOW
Integrity
LOW
Availability
NONE
Weakness Type (CWE)
Improper Neutralization of Input During Web Page Generation