{"answers":{"affected":"2 open source packages ship an affected version, including @graphql-mesh/runtime. It affects 1 product.","exploited":"There is no known exploitation of CVE-2025-27097 in the wild and no public exploit code.","fix":"Upgrade @graphql-mesh/runtime to 0.96.9 or later.","what":"CVE-2025-27097 is a medium-severity vulnerability in ardatan graphql-mesh, published on 20 Feb 2025."},"fix_prompt":"Check this codebase for CVE-2025-27097 and fix it if it is affected.\n\nWhat it is: CVE-2025-27097 is a medium-severity vulnerability in ardatan graphql-mesh, published on 20 Feb 2025. \nExploitation: There is no known exploitation of CVE-2025-27097 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- @graphql-mesh/runtime (npm): affected from 0.96.5; fixed in 0.96.9\n- @graphql-mesh/runtime (npm): affected from 0.96.5; fixed in 0.96.9\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2025-27097/ (Markdown: https://insights.sbomify.com/CVE-2025-27097/index.md)","id":"CVE-2025-27097","markdown":"https://insights.sbomify.com/CVE-2025-27097/index.md","name":"CVE-2025-27097","record":{"aliases":["GHSA-rr4x-crhf-8886"],"analysis":null,"analysis_generated_by":null,"assigner":"GitHub_M","cpe":[{"product":"graphql_mesh","vendor":"the-guild"}],"cvss":{"score":5.1,"severity":"medium","source":"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","version":"4.0"},"cwes":[{"id":"CWE-401","name":"Missing Release of Memory after Effective Lifetime"},{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"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.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Cache variables with the operations when transforms exist on the root level even if variables change in the further requests with the same operation","id":"CVE-2025-27097","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":null,"year":"2025"},"n_packages":2,"n_references":1,"next":{"headline":"Unwanted access to the entire file system vulnerability due to a missing check in `staticFiles` HTTP handler","id":"CVE-2025-27098"},"packages":[{"ecosystem":"npm","fixed":["0.96.9"],"introduced":["0.96.5"],"last_affected":[],"package":"@graphql-mesh/runtime","purl":null,"source":"GHSA-rr4x-crhf-8886"},{"ecosystem":"npm","fixed":["0.96.9"],"introduced":["0.96.5"],"last_affected":[],"package":"@graphql-mesh/runtime","purl":"pkg:npm/%40graphql-mesh/runtime","source":"GHSA-rr4x-crhf-8886"}],"prev":{"headline":"SQL Injection endpoint 'html/personalizacao_upload.php' parameter 'id_campo' in WeGIA","id":"CVE-2025-27096"},"products":["graphql-mesh"],"published":"2025-02-20","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-02-20","vendors":["ardatan"]},"summary":null,"url":"https://insights.sbomify.com/CVE-2025-27097/"}