CVE-2026-42089
JSON

8.6high

yeoman-environment Vulnerable to Arbitrary Package Installation without User Confirmation

Severity
8.6high CVSS:3.1 by GitHub_M
Exploit likelihood
0.17% (higher than 6% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-vv9j-gjw2-j8wp

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.

Affected

Product or packageVersionsReported by
yeoman environment>= 2.9.0, < 6.0.1CVE List
yeoman-environment (npm)from 2.9.0 before 6.0.1GitHub Advisory Database

All scores

GitHub_M8.6high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
GitHub8.6high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H

Classification

CWE-829

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

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.

GitHub Advisory Database
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
NVD (es)

Yeoman Environment proporciona una API para descubrir, crear y ejecutar generadores, y para configurar dónde y cómo se resuelve un generador. Las versiones 2.9.0 a la 6.0.0 instalan paquetes de generadores locales faltantes a partir de nombres de paquetes proporcionados por el llamador sin confirmación del usuario. En consumidores posteriores que pasan configuración de proyecto controlada por el atacante a esta ruta, esto puede resultar en la instalación arbitraria de paquetes y ejecución de código durante el arranque de la CLI. El método vulnerable es installLocalGenerators(), que llama directamente a repository.install() sin solicitar al usuario. Este problema ha sido solucionado en la versión 6.0.0.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-42089 changed 2026-06-16CVE Terms of Use
GitHub Advisory DatabaseGHSA-vv9j-gjw2-j8wp changed 2026-07-08CC-BY-4.0
NVDCVE-2026-42089 changed 2026-10-25Public domain