CVE-2026-26831: textract through 2.5.0 is vulnerable to OS Command Injection via the file path parameter in multiple extractor
CVE-2026-26831 is a critical-severity flaw (CVSS 9.8) affecting textract. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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
Why this priority
- Critical severity
- Public exploit reference
- CISA SSVC: automatable with total technical impact
- Remotely exploitable, no login, no user action
A fixed release or distro patch exists.
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Exact fixes by distribution
Public exploits and detection
Public code exists for this CVE. Treat unpatched systems as at risk, and only run PoCs in a lab.
- GitHub PoC: zebbernCVE/CVE-2026-26831 (0 stars)
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2026-26831?
textract: upgrade to newer than 2.5.0. Exact commands for each OS are on this page.
Is CVE-2026-26831 being exploited?
CVE-2026-26831 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2026-26831 affect?
CVE-2026-26831 affects textract. Severity is critical (CVSS 9.8). 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.j
How urgent is CVE-2026-26831?
Priority 68/100. Critical severity; Public exploit reference; CISA SSVC: automatable with total technical impact; Remotely exploitable, no login, no user action