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.
Published: 2026-06-16
Score: 8.6 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Yeoman Environment provides a programmatic way to discover, create, and run generators. Between versions 2.9.0 and 6.0.0 the installLocalGenerators() method installs missing local generator packages based on caller‑supplied names without prompting the user. When a downstream consumer injects attacker‑controlled project configuration, the missing generator is fetched and installed automatically, allowing the attacker to execute arbitrary code during the command‑line bootstrap process. This flaw is associated with CWE‑829 (External Control of System or Configuration) and CWE‑426 (Untrusted Search Path). The consequence is that an attacker who can influence the project configuration can gain the same privileges as the user running the Yeoman CLI, potentially compromising the development environment.

Affected Systems

The vulnerability exists in yeoman:environment releases from 2.9.0 through 6.0.0. Any installation of those versions that is used by projects with untrusted configuration is affected. Versions prior to 2.9.0 are not known to be impacted; the issue was fixed in 6.0.0.

Risk and Exploitability

The CVSS score of 8.6 classifies the flaw as high severity. The EPSS score of <1% indicates a low current probability of exploitation, and the vulnerability is not listed in CISA's KEV catalog. Nevertheless, the attack vector is likely available in environments where developer machines or build pipelines automatically bootstrap Yeoman projects using untrusted configuration data. An attacker could supply a malicious package name that will be installed on the target system, leading to execution of arbitrary code with the user’s rights. The flaw is also identified as CWE‑426 (Untrusted Search Path) and CWE‑829, and is mitigated by upgrading to 6.0.0 and/or preventing unevaluated project configuration from reaching the vulnerable API.

Generated by OpenCVE AI on June 23, 2026 at 13:37 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade yeoman-environment to version 6.0.0 or later.
  • Validate and sanitize all project configuration data before passing it to Yeoman, ensuring that only trusted generator names are forwarded.
  • Apply stricter controls such as disabling automatic local package installation or enforcing a signed or whitelisted generator list, if the environment allows.

Generated by OpenCVE AI on June 23, 2026 at 13:37 UTC.

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

Tue, 23 Jun 2026 21:30:00 +0000

Type Values Removed Values Added
First Time appeared Yeoman
Yeoman environment
Vendors & Products Yeoman
Yeoman environment

Tue, 23 Jun 2026 12:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-426
References
Metrics threat_severity

None

threat_severity

Important


Tue, 16 Jun 2026 18:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Tue, 16 Jun 2026 16:45:00 +0000

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'}


Subscriptions

Yeoman Environment
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-06-16T17:24:07.061Z

Reserved: 2026-04-23T19:17:30.566Z

Link: CVE-2026-42089

cve-icon Vulnrichment

Updated: 2026-06-16T17:24:01.019Z

cve-icon NVD

Status : Deferred

Published: 2026-06-16T17:16:40.740

Modified: 2026-06-16T17:35:00.803

Link: CVE-2026-42089

cve-icon Redhat

Severity : Important

Publid Date: 2026-06-16T16:15:04Z

Links: CVE-2026-42089 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-06-23T21:05:12Z

Weaknesses
  • CWE-426

    Untrusted Search Path

  • CWE-829

    Inclusion of Functionality from Untrusted Control Sphere