CVE Explorer
CVE-2026-39245
decompress before 4.2.2 contains an improper path containment check that enables directory traversal and arbitrary file write. The safeMakeDir function (index.js line 29) and the extraction path validation (index.js line 106) use String.indexOf() to verify the resolved path is within the output directory: realDestinationDir.indexOf(realOutputPath) !== 0. This check is flawed because it does not enforce a path separator boundary. For example, "/tmp/app_config".indexOf("/tmp/app") returns 0, incor
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
1
Preserved source conflicts
No provider value was silently selected as the winner.
cwe · 2 assertions
{"description":"n/a","lang":"en","type":"text"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:048aed372146a4be9907b283070dc3a8016303223e12b3325da51b277a6d79bf · sha256:ff1c73460b781e5c… · /containers/cna/problemTypes/0/descriptions/0
{"cweId":"CWE-22","description":"CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:048aed372146a4be9907b283070dc3a8016303223e12b3325da51b277a6d79bf · sha256:ff1c73460b781e5c… · /containers/adp/0/problemTypes/0/descriptions/0
Affected products and versions
1 source assertion{"product":"n/a","vendor":"n/a","versions":[{"status":"affected","version":"n/a"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:048aed372146a4be9907b283070dc3a8016303223e12b3325da51b277a6d79bf · sha256:ff1c73460b781e5c… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"LOW","attackVector":"LOCAL","availabilityImpact":"NONE","baseScore":6.2,"baseSeverity":"MEDIUM","confidentialityImpact":"NONE","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","version":"3.1"},"metric_type":"cvssV3_1"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:048aed372146a4be9907b283070dc3a8016303223e12b3325da51b277a6d79bf · sha256:ff1c73460b781e5c… · /containers/adp/0/metrics/0/cvssV3_1
CWE assertions
2 source assertions{"description":"n/a","lang":"en","type":"text"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:048aed372146a4be9907b283070dc3a8016303223e12b3325da51b277a6d79bf · sha256:ff1c73460b781e5c… · /containers/cna/problemTypes/0/descriptions/0
{"cweId":"CWE-22","description":"CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:048aed372146a4be9907b283070dc3a8016303223e12b3325da51b277a6d79bf · sha256:ff1c73460b781e5c… · /containers/adp/0/problemTypes/0/descriptions/0
Source references
5 source assertions{"url":"https://github.com/kevva/decompress"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:048aed372146a4be9907b283070dc3a8016303223e12b3325da51b277a6d79bf · sha256:ff1c73460b781e5c… · /containers/cna/references/0
{"url":"https://github.com/kevva/decompress/issues/115"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:048aed372146a4be9907b283070dc3a8016303223e12b3325da51b277a6d79bf · sha256:ff1c73460b781e5c… · /containers/cna/references/3
{"tags":["exploit"],"url":"https://github.com/kevva/decompress/issues/115"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:048aed372146a4be9907b283070dc3a8016303223e12b3325da51b277a6d79bf · sha256:ff1c73460b781e5c… · /containers/adp/0/references/0
{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-12265"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:048aed372146a4be9907b283070dc3a8016303223e12b3325da51b277a6d79bf · sha256:ff1c73460b781e5c… · /containers/cna/references/2
{"url":"https://www.npmjs.com/package/decompress"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:048aed372146a4be9907b283070dc3a8016303223e12b3325da51b277a6d79bf · sha256:ff1c73460b781e5c… · /containers/cna/references/1
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.