Live threats

All CVEs / composer

CVE-2026-59948composer

High 7.0

Priority
42
CVSS 3.1
7.0
EPSS
—
Auth required
Yes
Published
Jul 8, 2026
Updated
Jul 10, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-22, CWE-787
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: total
Vector
CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H

What happens

Composer is a dependency Manager for the PHP language. Prior to 2.2.29 and 2.10.2, a maliciously crafted package from an untrusted repository other than Packagist.org or Private Packagist can cause Composer to write attacker-controlled files outside the vendor directory and outside the project during install or update by using an invalid package name that is not correctly validated before dependency-resolution results are written or installed. This issue is fixed in versions 2.2.29 and 2.10.2.

Original NVD text.

What to do

  1. Apply the vendor's security update for composer.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Packagist composer/composer ≥ 2.3.0 < 2.10.2 2.10.2 composer require "composer/composer:^2.10.2"
Packagist composer/composer ≥ 1.0.0 < 2.2.29 2.2.29 composer require "composer/composer:^2.2.29"

Per OSV / GitHub Advisories (GHSA-499r-g7pc-vmp9). Check the version in your lockfile before upgrading.

Affected products

As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.

Official advisories

Also: SUSE (+4)

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.