CVE-2026-42089

yeoman-environment Vulnerable to Arbitrary Package Installation without User Confirmation

Published Jun 16, 2026 CVSS 3.1 · 8.6 High EPSS < 1% KEV · Not listed
Description
Yeoman Environment provides an API to discover, create, and run generators, and to configure where and how a generator is resolved. Versions 2.9.0 through 6.0.0 install missing local generator packages from caller-supplied package names without user confirmation. In downstream consumers that pass attacker-controlled project configuration into this path, this can result in arbitrary package installation and code execution during CLI bootstrap. The vulnerable method is installLocalGenerators(), which calls repository.install() directly without prompting the user. This issue has been fixed in version 6.0.0.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-vv9j-gjw2-j8wp yeoman-environment Vulnerable to Arbitrary Package Installation without User Confirmation
History
Type Values Removed Values Added
First Time appeared Yeoman
Yeoman environment
Vendors & Products Yeoman
Yeoman environment
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description Yeoman Environment provides an API to discover, create, and run generators, and to configure where and how a generator is resolved. Versions 2.9.0 through 6.0.0 install missing local generator packages from caller-supplied package names without user confirmation. In downstream consumers that pass attacker-controlled project configuration into this path, this can result in arbitrary package installation and code execution during CLI bootstrap. The vulnerable method is installLocalGenerators(), which calls repository.install() directly without prompting the user. This issue has been fixed in version 6.0.0.
Title yeoman-environment Vulnerable to Arbitrary Package Installation without User Confirmation
Weaknesses CWE-829
References
Metrics cvssV3_1

{'score': 8.6, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jun 16, 2026, 5:24 PM
Reserved
Apr 23, 2026, 7:17 PM
Status
Deferred
Published
Jun 16, 2026, 5:16 PM
Modified
Oct 25, 2026, 11:10 PM
Severity
Important
Public date
Jun 16, 2026, 4:15 PM