{"id":"GHSA-vv9j-gjw2-j8wp","revision":"5e866e2bbe8e488d97df945be610acf0","records":[{"revision":"5e866e2bbe8e488d97df945be610acf0","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-vv9j-gjw2-j8wp","aliases":["CVE-2026-42089"],"title":"yeoman-environment Vulnerable to Arbitrary Package Installation without User Confirmation","description":"### Impact\n\n`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.\n\nThe vulnerable method is `installLocalGenerators()`, which calls `repository.install()` directly without prompting the user.\n\n### Patches\n\nUpgrade to `yeoman-environment` `6.0.1`, which adds an interactive confirmation prompt before installation ([PR #753](https://github.com/yeoman/environment/pull/753)).\n\n### Workarounds\n\nNone.\n\n### Resources\n\n- [Fix commit 78d2af7](https://github.com/yeoman/environment/commit/78d2af7e60294784b8a8b3b3b5099c6874b6a1fa)","state":0,"publishedAt":"2026-05-26T23:10:38+00:00","modifiedAt":"2026-07-08T17:45:16.5882788+00:00","affected":[{"ecosystem":"npm","name":"yeoman-environment","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"2.9.0"},{"kind":"fixed","version":"6.0.1"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"HIGH"}],"references":["https://github.com/yeoman/environment/security/advisories/GHSA-vv9j-gjw2-j8wp","https://nvd.nist.gov/vuln/detail/CVE-2026-42089","https://github.com/yeoman/environment/pull/753","https://github.com/yeoman/environment/commit/78d2af7e60294784b8a8b3b3b5099c6874b6a1fa","https://github.com/yeoman/environment"],"sourceUrl":"https://github.com/advisories/GHSA-vv9j-gjw2-j8wp","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-vv9j-gjw2-j8wp","identifiers":["GHSA-vv9j-gjw2-j8wp","CVE-2026-42089"]},"retained":false,"historicalAffected":[]}],"coverage":[]}