CVE-2026-44705
JavaScript Analisi e mitigazione delle vulnerabilità

Panoramica

CVE-2026-44705 is a path traversal vulnerability (CWE-22) in the tmp npm package (github.com/raszi/node-tmp) that allows attackers to cause files to be created outside the intended temporary directory by embedding traversal sequences (e.g., ../) or path separators in the prefix, postfix, or dir options. All versions prior to 0.2.6 are affected; version 0.2.6 contains the fix. The vulnerability was published on May 26, 2026, and reported by Mapta / BugBunny_ai. It carries a CVSS v4.0 base score of 7.7 (High) (GitHub Advisory).

Dettagli tecnici

The root cause is in tmp's path construction logic (lib/tmp.js), where user-supplied prefix, postfix, and dir options are directly concatenated into file paths without sanitization or containment validation (CWE-22). The filename is built as `${opts.prefix}-${process.pid}-${randomString}-${opts.postfix}` and the final path is computed via path.join(tmpDir, opts.dir, name) — Node.js's path.join() normalizes ../ sequences, allowing directory escape. Additionally, if opts.dir is an absolute path, path.join() ignores tmpDir entirely, enabling a full bypass. The fix in commit efa4a06 adds a _assertPath() check that throws an error if .. is present in prefix, postfix, or template, and corrects the dir containment check to use path.relative() instead of startsWith() (GitHub Advisory, Patch Commit).

Impatto

Successful exploitation allows an attacker to create files at arbitrary, attacker-controlled locations on the filesystem with the privileges of the running Node.js process. This can lead to web application configuration poisoning (malicious config files loaded on restart), cache poisoning across tenants in multi-tenant SaaS environments, compromise of CI/CD build pipelines by placing malicious artifacts in build output directories, and potential cross-tenant data access or privilege escalation. The CVSS v4.0 scoring reflects a high confidentiality impact on the vulnerable system, with potential for significant integrity consequences depending on what files are overwritten or injected (GitHub Advisory).

Mitigazione e soluzioni alternative

Upgrade the tmp npm package to version 0.2.6 or later, which introduces input validation rejecting any prefix, postfix, or template values containing .., and fixes the dir containment check to use path.relative() for robust boundary enforcement (Patch Commit). As an immediate workaround for applications that cannot upgrade, sanitize all user-supplied values before passing them to tmp: use path.basename() on prefix, restrict postfix to alphanumeric characters and safe symbols ([^A-Za-z0-9._-]), and never pass user-controlled data to the dir option. Additionally, add post-construction path validation using path.relative() to confirm the generated path remains within the expected base directory (GitHub Advisory, node-tmp Advisory).

Risorse aggiuntive


FonteQuesto report è stato generato utilizzando l'intelligenza artificiale

Imparentato JavaScript Vulnerabilità:

CVE ID

Severità

Punteggio

Tecnologie

Nome del componente

Exploit CISA KEV

Ha la correzione

Data di pubblicazione

CVE-2026-44494HIGH8.7
  • JavaScriptJavaScript
  • kibana-9.0
NoJun 11, 2026
CVE-2026-44492HIGH8.6
  • JavaScriptJavaScript
  • kibana-9.3
NoJun 11, 2026
CVE-2026-44705HIGH7.7
  • JavaScriptJavaScript
  • wazuh-dashboard
NoJun 11, 2026
CVE-2026-44496HIGH7.5
  • JavaScriptJavaScript
  • openclaw
NoJun 11, 2026
CVE-2026-44495HIGH7
  • JavaScriptJavaScript
  • redisinsight
NoJun 11, 2026

Valutazione gratuita delle vulnerabilità

Benchmark della tua posizione di sicurezza del cloud

Valuta le tue pratiche di sicurezza cloud in 9 domini di sicurezza per confrontare il tuo livello di rischio e identificare le lacune nelle tue difese.

Richiedi valutazione

Richiedi una demo personalizzata

Pronti a vedere Wiz in azione?

"La migliore esperienza utente che abbia mai visto offre piena visibilità ai carichi di lavoro cloud."
David EstlickCISO (CISO)
"Wiz fornisce un unico pannello di controllo per vedere cosa sta succedendo nei nostri ambienti cloud."
Adam FletcherResponsabile della sicurezza
"Sappiamo che se Wiz identifica qualcosa come critico, in realtà lo è."
Greg PoniatowskiResponsabile della gestione delle minacce e delle vulnerabilità