Description
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.
Severity (CVSS)
| Base score | 5.4 |
|---|---|
| Severity | Medium |
| Version | CVSS 3.1 |
| Vector | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
| Provided by | CNA |
Weaknesses
- CWE-79 — CWE-79: Improper Neutralization of Input During Web Page Generation
Affected products
| Vendor | Product | Versions |
|---|---|---|
| withastro | astro | < 7.4.3 [affected] |
| @astrojs | prism | < 4.1.2 [affected] |
| @astrojs | markdoc | >= 0.3.0, < 2.1.2 [affected] |
References
- https://github.com/withastro/astro/security/advisories/GHSA-ff38-p3qj-4pmf (x_refsource_CONFIRM)
- https://github.com/withastro/astro/commit/edfbf4ab34ff007ae8f7188af76a023a15c9443d (x_refsource_MISC)
- https://github.com/withastro/astro/releases/tag/@astrojs/markdoc@2.1.2 (x_refsource_MISC)
- https://github.com/withastro/astro/releases/tag/@astrojs/prism@4.1.2 (x_refsource_MISC)
Assess this vulnerability
Compare your deployed product and version with the source record. Review vendor references for fixes and workarounds. A CVSS score describes technical severity; it does not establish that your systems are affected or that exploitation has occurred.
Browse all CVE security advisories · Symaro cybersecurity services
Generated from the official CVE List on 13 Nov 2026 08:05 UTC.