{"answers":{"affected":"2 open source packages ship an affected version, including textract. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-26831 exists.","fix":"No fix has been published for CVE-2026-26831 yet. Limit exposure of the affected software until one is available.","what":"CVE-2026-26831 is a critical command injection vulnerability in n/a, published on 25 Mar 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-26831 and fix it if it is affected.\n\nWhat it is: CVE-2026-26831 is a critical command injection vulnerability in n/a, published on 25 Mar 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-26831 exists.\n\nAffected packages and fixed versions:\n- textract (npm): affected all versions up to 2.5.0; no fix listed\n- textract (npm): affected all versions up to 2.5.0; no fix listed\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-26831/ (Markdown: https://insights.sbomify.com/CVE-2026-26831/index.md)","id":"CVE-2026-26831","markdown":"https://insights.sbomify.com/CVE-2026-26831/index.md","name":"CVE-2026-26831","record":{"aliases":["GHSA-9pcj-m5rr-p28g"],"analysis":{"component_type":"library","fix_type":"patch","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Node.js text extraction library","requires_auth":"none","summary":"Attackers can execute arbitrary OS commands by providing malicious filenames to the textract library's file extraction functions.","user_interaction":"not_required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"textract","vendor":"dbashford"}],"cvss":{"score":9.8,"severity":"critical","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"},{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"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","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":"2026-03-24","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2026-03-24T16:15:15Z","kind":"github_poc","ref":"https://github.com/zebbernCVE/CVE-2026-26831","stars":0,"title":"Advisory for textract ⌯⌲ 15 000 weekly downloads"}],"tier":"weaponised"},"has_fix":false,"headline":"textract is vulnerable to OS Command Injection","id":"CVE-2026-26831","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"command_injection","year":"2026"},"n_packages":2,"n_references":6,"next":{"headline":"node-tesseract-ocr is vulnerable to OS Command Injection through unsanitized recognize() function parameter","id":"CVE-2026-26832"},"packages":[{"ecosystem":"npm","fixed":[],"introduced":["0"],"last_affected":["2.5.0"],"package":"textract","purl":null,"source":"GHSA-9pcj-m5rr-p28g"},{"ecosystem":"npm","fixed":[],"introduced":["0"],"last_affected":["2.5.0"],"package":"textract","purl":"pkg:npm/textract","source":"GHSA-9pcj-m5rr-p28g"}],"prev":{"headline":"pdf-image has an OS Command Injection Vulnerability through its pdfFilePath parameter","id":"CVE-2026-26830"},"products":["n/a"],"published":"2026-03-25","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-03-28","vendors":["n/a"]},"summary":"Attackers can execute arbitrary OS commands by providing malicious filenames to the textract library's file extraction functions.","url":"https://insights.sbomify.com/CVE-2026-26831/"}