CVE-2026-120203
ShowDoc 2.8.14 before 3.9.6 Code Injection via Mock Templates
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Fuente: CNA
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | CVE-2026-120203 divulgada · CVSS 8.7 (CNA) | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Fuente: NIST NVD | Registro visto por primera vez en NIST NVD | |
| Monitoreo | Fuente: ENISA EUVD | Registro visto por primera vez en ENISA EUVD | |
| Monitoreo | Fuente: OSV | Registro visto por primera vez en OSV | |
| Divulgación | Evaluación SSVC | CISA-ADP · explotación ninguna | |
| Divulgación | Modificada | Última actualización del registro | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
ShowDoc, an open-source API documentation tool, is affected through its Mock feature. An authenticated user can exploit it to run arbitrary shell commands on the server, which in the official Docker image runs with root privileges.
Affects ShowDoc 2.8.14 through 3.9.5 only when the mock service is enabled, which the official full image does by default. No vendor rating is given. Fixed in 3.9.6.
Descripción original del registro (VulnCheck)
ShowDoc 2.8.14 before 3.9.6 contains a code injection vulnerability in its Mock feature that allows authenticated users to execute shell commands through mockjs templates. Attackers can store a template via MockController::add with escaped parentheses that mockjs evaluates with eval(), then trigger it through MockController::infoByKey to run commands, as root in the official Docker image.
Condiciones y alcance
Desglose de métricas
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
showdoc/showdoc |
Corregida | 3.9.6 | — | — |
3.9.6Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://github.com/star7th/showdoc/commit/5a2087a3f408f5266f61e9e2fb98845ef4788288https://gist.github.com/LioTree/028af150fd991cf9924dd2c7d5912e54https://github.com/star7th/showdoc/blob/v3.9.5/mock/index.js#L42https://github.com/star7th/showdochttps://www.vulncheck.com/advisories/showdoc-2.8.14-before-3.9.6-code-injection-via-mock-templatesLas referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
