๐Ÿ” CVE Alert

CVE-2026-126365

MEDIUM 5.4

Astro: XSS via unescaped code for unsupported languages in @astrojs/prism

CVSS Score
5.4
EPSS Score
0.0%
EPSS Percentile
0th

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.

CWE CWE-79
Vendor withastro
Product astro
Published Nov 12, 2026
Stay Ahead of the Next One

Get instant alerts for withastro astro

Be the first to know when new medium vulnerabilities affecting withastro astro are published โ€” delivered to Slack, Telegram or Discord.

Get Free Alerts โ†’ Free ยท No credit card ยท 60 sec setup

CVSS v3 Breakdown

CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

Affected Versions

withastro / astro
< 7.4.3
@astrojs / prism
< 4.1.2
@astrojs / markdoc
>= 0.3.0, < 2.1.2

References

NVD โ†— CVE.org โ†— EPSS Data โ†—
github.com: https://github.com/withastro/astro/security/advisories/GHSA-ff38-p3qj-4pmf github.com: https://github.com/withastro/astro/commit/edfbf4ab34ff007ae8f7188af76a023a15c9443d github.com: https://github.com/withastro/astro/releases/tag/@astrojs/[email protected] github.com: https://github.com/withastro/astro/releases/tag/@astrojs/[email protected]