llamaCVEVulnerability Intelligence
/
Advisory · GitHub · npm · @cdxgen/cdxgen

GHSA-V934-7HH4-P7GH

Prototype pollution from a purl in an evinse input BOM and from a .NET repository in server mode

Parche disponible
Descargar PNG JSON
CVSS 4.0
2.3
Baja
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N Fuente: GitHub
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche1 versión13.9.0
Exposición2 dDesde la divulgación, 19 nov 2026, 7:25 a. m.
Detección19 minDesde la divulgación hasta su ingreso al índice
Decisión estimadaSeguir
Remediar en la ventana regular de mantenimiento
Estimación de Llama con el árbol SSVC de CISA a partir de vector CVSS 4.0 y la evidencia de explotación (sin evaluación oficial): sin explotación conocida, no automatizable e impacto técnico parcial. Hay versiones corregidas disponibles.
Si todo fuera así, el SOC dormiría ocho horas.Mis gafas de sol dicen que todo bien.
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Explotación
Remediación
Monitoreo
Detectada +1
07:25 a. m.
10:35 a. m.
07:25 a. m.
08:13 p. m.
09:00 a. m.
09:48 p. m.
10:35 a. m.
FechaFaseEventoDetalle
Divulgación Publicada GHSA-V934-7HH4-P7GH divulgada · CVSS 2.3 (GitHub)
Monitoreo Detectada Ingresó al índice
Monitoreo Verificada Última verificación contra las fuentes
Resumen
Descripción del advisory
Texto original · GitHub · en inglés
Summary

Two places let scanned or supplied content write onto `Object.prototype` of the cdxgen process. A component whose purl is `__proto__` in a BOM given to `evinse` writes names and values from that BOM onto the prototype, and a .NET repository scanned by `cdxgen --server` with `deep=true` does the same through the dosai services map, for the life of the server process. In 13.7.0 the evinse route led to a command of the BOM author's choosing; that route was closed in 13.8.0 by a separate change. In 13.8.0 the pollution gives the content's author influence over plain-object lookups, so runs return wrong output, lose components or fail.

Details

`initFromSbom()` in `lib/evinser/evinser.js` keeps, for each purl in the input BOM, an object that maps an occurrence key to its symbol, using plain objects as dictionaries (`purlSymbolMap[comp.purl] ??= {}`). For the purl `__proto__` the lookup returns `Object.prototype`, and every occurrence of that component is then written onto it, with both the key and the value taken from the BOM.

In 13.7.0 two routes led from that write to command execution: `readEnvironmentVariable()` returned `process.env[name]`, which falls through to the prototype, so a polluted `ATOM_CMD` was started by `executeAtom()`; and a spawned `node` inherited a polluted `NODE_OPTIONS` through the `env` object. Commit 6df39da22, released in 13.8.0 ("Give child processes and settings only real environment variables"), closes both: `readEnvironmentVariable()` in `lib/core/activity.js` returns undefined for a name that only `Object.prototype` carries, and `safeSpawnSync()` in `lib/core/fs.js` hands the child a copy of the environment made by `ownEnvironment()` in an object without a prototype. The 13.8.0 source was checked for other direct reads of `process.env` for these names and for other direct spawns and found none that this input reaches. The prototype write itself was not changed in 13.8.0.

  • dosai services map. `collectDosaiServiceComponents()` in `lib/inventory/dosai.js` kept a map of services in a plain object keyed by values from the scanned project. On a server, the pollution lasts until restart, and later scans of unrelated projects by other clients return components that carry the repository's `group` string, lose components or fail with a 500 error. It needs `deep=true` and a .NET project.

The findings in this advisory are:

| Issue | Code | First affected release |
|---|---|---|
| Prototype pollution in dosai services map persists across server scans | `collectDosaiServiceComponents()` in `lib/inventory/dosai.js` | 13.1.0 (no match found in 12.x) |
| Prototype pollution in evinse from a purl in the input BOM | `initFromSbom()` in `lib/evinser/evinser.js` | 13.7.0 (no match found in 12.x) |

Impact

In 13.8.0 the attacker can add properties to `Object.prototype` of an `evinse` process or of a server process, and lookups of absent properties on plain objects then return strings chosen by the content. The effect is wrong or missing components and failed runs, and in server mode it carries over to other clients until restart. No route to command execution is known in 13.8.0. In 13.7.0 the evinse input ran a command with the operator's environment; that range is covered by the previous round's advisory GHSA-p8wx-9px6-7rmp (Meson wrap prototype pollution, `>= 13.6.0, < 13.8.0`, fixed in 13.8.0 by the commit that closed the execution routes). That advisory names only the Meson vector.

Patches

Fixed in `@cdxgen/cdxgen` 13.9.0 (cdxgen/cdxgen#4880). Versions 13.1.0 through 13.8.0 of `@cdxgen/cdxgen` are affected.

Known limits of the fix.
The 13.9.0 change creates the purl maps and the services map without a prototype and skips input components whose purl does not start with `pkg:`. Users of 13.7.0 should upgrade as well, since the execution routes exist there. The 12.x line is not affected: `initFromSbom()` at v12.9.2 assigns arrays and sets to properties of ordinary objects and never writes to `Object.prototype`, and the dosai services map code is not in 12.x.

Workarounds
  • Do not run `evinse` on BOMs from untrusted sources, or run it in a disposable container that holds no credentials.
  • Run one server process per trust boundary and restart it after scans of untrusted .NET repositories.
Credit

These issues were found by Anthropic's OSS Scanner (scan cdxgen-20261117-013) and reported as ANT-2026-ETRGPL6A, ANT-2026-XO5AAHMR, and were fixed by AI agents working for the cdxgen maintainers.

References
  • https://github.com/cdxgen/cdxgen/blob/master/SECURITY.md
  • https://github.com/cdxgen/cdxgen/blob/master/docs/THREAT_MODEL.md
  • Fixed in: https://github.com/cdxgen/cdxgen/pull/4880
Vector CVSS 4.0

Desglose de métricas

Opción resaltada = valor del vector · izquierda = peor caso · GitHub
Vector de ataqueAV:N
RedAdyacenteLocalFísica
ComplejidadAC:L
BajaAlta
Requisitos de ataqueAT:P
NingunoPresentes
PrivilegiosPR:N
NingunoBajosAltos
InteracciónUI:P
NingunaPasivaActiva
Confid. (sistema)VC:N
AltoBajoNinguno
Integridad (sistema)VI:L
AltoBajoNinguno
Disponib. (sistema)VA:L
AltoBajoNinguno
Confid. (posterior)SC:N
AltoBajoNinguno
Integridad (posterior)SI:N
AltoBajoNinguno
Disponib. (posterior)SA:N
AltoBajoNinguno
Score de explotaciónQué tan fácil y probable es que la exploten
5.9/ 10Medio
Vector 5.9 (moderada) · sin evidencia de explotación.
Versiones

Rangos afectados

Afectada Corregida
@cdxgen/cdxgen≥ 13.1.0 < 13.9.0
13.1.0
13.9.0
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
npm@cdxgen/cdxgen
Corregida 13.9.0 — —
Versiones corregidas13.9.0
Explotación

Arsenal público

Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.

Referencias
Advisoryhttps://github.com/cdxgen/cdxgen/security/advisories/GHSA-v934-7hh4-p7gh

Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.