Vulnerabilities in pkg:npm/yeoman-environment
PACKAGECVE-2026-42089 is a HIGH (CVSS 8.6) yeoman-environment vulnerable to arbitrary package vulnerability (CWE-829: Inclusion of Functionality from Untrusted Control Sphere) affecting Yeoman environment libraries in the npm ecosystem. The issue involves yeoman-environment vulnerable to arbitrary package installation without user confirmation. Remediation is available by upgrading affected packages to version 6.0.1.
pkg:npm/yeoman-environment
Vulnerability advisories affecting package pkg:npm/yeoman-environment. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-vv9j-gjw2-j8wp | CVE-2026-42089 | HIGH | yeoman-environment Vulnerable to Arbitrary Package Installation without User Confirmation |
CVE-2026-42089 at a Glance
Security Impact
CVSS: 8.6
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H).
How to Fix CVE-2026-42089
To remediate this vulnerability, upgrade all affected Yeoman environment dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install yeoman-environment@6.0.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls yeoman-environment
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2026-42089, inspect your project dependencies using npm:
npm ls yeoman-environment
Analyze the terminal output to locate any version of Yeoman environment in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 6.0.1), your application is affected.
Note: The npm ls yeoman-environment command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-829: Inclusion of Functionality from Untrusted Control Sphere, where the product imports, requires, or includes executable functionality (such as a library) from a source that is outside of the intended control sphere. In Yeoman environment, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-42089 Affected Yeoman environment Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
yeoman-environment
|
npm |
≥ 2.9.0
< 6.0.1
|
6.0.1
|
References
Frequently Asked Questions
What is CVE-2026-42089?
Which Yeoman environment versions are affected?
What version fixes CVE-2026-42089?
Is yeoman-environment affected?
What is the CVSS score of CVE-2026-42089?
What CWE is associated with CVE-2026-42089?
How can I check npm dependencies for CVE-2026-42089?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-vv9j-gjw2-j8wp",
"modified" : "2026-07-08T17:36:49Z",
"published" : "2026-05-26T23:10:38Z",
"aliases" : [ "CVE-2026-42089" ],
"summary" : "yeoman-environment Vulnerable to Arbitrary Package Installation without User Confirmation",
"details" : "### 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)",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "yeoman-environment"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.9.0"
}, {
"fixed" : "6.0.1"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/yeoman/environment/security/advisories/GHSA-vv9j-gjw2-j8wp"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-42089"
}, {
"type" : "WEB",
"url" : "https://github.com/yeoman/environment/pull/753"
}, {
"type" : "WEB",
"url" : "https://github.com/yeoman/environment/commit/78d2af7e60294784b8a8b3b3b5099c6874b6a1fa"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/yeoman/environment"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-829" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-05-26T23:10:38Z",
"nvd_published_at" : "2026-06-16T17:16:40Z"
}
}