Packagist
CVE-2026-65973
laradocs Command injection via unescaped Node.js binary path in KaTeX SSR
- Severity
- Medium 6.4
- Published
- 25 Nov 2026
- Last changed
- 25 Nov 2026
- Added to UpHeron
- 25 Nov 2026
- Fixed in
- 1.0.0
- Weakness
- OS command injection (CWE-78)
- Attack
- Needs local access · Only under certain conditions · Needs an administrator account · No user action needed
- Attacker can
- Read data · Change data · Take it down
- CVSS vector
CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H- Also known as
- GHSA-h746-qpxh-ph7g
- Sources
- OSV.dev and GitHub
Description
Local command injection (CWE-78) in server-side KaTeX rendering via an unescaped Node.js binary path in a proc_open() command string.
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:
$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.
Affected software
| Software | Affected versions |
|---|---|
petebishwhip/laradocsPackagist · osv:Packagist:petebishwhip/laradocs |
|
About petebishwhip/laradocs
- Monthly downloads (Packagist)
- 35,442Packagist, 25 Nov 2026
- Total downloads (Packagist)
- 107,531Packagist, 25 Nov 2026
This is the only vulnerability in petebishwhip/laradocs in our list.
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-65973
- GitHub Advisory Database https://github.com/advisories/GHSA-h746-qpxh-ph7g