Loading advisory.
Loading advisory.
laradocs Command injection via unescaped Node.js binary path in KaTeX SSR
Local command injection (CWE-78) in server-side KaTeX rendering via an unescaped Node.js binary path in a proc_open() command string.
Published 2026-11-11 21:02 UTC · Modified 2026-11-25 19:45 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score. How tiers work
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| petebishwhip/laradocs | Packagist | >= 0.4.0, < 1.0.0 versions V0.5.1, v0.4.0, v0.5.0, v0.5.2, v0.5.3, v0.6.0, v0.6.1 | 1.0.0 | composer require 'petebishwhip/laradocs:>=1.0.0' |
Local command injection (CWE-78) in server-side KaTeX rendering via an unescaped Node.js binary path in a proc_open() command string.
= 0.4.0, < 1.0.0
= 1.0.0 (fixed in commit
100cb1e)
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:
$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.
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.
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 vulnerable code path under normal operation.
The Node binary argument is now passed through escapeshellarg() like the other command components:
$cmd = escapeshellarg($node) . ' ' . escapeshellarg($tmpFile) . ' ' . escapeshellarg($input);Reported via automated security scanning (Aikido).
No public exploit code known to Helm's sources (Nuclei templates, Metasploit, Exploit-DB and PoC-in-GitHub). That does not mean none exists.
EPSS went from 0.005 on 2026-11-24 to 0.006 on 2026-11-26, over 2 recorded scores.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.005 | first score | v2026.06.15 |
| 2026-11-26 | 0.006 | 0.005 | v2026.06.15 |