CVE-2026-65973: laradocs Command injection via unescaped Node.js binary path in KaTeX SSR
Published 2026-11-25 · Updated 2026-11-25 · Also known as GHSA-h746-qpxh-ph7g
Summary
A command injection vulnerability exists in laradocs due to an unescaped Node.js binary path used in server-side KaTeX rendering via `proc_open()`. Engineering and security teams using laradocs versions 0.4.0 up to 1.0.0 with server-side KaTeX rendering enabled should upgrade immediately.
Who is affected
When server-side rendering (SSR) is explicitly enabled, laradocs invokes Node via `proc_open()` with a command string where the Node binary argument is not wrapped in `escapeshellarg()`. Exploitation requires SSR to be turned on along with an untrusted party controlling `laradocs.parser.katex.node_bin` or the process `PATH`. Because this default SSR path ships disabled and the attack vector requires prior high-privilege control, the actual impact is low under normal operations.
Exploitability
The vulnerability carries a CVSS base score of 6.4 (MEDIUM) with a vector of CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H, indicating local attack vector requirements with high attack complexity and high privileges required. It currently has an EPSS score of 0.006 (44.6th percentile) and is not listed in the CISA Known Exploited Vulnerabilities catalog.
Remediation
- Upgrade the Packagist petebishwhip/laradocs package to version 1.0.0 or later.
- Verify that the fixed commit 100cb1e is applied or that the Node binary argument uses escapeshellarg().
How to check your project
- Check composer.lock or composer.json for petebishwhip/laradocs versions falling in the range >= 0.4.0 and < 1.0.0.
- Inspect application configuration files to determine if laradocs.parser.katex.ssr is enabled.
Automated analysis of the published advisory data, generated 2026-11-25. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| Packagist | petebishwhip/laradocs |
>= 0.4.0, < 1.0.0 | 1.0.0 | composer require "petebishwhip/laradocs:>=1.0.0" |
CVSS 3.1 vector
CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H
| Attack vector | Local |
|---|---|
| Attack complexity | High |
| Privileges required | High |
| User interaction | None |
| Scope | Unchanged |
| Confidentiality | High |
| Integrity | High |
| Availability | High |
FAQ
What causes CVE-2026-65973?
It is caused by an unescaped Node.js binary path passed to a `proc_open()` command string during server-side KaTeX rendering in laradocs.
Is remote code execution possible without prior privileges?
No. Exploitation requires local access conditions where an untrusted party already controls either the `laradocs.parser.katex.node_bin` configuration or the execution process `PATH`, alongside having SSR enabled.
What is the fixed version for laradocs?
Version 1.0.0 (fixed in commit 100cb1e).
Original advisory description
References
- WEB https://github.com/PeteBishwhip/laradocs/security/advisories/GHSA-h746-qpxh-ph7g
- ADVISORY https://nvd.nist.gov/vuln/detail/CVE-2026-65973
- WEB https://github.com/PeteBishwhip/laradocs/commit/100cb1e83920b8d3c9d8d53f98712df80df99435
- PACKAGE https://github.com/PeteBishwhip/laradocs
- WEB https://github.com/PeteBishwhip/laradocs/releases/tag/v1.0.0
Source records: GHSA-h746-qpxh-ph7g (OSV.dev) · EPSS by FIRST, 2026-11-25.