PT-2026-146088
CVE-2026-126365
·
Published
2026-11-12
·
Updated
2026-11-13
Description by
CVSS 3.1
5.4
MediumMetricsAV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Name of the Vulnerable Software and Affected Versions
@astrojs/prism versions prior to 4.1.2
@astrojs/markdoc versions 0.3.0 through 2.1.2
Description
The
runHighlighterWithAstro() function returns code unchanged when Prism lacks a grammar for the requested language. Because callers insert this result as raw HTML, a code block labeled with an unsupported language can render embedded HTML and scripts instead of displaying them as text. This affects the Prism component when untrusted code is supplied with an unsupported or attacker-controlled lang variable, and the @astrojs/markdoc prism() extension when used by less-trusted content authors, even if ordinary HTML rendering is disabled.Recommendations
Update @astrojs/prism to version 4.1.2.
Update @astrojs/markdoc to version 2.1.2.
Exploitability
Exploit
Fix
Impacts
Vendors
Affected products
Found an issue in the description? Have something to add? Feel free to write us 👾