cve.bz

CVE-2026-42089 yeoman environment

8.6 highEPSS 0.2%Fix available

High (8.6) in yeoman environment. EPSS 0.2% estimated probability of exploitation activity in the next 30 days. Fixed in yeoman-environment 6.0.1.

On this page
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

CVSS 3.1

8.6 high
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
EPSS
0.2% (unchanged from 0.2% a week ago; 0.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 7th percentile. Scored 2026-11-24. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2026-06-16. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-829 Inclusion of Functionality from Untrusted Control Sphere
OWASP Top 10
A08:2025 Software or Data Integrity Failures
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

  • yeoman-environment (npm): fixed in 6.0.1

Ask an AI about this CVE

Show the promptExplain CVE-2026-42089 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-42089?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-42089?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-42089 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
yeoman environment>= 2.9.0, < 6.0.1

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-vv9j-gjw2-j8wpnpmyeoman-environment>=2.9.0 <6.0.16.0.1

Red Hat

Red Hat rates this Important.

Red Hat's statement

This is an Important flaw in Yeoman Environment that could lead to arbitrary code execution. The vulnerability arises when downstream consumers process attacker-controlled project configurations, allowing the installation of unconfirmed local generator packages during CLI bootstrap. Exploitation requires user interaction with malicious input, limiting the attack vector to specific development workflows.

Red Hat's mitigation

To mitigate this issue, users should avoid processing project configurations from untrusted sources with Yeoman Environment. Ensure that all project configurations and generator package names are from trusted origins to prevent the installation of arbitrary packages and subsequent code execution.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-42089.

GitHub PoC (unverified)

Repositories on GitHub named after this CVE. Nobody has checked them and they are not scanned: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it.

  • 0xmrma/CVE-2026-42089 0 stars, created
    A local package installation helper trusted caller-supplied package names too much. In yeoman-environment, missing generators could be inst…

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-829 (13).

References

Check your stackJSON