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

Published May 26, 2026
·
Updated

Impact

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.

The vulnerable method is installLocalGenerators(), which calls repository.install() directly without prompting the user.

Patches

Upgrade to yeoman-environment 6.0.1, which adds an interactive confirmation prompt before installation (PR #753).

Workarounds

None.

Resources

- Fix commit 78d2af7

Other sources

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.

MITRE

Affected Software

2 affected componentsFixes available
npm/yeoman-environment>=2.9.0<6.0.1
6.0.1
IBM API Connect<=V10.0.8.0 - V10.0.8.9

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade npm/yeoman-environment to a version that resolves this vulnerability.

    Fixed in 6.0.1
  2. Upgrade

    Upgrade yeoman-environment to a version that resolves this vulnerability.

    Fixed in 6.0.1Patch 78d2af7

Event History

May 26, 2026
Advisory Published
via GitHub·11:10 PM
Data Sourced
via GitHub·11:10 PM
DescriptionSeverityWeaknessAffected Software
Jun 16, 2026
CVE Published
via MITRE·04:15 PM
Data Sourced
via MITRE·04:15 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·05:16 PM
DescriptionSeverityWeakness
Jul 7, 2026
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the CVE-2026-42089 vulnerability?

CVE-2026-42089 is a high severity vulnerability in `yeoman-environment` that allows installation of arbitrary local generator packages without user confirmation, leading to potential exploitation.

2

What is the severity of CVE-2026-42089?

The severity of CVE-2026-42089 is rated as high, with a score of 8.6 according to the CVSS metrics.

3

How do I fix CVE-2026-42089?

To fix CVE-2026-42089, upgrade to `yeoman-environment` version 6.0.1 or later which addresses this vulnerability.

4

Which versions of `yeoman-environment` are affected by CVE-2026-42089?

CVE-2026-42089 affects `yeoman-environment` versions greater than or equal to 2.9.0 and less than 6.0.1.

5

What are the implications of CVE-2026-42089 for developers using `yeoman-environment`?

Developers using vulnerable versions of `yeoman-environment` may unintentionally install malicious packages that could compromise their project and environment.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203