CVE-2026-23949: jaraco.context · Path Traversal
Affects jaraco.contextSource CVE Database V5
Not known to be exploited · CVSS 8.6 High : upgrade to 6.1.0 soon.
Data as of 26 Oct 2026, 06:26 UTC
- EPSS
- 0.6% chance of exploitation in 30 days – higher than 49% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 6.1.0
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:NExploitation evidence
Disclosed: evidence found.
CVE published 20 Jan 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-26.
What to do
Upgrade jaraco.context and jaraco-context to 6.1.0.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| jaracojaraco.context | Affected
| Fixed in
|
PyPIjaraco-contextpkg:pypi/jaraco-contextOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
European organizations should immediately audit their software dependencies to identify usage of jaraco.context versions >=5.2.0 and <6.1.0. They must upgrade all affected instances to version 6.1.0 or later, where the vulnerability is patched. For environments where immediate upgrade is not feasible, implement strict input validation and sandboxing for tarball processing to prevent extraction outside designated directories. Employ runtime monitoring to detect anomalous file system writes during archive extraction. Additionally, review and restrict permissions of processes handling tarball extraction to minimize potential impact. Incorporate security scanning tools in CI/CD pipelines to detect vulnerable dependencies automatically. Educate developers about safe archive handling practices and the risks of path traversal in archive extraction. Finally, maintain up-to-date inventories of open-source components and apply security patches promptly to reduce exposure.
Description
jaraco.context, an open-source software package that provides some useful decorators and context managers, has a Zip Slip path traversal vulnerability in the `jaraco.context.tarball()` function starting in version 5.2.0 and prior to version 6.1.0. The vulnerability may allow attackers to extract files outside the intended extraction directory when malicious tar archives are processed. The strip_first_component filter splits the path on the first `/` and extracts the second component, while allowing `../` sequences. Paths like `dummy_dir/../../etc/passwd` become `../../etc/passwd`. Note that this suffers from a nested tarball attack as well with multi-level tar files such as `dummy_dir/inner.tar.gz`, where the inner.tar.gz includes a traversal `dummy_dir/../../config/.env` that also gets translated to `../../config/.env`. Version 6.1.0 contains a patch for the issue.
References
- github.com/jaraco/jaraco.context/security/advisories/GHSA-58pv-8j8x-9vj2 (opens in a new tab)
- github.com/jaraco/jaraco.context/commit/7b26a42b525735e4085d2e994e13802ea339d5f9 (opens in a new tab)
- github.com/jaraco/jaraco.context/blob/main/jaraco/context/__init__.py (opens in a new tab)
- github.com/pypa/setuptools/blob/main/setuptools/_vendor/jaraco/context.py (opens in a new tab)