Todas las CVE / Markdown-it-highlightjs Project
CVE-2020-7773Markdown-it-highlightjs Project Markdown-it-highlightjs
Media 6.1 Sin autenticación
Seguir: esta CVE · Markdown-it-highlightjs Project · Markdown-it-highlightjs Project Markdown-it-highlightjs Te avisamos por email o Slack (requiere cuenta).
- Prioridad
- 52
- CVSS 3.1
- 6.1
- EPSS
- 1.4% probabilidad de explotación en 30 días · percentil 72
- Requiere autenticación
- No
- Publicada
- 16 nov 2020
- Actualizada
- 17 jun 2026
- Categoría
- Aplicación · Multiplataforma
- Debilidad (CWE)
- CWE-79
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Qué pasa
This affects the package markdown-it-highlightjs before 3.3.1. It is possible insert malicious JavaScript as a value of lang in the markdown-it-highlightjs Inline code highlighting feature. const markdownItHighlightjs = require("markdown-it-highlightjs"); const md = require('markdown-it'); const reuslt_xss = md() .use(markdownItHighlightjs, { inline: true }) .render('console.log(42){.">js}'); console.log(reuslt_xss);
Qué hacer
- Aplica la actualización de seguridad del fabricante para Markdown-it-highlightjs.
- Se explota sin autenticación: si no puedes parchear ya, limita el acceso desde Internet al servicio afectado.
Paquetes afectados
| Ecosistema | Paquete | Versiones afectadas | Corregida en | Cómo actualizar |
|---|---|---|---|---|
| npm | markdown-it-highlightjs |
< 3.3.1 |
3.3.1 |
npm install markdown-it-highlightjs@3.3.1 |
Según OSV / GitHub Advisories (GHSA-f246-xrrj-g8j6). Verifica la versión en tu lockfile antes de actualizar.
Productos afectados (CPE)
| Fabricante | Producto | Versiones |
|---|---|---|
| markdown-it-highlightjs_project | markdown-it-highlightjs | < 3.3.1 |
Fuentes oficiales
Referencias
Enlaces publicados por las fuentes. Ábrelos con criterio.
- github.com Broken Link
- github.com Exploit Third Party Advisory
- snyk.io Mitigation Third Party Advisory