GHSA-V934-7HH4-P7GH
Prototype pollution from a purl in an evinse input BOM and from a .NET repository in server mode
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
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| 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 |
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
Desglose de métricas
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
npm@cdxgen/cdxgen |
Corregida | 13.9.0 | — | — |
13.9.0Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://github.com/cdxgen/cdxgen/security/advisories/GHSA-v934-7hh4-p7ghLas referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
