Quick answers
- Is CVE-2026-59948 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2026-59948 being exploited in the wild.
- How severe is CVE-2026-59948?
- High severity, with a CVSS score of 7, published 8 July 2026.
- Which products and versions are affected?
- Composer (Packagist) >= 1.0, < 2.2.29; >= 2.3.0, < 2.10.2, >= 1.0.0, < 2.2.29; >= 2.3.0, < 2.10.2; composer/composer (Packagist) ECOSYSTEM:introduced=2.3.0,fixed=2.10.2.
- Is there a fix for CVE-2026-59948?
- Yes. composer/composer (Packagist): upgrade to 2.10.2 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2026-59948 attacked?
- It is attacked with local access, in a software library.
- Am I affected by CVE-2026-59948?
- Check whether you run Composer (Packagist) or composer/composer (Packagist) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
How to fix
- composer/composer (Packagist): upgrade to 2.10.2 or later
composer require composer/composer:^2.10.2
Technical details
Composer fails to properly validate package names during dependency resolution when using third-party repositories. An attacker can publish a package with a specially crafted name (utilizing path traversal or invalid characters) that causes Composer to write files outside the intended 'vendor/' directory during 'install' or 'update' operations. This vulnerability, classified under CWE-22 and CWE-787, allows for the creation or overwriting of arbitrary files, such as cron jobs or SSH authorized_keys, leading to code execution. The issue is fixed in versions 2.2.29 and 2.10.2 by implementing strict validation of package names before any disk writes occur.
Affected products
- Composer composer/composer >= 1.0.0, < 2.2.29; >= 2.3.0, < 2.10.2
Identifiers
- CVE-2026-59948
- GHSA-499r-g7pc-vmp9
Timeline
- 2026-07-01: disclosed: Initial disclosure by Seldaek
- 2026-07-08: advisory: NVD publication
- 2026-07-20: patched: GitHub Advisory reviewed and updated with patched versions