CVE-2026-26831

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
Configurations

Configuration 1 (hide)

cpe:2.3:a:dbashford:textract:*:*:*:*:*:node.js:*:*

History

30 Mar 2026, 13:33

Type Values Removed Values Added
References () https://github.com/dbashford/textract - () https://github.com/dbashford/textract - Product
References () https://github.com/dbashford/textract/blob/master/lib/extractors/doc.js - () https://github.com/dbashford/textract/blob/master/lib/extractors/doc.js - Product
References () https://github.com/dbashford/textract/blob/master/lib/extractors/rtf.js - () https://github.com/dbashford/textract/blob/master/lib/extractors/rtf.js - Product
References () https://github.com/dbashford/textract/blob/master/lib/util.js - () https://github.com/dbashford/textract/blob/master/lib/util.js - Product
References () https://github.com/zebbernCVE/CVE-2026-26831 - () https://github.com/zebbernCVE/CVE-2026-26831 - Exploit, Third Party Advisory
References () https://www.npmjs.com/package/textract - () https://www.npmjs.com/package/textract - Product
CWE CWE-78
First Time Dbashford
Dbashford textract
CPE cpe:2.3:a:dbashford:textract:*:*:*:*:*:node.js:*:*

28 Mar 2026, 02:16

Type Values Removed Values Added
CWE CWE-94
Summary
  • (es) textract hasta la versión 2.5.0 es vulnerable a la Inyección de Comandos del Sistema Operativo a través del parámetro de ruta de archivo en múltiples extractores. Al procesar archivos con nombres de archivo maliciosos, la ruta de archivo (filePath) se pasa directamente a child_process.exec() en lib/extractors/doc.js, rtf.js, dxf.js, images.js y lib/util.js con una sanitización inadecuada.
CVSS v2 : unknown
v3 : unknown
v2 : unknown
v3 : 9.8

25 Mar 2026, 16:16

Type Values Removed Values Added
New CVE

Information

Published : 2026-03-25 16:16

Updated : 2026-03-30 13:33


NVD link : CVE-2026-26831

Mitre link : CVE-2026-26831

CVE.ORG link : CVE-2026-26831


JSON object : View

Products Affected

dbashford

  • textract
CWE
CWE-78

Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

CWE-94

Improper Control of Generation of Code ('Code Injection')