{"id":"CVE-2026-42089","aliases":["CLSA-2026-1789069708","EUVD-2026-37131","GHSA-vv9j-gjw2-j8wp"],"status":"published","title":"yeoman-environment Vulnerable to Arbitrary Package Installation without User Confirmation","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.","severity":{"version":"3.1","score":8.6,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-11","score":0.00172,"percentile":0.0672,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":true,"fix_available":true},"cwes":["CWE-829"],"published":"2026-05-26T23:10:38Z","modified":"2026-10-30T19:46:00Z","exploits":[{"source":"pocgithub","id":"0xmrma/CVE-2026-42089","title":"0xmrma/CVE-2026-42089","date":"2026-06-26","url":"https://github.com/0xmrma/CVE-2026-42089"}],"fixes":[{"ecosystem":"npm","package":"yeoman-environment","fixed_in":["6.0.1"],"sources":["ghsa","osv"]},{"ecosystem":"TuxCare:npm","package":"yeoman-environment","fixed_in":["3.19.3-tuxcare.1"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"yeoman-environment","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.9.0"},{"fixed":"6.0.1"}]}]},{"source":"osv","ecosystem":"TuxCare:npm","package":"yeoman-environment","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.19.3-tuxcare.0"},{"fixed":"3.19.3-tuxcare.1"}]}],"versions":["3.19.3"]},{"source":"osv","ecosystem":"npm","package":"yeoman-environment","ranges":[{"type":"SEMVER","events":[{"introduced":"2.9.0"},{"fixed":"6.0.1"}]}]}],"products":[{"vendor":"yeoman","product":"environment"}],"references":[{"url":"https://github.com/yeoman/environment/security/advisories/GHSA-vv9j-gjw2-j8wp","tags":["x_refsource_CONFIRM","advisory","web"]},{"url":"https://github.com/yeoman/environment/pull/753","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/yeoman/environment/commit/78d2af7e60294784b8a8b3b3b5099c6874b6a1fa","tags":["x_refsource_MISC","fix","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-42089","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-vv9j-gjw2-j8wp"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/42xxx/CVE-2026-42089.json","tags":["advisory"]},{"url":"https://github.com/yeoman/environment","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2026-42089","title":"yeoman-environment Vulnerable to Arbitrary Package Installation without User Confirmation","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.","status":"published","published":"2026-06-16T16:15:04.499Z","modified":"2026-06-16T17:24:07.061Z","cvss":[{"version":"3.1","score":8.6,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","level":"high","assessor":"cna"}],"cwes":["CWE-829"],"updated_at":"2026-11-02T13:40:35.004553Z"}],"euvd":[{"id":"EUVD-2026-37131","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.","status":"published","published":"2026-06-16T16:15:04Z","modified":"2026-06-16T17:24:07Z","cvss":[{"version":"3.1","score":8.6,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T18:20:40.24472Z"}],"ghsa":[{"id":"GHSA-vv9j-gjw2-j8wp","title":"yeoman-environment Vulnerable to Arbitrary Package Installation without User Confirmation","description":"### Impact\n\n`yeoman-environment` versions `\u003e= 2.9.0` and `\u003c 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)","status":"published","published":"2026-05-26T23:10:38Z","modified":"2026-07-08T17:36:50Z","cvss":[{"version":"3.1","score":8.6,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-829"],"updated_at":"2026-11-02T14:40:40.389795Z"}],"nvd":[{"id":"CVE-2026-42089","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.","status":"published","published":"2026-06-16T17:16:40.74Z","modified":"2026-10-25T23:10:00.167Z","cvss":[{"version":"3.1","score":8.6,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","level":"high","assessor":"secondary"}],"cwes":["CWE-829"],"updated_at":"2026-11-02T14:12:24.19758Z"}],"osv":[{"id":"CVE-2026-42089","title":"yeoman-environment Vulnerable to Arbitrary Package Installation without User Confirmation","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.","status":"published","published":"2026-06-16T16:15:04.499Z","modified":"2026-10-28T02:31:12.299827522Z","cvss":[{"version":"3.1","score":8.6,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-829"],"updated_at":"2026-11-02T15:45:04.117819Z"},{"id":"GHSA-vv9j-gjw2-j8wp","title":"yeoman-environment Vulnerable to Arbitrary Package Installation without User Confirmation","description":"### Impact\n\n`yeoman-environment` versions `\u003e= 2.9.0` and `\u003c 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)","status":"published","published":"2026-05-26T23:10:38Z","modified":"2026-07-08T17:45:16.588278765Z","cvss":[{"version":"3.1","score":8.6,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-829"],"updated_at":"2026-11-02T15:46:57.694388Z"},{"id":"CLSA-2026-1789069708","title":"TuxCare security update for yeoman-environment (1 CVE)","description":"TuxCare rebuilt yeoman-environment to address 1 CVE. Fixed in 3.19.3-tuxcare.1.","status":"published","published":"2026-09-10T19:48:28Z","modified":"2026-10-30T19:46:00.589535447Z","updated_at":"2026-11-02T15:43:47.938828Z"}]}}
