CVE-2026-126365Withastro Astro cross-site scripting (XSS)
CVSS score
5.4
Medium
CVSS 3.1 from github.com
Exploit probability (EPSS)
0.17%
0.17% chance of exploitation in the next 30 days, higher than 6.50% of all CVEs.
CISA KEV
Not in KEV
No confirmed exploitation reported by CISA so far.
Official 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.
Source: NVD · CNA: security-advisories@github.com
How to fix it, step by step
Check whether you're affected
Find every system running withastro Astro, @astrojs Prism, @astrojs Markdoc and compare its version with the affected versions.
Update to a fixed version
- Update Astro to 7.4.3 or later.
- Update Prism to 4.1.2 or later.
- Update Markdoc to 2.1.2 or later.
Confirm the fix
Check that every affected system now reports a fixed version, and recheck the vendor's advisory: fixes are sometimes revised.
Was this useful?
How it can be exploited
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- Low
- User interaction
- Required
- Scope
- Changed
- Confidentiality
- Low
- Integrity
- Low
- Availability
- None
Values in red make the vulnerability easier to exploit or more damaging. CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Affected products
| Affected products | Versions |
|---|---|
| withastro Astro | < 7.4.3 |
| @astrojs Prism | < 4.1.2 |
| @astrojs Markdoc | >= 0.3.0, < 2.1.2 |
Weakness
- CWE-79 cross-site scripting (XSS)
Timeline
- Published:
- Last modified:
Frequently asked questions
Is CVE-2026-126365 being exploited?
There is no confirmed exploitation in CISA's KEV catalog so far. Its EPSS score estimates a 0.2% probability of exploitation in the next 30 days.
What is the CVSS score of CVE-2026-126365?
CVE-2026-126365 has a CVSS 3.1 base score of 5.4 (medium).
Which versions are affected?
Withastro Astro (< 7.4.3), Astrojs Prism (< 4.1.2), Astrojs Markdoc (>= 0.3.0, < 2.1.2)
Is there a patch for CVE-2026-126365?
The official record links to vendor advisories or patches; see “What to do” above.
References
Data: NVD, CVE.org (cvelistV5), CISA KEV and FIRST EPSS. Summary written by RedCVE with AI assistance from the official data.