NIST deprecates RSA-2048 from 2030. Find every one of them before attackers do.
🐘
🐘 Packagist
Not in CISA KEV
MEDIUM severity

CVE-2026-65973 — laradocs

MEDIUMFix: PeteBishwhip/laradocs@100cb1e

CVE-2026-65973 is a medium-severity (CVSS 6.4) OS Command Injection vulnerability in petebishwhip/laradocs. A fix is available for petebishwhip/laradocs — see the affected versions and patch details below.

Laradocs: Command injection via unescaped Node.js binary path in KaTeX SSR

Also known asGHSA-h746-qpxh-ph7g
Published
Updated
Affected
1 pkg
Patched
1 / 1
Exploits
None indexed
Exploitation data as of Nov 24, 2026 · OSV.dev, NVD, FIRST.org (EPSS)

Exploitation Status

No confirmed exploitation observed yet

  • A successful exploit gives an attacker total control of the affected component, not partial access.
  • CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.

Exploitation and automatability from CISA’s SSVC triage for CVE-2026-65973.

EPSS Exploitation Probability

via FIRST.org ↗
0.5%probability of exploitation in next 30 days
Lower Risk0.00%
Lower risk than most CVEs41th percentile — riskier than 41% of all scored CVEsHighest risk

Probability of exploitation in the next 30 days, from FIRST.org EPSS.

How urgent is this, really

Where this sits among everything scored

Real-World Exposure

1 pkg affected
🐘petebishwhip/laradocs

Real-time download stats are indexed for npm and PyPI packages. This vulnerability affects Packagist packages — download data is not available via public APIs for these ecosystems.

Description

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:

$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 vulnerable code path under normal operation.

Patch

The Node binary argument is now passed through escapeshellarg() like the other command components:

$cmd = escapeshellarg($node) . ' ' . escapeshellarg($tmpFile) . ' ' . escapeshellarg($input);

Credit

Reported via automated security scanning (Aikido).

Affected Packages

1 total 1 fixed
EcosystemPackageVulnerable rangeFix
🐘Packagistpetebishwhip/laradocs≥ 0.4.0&&< 1.0.01.0.0composer require petebishwhip/laradocs:^1.0.0

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for petebishwhip/laradocs, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.

  2. Fix

    Update petebishwhip/laradocs to 1.0.0 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2026-65973 is resolved across your whole dependency graph.

  3. Workarounds

    Stop passing untrusted input into the interpreter or shell: call the affected binary with an argument array rather than a composed command string, reject anything outside a strict allowlist of expected values, and run the component under an account that cannot reach beyond the work it legitimately does.

Frequently Asked Questions

### 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'
O3 Security · Impact-Aware SCA

Is CVE-2026-65973 in your dependencies?

Find it across Packagist, including transitive dependencies.

CVE-2026-65973: laradocs RCE — Fixed in 1.0.0