High severity · published Feb 20, 2025
CVE-2025-27097
Cache variables with the operations when transforms exist on the root level even if variables change in the further requests with the same operation
7.5
CVSS
0.4%
EPSS
No
On KEV
Description
GraphQL Mesh is a GraphQL Federation framework and gateway for both GraphQL Federation and non-GraphQL Federation subgraphs, non-GraphQL services, such as REST and gRPC, and also databases such as MongoDB, MySQL, and PostgreSQL. When a user transforms on the root level or single source with transforms, and the client sends the same query with different variables, the initial variables are used in all following requests until the cache evicts DocumentNode. If a token is sent via variables, the following requests will act like the same token is sent even if the following requests have different tokens. This can cause a short memory leak but it won't grow per each request but per different operation until the cache evicts DocumentNode by LRU mechanism.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
None
Integrity
None
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.4% · higher than 37% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
GR
graphql-mesh · ardatan
@graphql-mesh/runtime: >= 0.96.9, < 0.96.9 · source: vendor
GM
Graphql Mesh · The-guild
0.96.5; 0.96.6; 0.96.7; 0.96.8 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2025-27097
CVE.org
https://www.cve.org/CVERecord?id=CVE-2025-27097
Vendor Advisory
https://github.com/ardatan/graphql-mesh/security/advisories/GHSA-rr4x-crhf-8886
More from graphql-mesh
7.5
CVE-2025-27098
Unwanted access to the entire file system vulnerability due to a missing check in `staticFiles` HTTP handler in graphql-mesh
