# GHSA-74cr-77xc-8g6r: Prototype Pollution in @apollo/gateway

- Severity: High 7.3 (CVSS:3.1, scored by GitHub) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2019-06-13T20:37:39.000Z
- Modified: 2021-08-16T15:28:22.000Z
- Weaknesses: CWE-400, CWE-1321

## Description

Versions of `@apollo/gateway` prior to 0.6.2 are vulnerable to Prototype Pollution. The package uses deepMerge() to merge objects, which may allow attackers to alter the Object prototype through queries with GraphQL aliases. Carefully constructed payloads can override properties of all objects in the application. This may lead to Denial of Service or may be chained with other vulnerabilities leading to Remote Code Execution.


## Recommendation

Upgrade to version 0.6.2 or later.

(As written by GitHub Advisory Database.)

## Affected

- @apollo/gateway (npm): before 0.6.2

## References

- <https://github.com/apollographql/apollo-server/pull/2779> (web)
- <https://github.com/apollographql/apollo-server/commit/cea7397582a293af6a5f60947da34b95e669c6c1> (web)
- <https://snyk.io/vuln/SNYK-JS-APOLLOGATEWAY-174915> (web)
- <https://www.npmjs.com/advisories/917> (web)

## Sources

- GitHub Advisory Database: [GHSA-74cr-77xc-8g6r](https://github.com/advisories/GHSA-74cr-77xc-8g6r), CC-BY-4.0, modified 2021-08-16

---

Page: https://cve.day/GHSA-74cr-77xc-8g6r · Whole record: https://cve.day/GHSA-74cr-77xc-8g6r.json · Rebuilt by cve.day 2026-11-25T22:56:44.474Z
