Lookup for vulnerable packages by Package URL.

Purlpkg:npm/%40apollo/gateway@0.5.0
Typenpm
Namespace@apollo
Namegateway
Version0.5.0
Qualifiers
Subpath
Is_vulnerabletrue
Next_non_vulnerable_version2.9.6
Latest_non_vulnerable_version2.13.2
Affected_by_vulnerabilities
0
url VCID-227w-b5ts-8fhc
vulnerability_id VCID-227w-b5ts-8fhc
summary
Apollo Gateway Query Planner Vulnerable to Excessive Resource Consumption via Named Fragment Expansion
# Impact

## Summary

A vulnerability in Apollo Gateway allowed queries with deeply nested and reused named fragments to be prohibitively expensive to query plan, specifically during named fragment expansion. This could lead to excessive resource consumption and denial of service.

## Details

Named fragments were being expanded once per fragment spread during query planning, leading to exponential resource usage when deeply nested and reused fragments were involved.

## Fix/Mitigation

A new **Query Fragment Expansion Limit** metric has been introduced:
  - This metric computes the number of selections a query would have if its fragment spreads were fully expanded.
  - The metric is checked against a limit to prevent excessive computation.

# Patches

This has been remediated in `@apollo/gateway` version 2.10.1.

# Workarounds

No known direct workarounds exist.

# References

