Descrizione
GraphQL Tools provides utilities for building, stitching, and mocking GraphQL schemas. From 10.10.1 until 12.0.2, the @graphql-tools/utils mergeIncrementalResult helper passes incrementalResult.path segments to setObjectKeyPath without runtime primitive-type validation. A non-primitive segment can bypass strict comparisons against __proto__, constructor, and prototype, then be coerced during property access so a malicious or compromised upstream incremental GraphQL response writes attacker-controlled properties to Object.prototype in the consuming Node.js process. The affected implementation is packages/utils/src/mergeIncrementalResult.ts and is reachable when consumers merge untrusted @defer or @stream transport results. This issue is fixed in version 12.0.2.
Come correggere
Priorità: Media — correggere nel prossimo ciclo di patch. Motivazione: CVSS 8.4, EPSS 0.5% (percentile 45).
Versioni da aggiornare
- ardatan graphql-tools: vulnerabile la versione
>= 10.10.1, < 12.0.2→ installare l'ultima release supportata dal vendor.
Mitigazioni temporanee
Da applicare solo se non è possibile aggiornare subito:
- Ridurre l'esposizione del componente vulnerabile (segmentazione, accesso solo da reti fidate) finché la patch non è applicata.
Verifica
- Individuare tutti gli asset con il prodotto interessato (inventario, scanner di vulnerabilità, CMDB).
- Confrontare la versione installata con quelle indicate sopra.
- Applicare l'aggiornamento in un ambiente di test, poi in produzione; riavviare i servizi se richiesto.
- Ripetere la scansione per confermare la correzione.
Configurazioni interessate
| Vendor | Prodotto | Versioni vulnerabili | Corretta in |
|---|---|---|---|
| ardatan | graphql-tools | >= 10.10.1, < 12.0.2 | — |
Riferimenti
- Riferimentohttps://github.com/ardatan/graphql-tools/commit/19f5b3373fd7ace0688d19950fc529ce8347952a
- Riferimentohttps://github.com/ardatan/graphql-tools/commit/20d36a5c6eb8fd5524420988e01a48618c450d70
- Riferimentohttps://github.com/ardatan/graphql-tools/pull/8467
- Riferimentohttps://github.com/ardatan/graphql-tools/releases/tag/@graphql-tools/utils@12.0.2
- Riferimentohttps://github.com/ardatan/graphql-tools/security/advisories/GHSA-c4qx-w738-7hr3
- Riferimentohttps://github.com/ardatan/graphql-tools/security/advisories/GHSA-c4qx-w738-7hr3