← Back to CVE Explorer

CVE-2026-42089

Full vulnerability record from the local CVENow database.

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.

Severity
HIGH
CVSS score
8.6 (v3.1)
Vulnerability status
Deferred
Source identifier
Published
2026-06-16 17:16:40.740000
Last modified
2026-10-25 23:10:00.167000
View original CVE JSON
{
  "id": "CVE-2026-42089",
  "sourceIdentifier": "[email protected]",
  "published": "2026-06-16T17:16:40.740",
  "lastModified": "2026-10-25T23:10:00.167",
  "vulnStatus": "Deferred",
  "cveTags": [],
  "descriptions": [
    {
      "lang": "en",
      "value": "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."
    },
    {
      "lang": "es",
      "value": "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."
    }
  ],
  "affected": [
    {
      "source": "[email protected]",
      "affectedData": [
        {
          "vendor": "yeoman",
          "product": "environment",
          "versions": [
            {
              "version": ">= 2.9.0, < 6.0.1",
              "status": "affected"
            }
          ]
        }
      ]
    }
  ],
  "metrics": {
    "cvssMetricV31": [
      {
        "source": "[email protected]",
        "type": "Secondary",
        "cvssData": {
          "version": "3.1",
          "vectorString": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H",
          "baseScore": 8.6,
          "baseSeverity": "HIGH",
          "attackVector": "LOCAL",
          "attackComplexity": "LOW",
          "privilegesRequired": "NONE",
          "userInteraction": "REQUIRED",
          "scope": "CHANGED",
          "confidentialityImpact": "HIGH",
          "integrityImpact": "HIGH",
          "availabilityImpact": "HIGH"
        },
        "exploitabilityScore": 1.8,
        "impactScore": 6.0
      }
    ],
    "ssvcV203": [
      {
        "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
        "ssvcData": {
          "timestamp": "2026-06-16T17:23:58.864894Z",
          "id": "CVE-2026-42089",
          "options": [
            {
              "exploitation": "none"
            },
            {
              "automatable": "no"
            },
            {
              "technicalImpact": "total"
            }
          ],
          "role": "CISA Coordinator",
          "version": "2.0.3"
        }
      }
    ]
  },
  "weaknesses": [
    {
      "source": "[email protected]",
      "type": "Secondary",
      "description": [
        {
          "lang": "en",
          "value": "CWE-829"
        }
      ]
    }
  ],
  "references": [
    {
      "url": "https://github.com/yeoman/environment/commit/78d2af7e60294784b8a8b3b3b5099c6874b6a1fa",
      "source": "[email protected]"
    },
    {
      "url": "https://github.com/yeoman/environment/pull/753",
      "source": "[email protected]"
    },
    {
      "url": "https://github.com/yeoman/environment/security/advisories/GHSA-vv9j-gjw2-j8wp",
      "source": "[email protected]"
    }
  ]
}