- Accueil
- Vulnérabilités
- CVE-2026-126365
CVE-2026-126365
Astro: XSS via unescaped code for unsupported languages in @astrojs/prism
Résumé
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.
Aucune traduction française : description d’origine affichée.
Produits et versions affectés
@astrojs (2 ligne(s))
withastro (1 ligne(s))
| Produit | Versions | Corrigé dans | Source |
|---|---|---|---|
| astro | Versions non précisées | — | CNA (éditeur ou attributeur) |
Correctif
Non renseigné par l’éditeur.
Contournement
Aucun contournement renseigné.
Savoir si vous êtes touché
Aucune méthode de vérification renseignée.
Chronologie
- — Publication de la CVE (cve)
Références
- https://github.com/withastro/astro/security/advisories/GHSA-ff38-p3qj-4pmfx_refsource_CONFIRM
- https://github.com/withastro/astro/commit/edfbf4ab34ff007ae8f7188af76a023a15c9443dx_refsource_MISC
- https://github.com/withastro/astro/releases/tag/@astrojs/markdoc@2.1.2x_refsource_MISC
- https://github.com/withastro/astro/releases/tag/@astrojs/prism@4.1.2x_refsource_MISC
Provenance des données
- Statut
- NVD
- Date de publication
- NVD
- Description
- CNA (éditeur ou attributeur)
- Score CVSS
- CNA (éditeur ou attributeur)
- Faiblesse (CWE)
- NVD
- Vecteur CVSS
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N(CVSS 3.1, CNA:GitHub_M)- Faiblesse
- CWE-79 · Script intersite (XSS)