Advisory

GHSA-74cr-77xc-8g6r

Also known as: None

Summary

Prototype Pollution in @apollo/gateway

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2019-06-13 20:37 UTC
Modified
2021-08-16 15:28 UTC

Affected packages and fixes

@apollo/gateway

npm · All systems

Affected

  • introduced 0, fixed 0.6.2 (semver)

Fixed versions

0.6.2

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences