Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @graphql-mesh/runtime
  4. ›
  5. CVE-2025-27097

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

October 10, 2023 (updated February 20, 2025)

When you have 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.

Let’s say 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.

References

  • github.com/Urigo/graphql-mesh
  • github.com/Urigo/graphql-mesh/commit/482d813a9f75935024aa77872125d197f5fca3d0
  • github.com/Urigo/graphql-mesh/releases/tag/release-1696859949678
  • github.com/Urigo/graphql-mesh/security/advisories/GHSA-rr4x-crhf-8886
  • github.com/advisories/GHSA-rr4x-crhf-8886
  • github.com/ardatan/graphql-mesh/security/advisories/GHSA-rr4x-crhf-8886
  • nvd.nist.gov/vuln/detail/CVE-2025-27097

Code Behaviors & Features

Detect and mitigate CVE-2025-27097 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 0.96.5 before 0.96.9

Fixed versions

  • 0.96.9

Solution

Upgrade to version 0.96.9 or above.

Weakness

  • CWE-400: Uncontrolled Resource Consumption

Source file

npm/@graphql-mesh/runtime/CVE-2025-27097.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:56 +0000.