PatchSiren

PatchSiren cyber security CVE debrief

CVE-2026-110638 zepspaiva CVE debrief

A critical vulnerability exists in doc-recog, a Node.js package for document recognition, versions up to and including 1.1.6. The vulnerability is an OS command injection issue via the DocData._readPDF file path. Attackers can exploit this by providing crafted document paths to the recog() or tag() functions, embedding $(...) or backtick command substitution in the file path. This allows the execution of commands with Node.js process privileges.

Vendor
zepspaiva
Product
doc-recog
CVSS
CRITICAL 9.3
CISA KEV
Not listed in stored evidence
Original CVE published
2026-10-14
Original CVE updated
2026-10-16
Advisory published
2026-10-14
Advisory updated
2026-10-16

Who should care

Node.js developers and administrators using the doc-recog package, especially those who handle document processing or use the recog() or tag() functions, should assess their exposure and prioritize updating to a secure version of the package.

Why it matters

CVE-2026-110638 is a critical OS command injection vulnerability in the doc-recog package. It allows attackers to execute commands by providing crafted document paths. Node.js developers and administrators should assess exposure, prioritize updates, and review input validation to prevent exploitation.

  • Potential for attackers to execute arbitrary commands with Node.js process privileges.
  • Possible disruption of document processing services.
  • Need for immediate update or patching of the doc-recog package.
  • Requirement for review of input validation and sanitization for recog() and tag() functions.

Technical summary

The doc-recog package, used for document recognition in Node.js, is vulnerable to an OS command injection attack. This occurs because the package uses a shell-based pdftotext exec call in the DocData._readPDF function, allowing an attacker to execute commands by providing a crafted file path. The vulnerability is present in versions up to and including 1.1.6. Node.js developers and administrators should assess exposure, prioritize updates, and review input validation to prevent exploitation. Affected product deployments should be identified and owners assigned for follow-up.

Defensive priority

High priority should be given to updating doc-recog to a version beyond 1.1.6, as the package's use of shell-based pdftotext exec calls makes it vulnerable to command injection.

Recommended defensive actions

  • Update doc-recog to a version beyond 1.1.6.
  • Review and restrict input to recog() and tag() functions to prevent command injection.
  • Implement additional monitoring for suspicious activity related to doc-recog usage.
  • Review compensating controls for exposed systems while remediation is scheduled and verified.
  • Check relevant monitoring, detection, and logs for exposed assets that need extra review.
  • Track exceptions, retest remediated assets, and close the item only after evidence is documented.
  • Confirm whether affected product deployments exist in managed environments and assign an owner for follow-up.

Evidence notes

The CVE record and associated source item provide details on the vulnerability, including its existence in doc-recog versions up to 1.1.6 and the potential for command injection through crafted document paths.

Sources and references

Verified primary and authoritative sources

  • CVE-2026-110638 CVE Program record

    Publisher, destination, and source semantics verified

    URL: https://www.cve.org/CVERecord?id=CVE-2026-110638

    CVE Program - Official CVE Program record with source-provided CVE metadata.

  • CVE-2026-110638 NVD vulnerability detail

    Publisher, destination, and source semantics verified

    URL: https://nvd.nist.gov/vuln/detail/CVE-2026-110638

    NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.

Supplemental references

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

    Unverified legacy reference

    URL: https://raw.githubusercontent.com/CVEProject/cvelistV5/main/cves/2026/110xxx/CVE-2026-110638.json

    cve_program_cvelist_v5

  • Source reference

    Unverified legacy reference

    URL: https://github.com/zepspaiva/doc-recog/pull/2

    Supplemental source - issue-tracking, patch

  • Source reference

    Unverified legacy reference

    URL: https://github.com/zepspaiva/doc-recog/blob/96d31957fbc2a31f1d739e2d64e5c85a05f688ec/docdata.js

    Supplemental source - technical-description

  • Source reference

    Unverified legacy reference

    URL: https://github.com/zepspaiva/doc-recog

    Supplemental source - product

  • Source reference

    Unverified legacy reference

    URL: https://www.vulncheck.com/advisories/doc-recog-through-1.1.6-os-command-injection-via-docdata-readpdf-file-path

    Supplemental source - third-party-advisory

Methodology and review provenance

AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.