AploSec / Disclosures / CVE-2026-110638

ReproducedNo fix listedCWE-78npm

doc-recog through 1.1.6 OS Command Injection via DocData._readPDF File Path

CVE-2026-110638 · published 2026-10-14

Summary

doc-recog through 1.1.6 contains an OS command injection vulnerability that allows attackers to execute commands by supplying crafted document paths to recog() or tag(). Attackers can embed $(...) or backtick command substitution in the file path, which DocData._readPDF passes to a shell-based pdftotext exec call, running commands with Node.js process privileges.

Evidence

The exploit was run against the published artifact from the registry, not the repository. It created a marker file; a benign input through the same sink in the same session did not.

Remediation

No fixed release was published at disclosure. Don't pass untrusted file names or strings to the affected functions, or apply the patch from the fix pull request.

References

Package
doc-recog
Ecosystem
npm
Weekly downloads
6
Affected
<= 1.1.6
Fixed
None
Weakness
CWE-78
CNA
VulnCheck
Credit
Zachariah Mithani