Aviso preliminar: se publicó de inmediato con los datos originales de las fuentes, sin redacción editorial. En breve se reemplaza por una versión redactada y revisada.
Resumen
CVE-2026-65973: vulnerabilidad de severidad media (CVSS 6.4) en petebishwhip/laradocs.
Qué ocurre
Descripción original de la fuente (en inglés): ### Summary Local command injection (CWE-78) in server-side KaTeX rendering via an unescaped Node.js binary path in a `proc_open()` command string. ### Affected versions >= 0.4.0, < 1.0.0 ### Patched versions >= 1.0.0 (fixed in commit `100cb1e`) ### Impact When rendering KaTeX math **server-side**, Laradocs invoked Node via `proc_open()` with a command string in which the Node binary argument was not passed through `escapeshellarg()`. `MarkdownPipelineFactory` constructs `KatexExtension` with the configured binary, which the render path resolved as: ```php $node = $this->nodeBin ?? 'node'; $cmd = $node . ' ' . escapeshellarg($tmpFile) . ' ' . escapeshellarg($input); ``` `$this->nodeBin` comes from `Config::nullableString('laradocs.parser.katex.node_bin')`. Both possible sources — the configured `node_bin` value, or the `'node'` default resolved from `PATH` — are operator-controlled. Neither is derived from untrusted request data or documentation content. The vulnerable branch is reached only when server-side rendering is enabled. The default KaTeX path is client-side (browser-rendered via the configured `js`/`css` assets) and never calls `proc_open()`. SSR is opt-in via `laradocs.parser.katex.ssr`, which ships **disabled**. ### Exploit scenario Exploitation requires SSR to be turned on **and** an untrusted party to control `laradocs.parser.katex.node_bin` or the process `PATH` — a precondition that on its own already implies code execution on the host. ### Severity **Low.** This is best treated as a hardening / defence-in-depth fix rather than a remotely exploitable RCE, since no untrusted input (request data, documentation content, or network input) reaches the vulnerab…
Por qué importa
Severidad media, CVSS 6.4.
Productos y versiones afectados
petebishwhip/laradocs >= 0.4.0, < 1.0.0 (corregido en 1.0.0)
| Producto | Versiones | Corregido en |
|---|---|---|
| petebishwhip/laradocs | >= 0.4.0, < 1.0.0 | 1.0.0 |
Acción recomendada por la fuente
Actualizar a una versión corregida: 1.0.0.
Corregido en: 1.0.0
Fuentes y referencias
- https://github.com/advisories/GHSA-h746-qpxh-ph7g — GHSA
- https://github.com/PeteBishwhip/laradocs/security/advisories/GHSA-h746-qpxh-ph7g — GHSA
- https://nvd.nist.gov/vuln/detail/CVE-2026-65973 — GHSA
- https://github.com/PeteBishwhip/laradocs/commit/100cb1e83920b8d3c9d8d53f98712df80df99435 — GHSA
- https://github.com/PeteBishwhip/laradocs/releases/tag/v1.0.0 — GHSA
- https://github.com/PeteBishwhip/laradocs — OSV
Debilidades (CWE): CWE-78
Historial de cambios relevantes
Publicado
Aviso preliminar publicado.