CVE-2026-26831CRITICAL 9.8EPSS p82.0%

CVE-2026-26831CVE-2026-26831

Description

textract through 2.5.0 is vulnerable to OS Command Injection via the file path parameter in multiple extractors. When processing files with malicious filenames, the filePath is passed directly to child_process.exec() in lib/extractors/doc.js, rtf.js, dxf.js, images.js, and lib/util.js with inadequate sanitization

Scoring

CVSS 3.19.8 (CRITICAL)
VectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS2.42% probability of exploitation · percentile 82.0% · 2026-06-18T12:00:27Z
Published2026-03-25
Last modified2026-03-30

Underlying weaknesses· 2

CWE-78CWE-94

References

  1. https://github.com/dbashford/textract
  2. https://github.com/dbashford/textract/blob/master/lib/extractors/doc.js
  3. https://github.com/dbashford/textract/blob/master/lib/extractors/rtf.js
  4. https://github.com/dbashford/textract/blob/master/lib/util.js
  5. https://github.com/zebbernCVE/CVE-2026-26831
  6. https://www.npmjs.com/package/textract

2

TypeTargetConfidenceTier
WeaknessImproper Neutralization of Special Elements used in an OS Command ('OS Command Injection')cwe-780%live
WeaknessImproper Control of Generation of Code ('Code Injection')cwe-940%live

Related by meaning· 6

Nearest entities by semantic similarity across the cs-graph corpus.

CVE
CVE-2026-26832
CVE
CVE-2026-26830
CVE
CVE-2026-26833
CVE
CVE-2025-63705
CVE
CVE-2026-33277
CVE
CVE-2025-26525
Sourced from NVD + FIRST.org EPSS. Curated for EU compliance use cases by Adam Lundqvist, Founder at SQUR.