CVE-2026-126365
Last modified
CVE-2026-126365 is a medium-severity vulnerability rated 5.4/10 on the CVSS scale. 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.
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.
Metrics
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| withastro | astro | < 7.4.3 |
| @astrojs | prism | < 4.1.2 |
| @astrojs | markdoc | >= 0.3.0, < 2.1.2 |
References
Timeline
- Published
- Last Modified
- Status
- Received
Frequently Asked Questions
What is CVE-2026-126365?
How severe is CVE-2026-126365?
How do I fix CVE-2026-126365?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-126359Hono is a Web application framework that provides support fo…3.4
- CVE-2026-126360OpenTelemetry Python provides the Python API and SDK for Ope…5.3
- CVE-2026-126361Astro is a web framework for content-driven websites. Prior …2.3
- CVE-2026-126362Astro is a web framework for content-driven websites. From 5…2.3
- CVE-2026-126363Astro is a web framework for content-driven websites. From 0…2.3
- CVE-2026-126364Astro is a web framework for content-driven websites. From 5…6.3
- CVE-2026-126366MessagePack for Ruby is an implementation of the MessagePack…7.5
- CVE-2026-126367@grpc/grpc-js implements the core functionality of gRPC pure…4.8
- CVE-2026-1264IBM Sterling B2B Integrator and IBM Sterling File Gateway 6.…6.5
- CVE-2026-12644Versions of the package ts-deepmerge before 8.0.0 are vulner…5.5
- CVE-2026-12645A Missing Authorization vulnerability in Ivanti Neurons for …8.8
- CVE-2026-12646A Missing Authorization vulnerability in Ivanti Neurons for …8.8
Are you affected by CVE-2026-126365?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