[Query Planning Documentation](https://www.apollographql.com/docs/graphos/reference/federation/query-plans)

## Acknowledgements

We appreciate the efforts of the security community in identifying and improving the performance and security of query planning mechanisms.
references
0
reference_url https://api.first.org/data/v1/epss?cve=CVE-2025-32030
reference_id
reference_type
scores
0
value 0.00628
scoring_system epss
scoring_elements 0.70576
published_at 2026-05-29T12:55:00Z
url https://api.first.org/data/v1/epss?cve=CVE-2025-32030
1
reference_url https://github.com/apollographql/federation
reference_id
reference_type
scores
0
value 7.5
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
1
value HIGH
scoring_system generic_textual
scoring_elements
url https://github.com/apollographql/federation
2
reference_url https://github.com/apollographql/federation/pull/3236
reference_id
reference_type
scores
0
value 7.5
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
1
value HIGH
scoring_system generic_textual
scoring_elements
2
value Track
scoring_system ssvc
scoring_elements SSVCv2/E:N/A:Y/T:P/P:M/B:A/M:M/D:T/2025-04-08T18:13:48Z/
url https://github.com/apollographql/federation/pull/3236
3
reference_url https://github.com/apollographql/federation/releases/tag/%40apollo%2Fgateway%402.10.1
reference_id
reference_type
scores
0
value 7.5
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
1
value HIGH
scoring_system generic_textual
scoring_elements
2
value Track
scoring_system ssvc
scoring_elements SSVCv2/E:N/A:Y/T:P/P:M/B:A/M:M/D:T/2025-04-08T18:13:48Z/
url https://github.com/apollographql/federation/releases/tag/%40apollo%2Fgateway%402.10.1
4
reference_url https://github.com/apollographql/federation/security/advisories/GHSA-q2f9-x4p4-7xmh
reference_id
reference_type
scores
0
value 7.5
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
1
value HIGH
scoring_system generic_textual
scoring_elements
2
value Track
scoring_system ssvc
scoring_elements SSVCv2/E:N/A:Y/T:P/P:M/B:A/M:M/D:T/2025-04-08T18:13:48Z/
url https://github.com/apollographql/federation/security/advisories/GHSA-q2f9-x4p4-7xmh
5
reference_url https://nvd.nist.gov/vuln/detail/CVE-2025-32030
reference_id
reference_type
scores
0
value 7.5
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
1
value HIGH
scoring_system generic_textual
scoring_elements
url https://nvd.nist.gov/vuln/detail/CVE-2025-32030
6
reference_url https://github.com/advisories/GHSA-q2f9-x4p4-7xmh
reference_id GHSA-q2f9-x4p4-7xmh
reference_type
scores
url https://github.com/advisories/GHSA-q2f9-x4p4-7xmh
fixed_packages
0
url pkg:npm/%40apollo/gateway@2.10.1
purl pkg:npm/%40apollo/gateway@2.10.1
is_vulnerable false
affected_by_vulnerabilities
resource_url http://public2.vulnerablecode.io/packages/pkg:npm/%2540apollo/gateway@2.10.1
1
url pkg:npm/%40apollo/gateway@2.11.0-preview.0
purl pkg:npm/%40apollo/gateway@2.11.0-preview.0
is_vulnerable false
affected_by_vulnerabilities
resource_url http://public2.vulnerablecode.io/packages/pkg:npm/%2540apollo/gateway@2.11.0-preview.0
aliases CVE-2025-32030, GHSA-q2f9-x4p4-7xmh
risk_score null
exploitability null
weighted_severity null
resource_url http://public2.vulnerablecode.io/vulnerabilities/VCID-227w-b5ts-8fhc
1
url VCID-f6ff-zhyz-63d7
vulnerability_id VCID-f6ff-zhyz-63d7
summary
Prototype Pollution in @apollo/gateway
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.
references
0
reference_url https://github.com/apollographql/apollo-server/commit/cea7397582a293af6a5f60947da34b95e669c6c1
reference_id
reference_type
scores
0
value 7.3
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
1
value HIGH
scoring_system generic_textual
scoring_elements
url https://github.com/apollographql/apollo-server/commit/cea7397582a293af6a5f60947da34b95e669c6c1
1
reference_url https://github.com/apollographql/apollo-server/pull/2779
reference_id
reference_type
scores
0
value 7.3
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
1
value HIGH
scoring_system generic_textual
scoring_elements
url https://github.com/apollographql/apollo-server/pull/2779
2
reference_url https://snyk.io/vuln/SNYK-JS-APOLLOGATEWAY-174915
reference_id
reference_type
scores
0
value 7.3
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
1
value HIGH
scoring_system generic_textual
scoring_elements
url https://snyk.io/vuln/SNYK-JS-APOLLOGATEWAY-174915
3
reference_url https://www.npmjs.com/advisories/917
reference_id
reference_type
scores
0
value 7.3
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
1
value HIGH
scoring_system generic_textual
scoring_elements
url https://www.npmjs.com/advisories/917
4
reference_url https://github.com/advisories/GHSA-74cr-77xc-8g6r
reference_id GHSA-74cr-77xc-8g6r
reference_type
scores
0
value HIGH
scoring_system cvssv3.1_qr
scoring_elements
url https://github.com/advisories/GHSA-74cr-77xc-8g6r
fixed_packages
0
url pkg:npm/%40apollo/gateway@0.6.2
purl pkg:npm/%40apollo/gateway@0.6.2
is_vulnerable true
affected_by_vulnerabilities
0
vulnerability VCID-227w-b5ts-8fhc
1
vulnerability VCID-z6x3-3s2q-vyee
resource_url http://public2.vulnerablecode.io/packages/pkg:npm/%2540apollo/gateway@0.6.2
aliases GHSA-74cr-77xc-8g6r, GMS-2019-8
risk_score null
exploitability null
weighted_severity null
resource_url http://public2.vulnerablecode.io/vulnerabilities/VCID-f6ff-zhyz-63d7
2
url VCID-z6x3-3s2q-vyee
vulnerability_id VCID-z6x3-3s2q-vyee
summary
Apollo Gateway Query Planner Vulnerable to Excessive Resource Consumption via Optimization Bypass
# Impact

## Summary

A vulnerability in Apollo Gateway allowed queries with deeply nested and reused named fragments to be prohibitively expensive to query plan, specifically due to internal optimizations being frequently bypassed. This could lead to excessive resource consumption and denial of service.

## Details

The query planner includes an optimization that significantly speeds up planning for applicable GraphQL selections. However, queries with deeply nested and reused named fragments can generate many selections where this optimization does not apply, leading to significantly longer planning times. Because the query planner does not enforce a timeout, a small number of such queries can render gateway inoperable.

## Fix/Mitigation

- A new **Query Optimization Limit** metric has been added:
  - This metric approximates the number of selections that cannot be skipped by the existing optimization.
  - The metric is checked against a limit to prevent excessive computation.

Given the complexity of query planning optimizations, we will continue refining these solutions based on real-world performance and accuracy tests.

# Patches

This has been remediated in `@apollo/gateway` version 2.10.1.

# Workarounds

No known direct workarounds exist.

# References

[Query Planning Documentation](https://www.apollographql.com/docs/graphos/reference/federation/query-plans)

## Acknowledgements

We appreciate the efforts of the security community in identifying and improving the performance and security of query planning mechanisms.
references
0
reference_url https://api.first.org/data/v1/epss?cve=CVE-2025-32031
reference_id
reference_type
scores
0
value 0.00417
scoring_system epss
scoring_elements 0.62029
published_at 2026-05-29T12:55:00Z
url https://api.first.org/data/v1/epss?cve=CVE-2025-32031
1
reference_url https://github.com/apollographql/federation
reference_id
reference_type
scores
0
value 7.5
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
1
value HIGH
scoring_system generic_textual
scoring_elements
url https://github.com/apollographql/federation
2
reference_url https://github.com/apollographql/federation/pull/3236
reference_id
reference_type
scores
0
value 7.5
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
1
value HIGH
scoring_system generic_textual
scoring_elements
2
value Track
scoring_system ssvc
scoring_elements SSVCv2/E:N/A:Y/T:P/P:M/B:A/M:M/D:T/2025-04-08T14:39:08Z/
url https://github.com/apollographql/federation/pull/3236
3
reference_url https://github.com/apollographql/federation/releases/tag/%40apollo%2Fgateway%402.10.1
reference_id
reference_type
scores
0
value 7.5
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
1
value HIGH
scoring_system generic_textual
scoring_elements
2
value Track
scoring_system ssvc
scoring_elements SSVCv2/E:N/A:Y/T:P/P:M/B:A/M:M/D:T/2025-04-08T14:39:08Z/
url https://github.com/apollographql/federation/releases/tag/%40apollo%2Fgateway%402.10.1
4
reference_url https://github.com/apollographql/federation/security/advisories/GHSA-p2q6-pwh5-m6jr
reference_id
reference_type
scores
0
value 7.5
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
1
value HIGH
scoring_system generic_textual
scoring_elements
2
value Track
scoring_system ssvc
scoring_elements SSVCv2/E:N/A:Y/T:P/P:M/B:A/M:M/D:T/2025-04-08T14:39:08Z/
url https://github.com/apollographql/federation/security/advisories/GHSA-p2q6-pwh5-m6jr
5
reference_url https://nvd.nist.gov/vuln/detail/CVE-2025-32031
reference_id
reference_type
scores
0
value 7.5
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
1
value HIGH
scoring_system generic_textual
scoring_elements
url https://nvd.nist.gov/vuln/detail/CVE-2025-32031
6
reference_url https://github.com/advisories/GHSA-p2q6-pwh5-m6jr
reference_id GHSA-p2q6-pwh5-m6jr
reference_type
scores
url https://github.com/advisories/GHSA-p2q6-pwh5-m6jr
fixed_packages
0
url pkg:npm/%40apollo/gateway@2.10.1
purl pkg:npm/%40apollo/gateway@2.10.1
is_vulnerable false
affected_by_vulnerabilities
resource_url http://public2.vulnerablecode.io/packages/pkg:npm/%2540apollo/gateway@2.10.1
1
url pkg:npm/%40apollo/gateway@2.11.0-preview.0
purl pkg:npm/%40apollo/gateway@2.11.0-preview.0
is_vulnerable false
affected_by_vulnerabilities
resource_url http://public2.vulnerablecode.io/packages/pkg:npm/%2540apollo/gateway@2.11.0-preview.0
aliases CVE-2025-32031, GHSA-p2q6-pwh5-m6jr
risk_score null
exploitability null
weighted_severity null
resource_url http://public2.vulnerablecode.io/vulnerabilities/VCID-z6x3-3s2q-vyee
Fixing_vulnerabilities
Risk_scorenull
Resource_urlhttp://public2.vulnerablecode.io/packages/pkg:npm/%2540apollo/gateway@0.5.0