Skip to main content

Markdoc

1 CVEs product

Monthly

CVE-2026-126365 Nov 12, 22:36 MEDIUM PATCH This Month

Stored cross-site scripting in the Astro ecosystem affects @astrojs/prism before 4.1.2 and the @astrojs/markdoc prism() extension from 0.3.0 through 2.1.1: code blocks tagged with a language Prism has no grammar for are emitted into the page as raw HTML instead of escaped text, so embedded markup and script execute in the site's origin for every visitor. Exploitation requires an authenticated low-privileged actor - a content author on a Markdoc site using the prism() extension whose ordinary HTML rendering is otherwise disabled, or an application passing untrusted code plus an attacker-influenced lang into the <Prism /> component - plus a victim viewing the rendered page (CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N, 5.4). Sites using the default Shiki highlighter, supported languages, or plaintext/no-language blocks are unaffected; no public exploit has been identified at time of analysis.

XSS Red Hat Astro Prism Withastro +1
NVD GitHub
CVSS 3.1
5.4
EPSS
0.2%
EPSS 0% CVSS 5.4
MEDIUM PATCH This Month

Stored cross-site scripting in the Astro ecosystem affects @astrojs/prism before 4.1.2 and the @astrojs/markdoc prism() extension from 0.3.0 through 2.1.1: code blocks tagged with a language Prism has no grammar for are emitted into the page as raw HTML instead of escaped text, so embedded markup and script execute in the site's origin for every visitor. Exploitation requires an authenticated low-privileged actor - a content author on a Markdoc site using the prism() extension whose ordinary HTML rendering is otherwise disabled, or an application passing untrusted code plus an attacker-influenced lang into the <Prism /> component - plus a victim viewing the rendered page (CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N, 5.4). Sites using the default Shiki highlighter, supported languages, or plaintext/no-language blocks are unaffected; no public exploit has been identified at time of analysis.

XSS Red Hat Astro +3
NVD GitHub

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy