{"id":"CVE-2026-42089","published":"2026-06-16T16:15:04Z","modified":"2026-06-16T17:24:07Z","title":"yeoman-environment Vulnerable to Arbitrary Package Installation without User Confirmation","vendor":"yeoman","product":"environment","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.6,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00194,"percentile":0.05227,"provenance":"source"},"cwes":[{"id":"CWE-829","name":"Inclusion of Functionality from Untrusted Control Sphere"}],"references":[{"url":"https://github.com/yeoman/environment/security/advisories/GHSA-vv9j-gjw2-j8wp","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/yeoman/environment/pull/753","tags":["x_refsource_MISC"]},{"url":"https://github.com/yeoman/environment/commit/78d2af7e60294784b8a8b3b3b5099c6874b6a1fa","tags":["x_refsource_MISC"]}],"priority":{"score":12.1,"factors":[{"name":"EPSS percentile","points":1.05},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":6.02}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2026-06-26","earliestUrl":"https://github.com/0xmrma/CVE-2026-42089","repos":[{"name":"0xmrma/CVE-2026-42089","url":"https://github.com/0xmrma/CVE-2026-42089","stars":0,"created":"2026-06-26"}]},"first":{"date":"2026-06-26","source":"PoC-in-GitHub","url":"https://github.com/0xmrma/CVE-2026-42089"},"provenance":"source"},"vendorSlug":"yeoman","affectedVersions":[{"vendor":"yeoman","product":"environment","versions":[">= 2.9.0, < 6.0.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-06-16T17:23:58.864894Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"yeoman-environment","vulnerableRanges":[">=2.9.0, <6.0.1"],"patched":["6.0.1"],"from":["GHSA-vv9j-gjw2-j8wp"],"provenance":"source"}],"summary":{"text":"The yeoman-environment library (the environment API used to discover, create, and run Yeoman generators) contains a flaw in its installLocalGenerators() method, which installs missing local generator packages from caller-supplied package names without asking the user for confirmation. An attacker who can supply project configuration that a downstream consumer passes into this path can cause arbitrary package installation and code execution during CLI bootstrap, which requires local access and user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:11:51Z"},"euvd":{"id":"EUVD-2026-37131","exploited":false,"provenance":"source"}}