CVE-2026-42089: yeoman-environment Vulnerable to Arbitrary Package Installation without User Confirmation
Impact
yeoman-environment versions >= 2.9.0 and < 6.0.1 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.
Patches
Upgrade to yeoman-environment 6.0.1, which adds an interactive confirmation prompt before installation (PR #753).
Workarounds
None.
Resources
- Fix commit 78d2af7
Other sources
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.
— MITRE
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
npm/yeoman-environmentto a version that resolves this vulnerability.Fixed in 6.0.1 - Upgrade
Upgrade
yeoman-environmentto a version that resolves this vulnerability.Fixed in 6.0.1Patch 78d2af7
Event History
Frequently Asked Questions
What is the CVE-2026-42089 vulnerability?
CVE-2026-42089 is a high severity vulnerability in `yeoman-environment` that allows installation of arbitrary local generator packages without user confirmation, leading to potential exploitation.
What is the severity of CVE-2026-42089?
The severity of CVE-2026-42089 is rated as high, with a score of 8.6 according to the CVSS metrics.
How do I fix CVE-2026-42089?
To fix CVE-2026-42089, upgrade to `yeoman-environment` version 6.0.1 or later which addresses this vulnerability.
Which versions of `yeoman-environment` are affected by CVE-2026-42089?
CVE-2026-42089 affects `yeoman-environment` versions greater than or equal to 2.9.0 and less than 6.0.1.
What are the implications of CVE-2026-42089 for developers using `yeoman-environment`?
Developers using vulnerable versions of `yeoman-environment` may unintentionally install malicious packages that could compromise their project and environment.