{"answers":{"affected":"4 open source packages ship an affected version, including @graphql-mesh/cli and @graphql-mesh/http. It affects 2 products.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-27098 exists.","fix":"Upgrade @graphql-mesh/cli to 0.82.22 or later.","what":"CVE-2025-27098 is a medium-severity path traversal vulnerability in ardatan graphql-mesh, published on 20 Feb 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2025-27098 and fix it if it is affected.\n\nWhat it is: CVE-2025-27098 is a medium-severity path traversal vulnerability in ardatan graphql-mesh, published on 20 Feb 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-27098 exists.\n\nAffected packages and fixed versions:\n- @graphql-mesh/cli (npm): affected from 0.78.0; fixed in 0.82.22\n- @graphql-mesh/cli (npm): affected from 0.78.0; fixed in 0.82.22\n- @graphql-mesh/http (npm): affected all versions; fixed in 0.3.19\n- @graphql-mesh/http (npm): affected all versions; fixed in 0.3.19\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-27098/ (Markdown: https://insights.sbomify.com/CVE-2025-27098/index.md)","id":"CVE-2025-27098","markdown":"https://insights.sbomify.com/CVE-2025-27098/index.md","name":"CVE-2025-27098","record":{"aliases":["GHSA-j2wh-wrv3-4x4g"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":true,"product_category":"GraphQL gateway","requires_auth":"none","summary":"Attackers can read arbitrary files from the server filesystem if the staticFiles option is enabled in GraphQL Mesh configuration.","user_interaction":"required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"graphql_mesh_cli","vendor":"the-guild"},{"product":"graphql_mesh_http","vendor":"the-guild"}],"cvss":{"score":5.8,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:L","version":"3.1"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"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. Missing check vulnerability in the static file handler allows any client to access the files in the server's file system. When `staticFiles` is set in the `serve` settings in the configuration file, the following handler doesn't check if `absolutePath` is still under the directory provided as `staticFiles`. Users have two options to fix vulnerability; 1. Update `@graphql-mesh/cli` to a version higher than `0.82.21`, and if you use `@graphql-mesh/http`, update it to a version higher than `0.3.18` 2. Remove `staticFiles` option from the configuration, and use other solutions to serve static files.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Unwanted access to the entire file system vulnerability due to a missing check in `staticFiles` HTTP handler","id":"CVE-2025-27098","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"path_traversal","year":"2025"},"n_packages":4,"n_references":1,"next":{"headline":"Tuleap allows XSS via the tracker names used in the semantic timeframe deletion message","id":"CVE-2025-27099"},"packages":[{"ecosystem":"npm","fixed":["0.82.22"],"introduced":["0.78.0"],"last_affected":[],"package":"@graphql-mesh/cli","purl":null,"source":"GHSA-j2wh-wrv3-4x4g"},{"ecosystem":"npm","fixed":["0.82.22"],"introduced":["0.78.0"],"last_affected":[],"package":"@graphql-mesh/cli","purl":"pkg:npm/%40graphql-mesh/cli","source":"GHSA-j2wh-wrv3-4x4g"},{"ecosystem":"npm","fixed":["0.3.19"],"introduced":["0"],"last_affected":[],"package":"@graphql-mesh/http","purl":null,"source":"GHSA-j2wh-wrv3-4x4g"},{"ecosystem":"npm","fixed":["0.3.19"],"introduced":["0"],"last_affected":[],"package":"@graphql-mesh/http","purl":"pkg:npm/%40graphql-mesh/http","source":"GHSA-j2wh-wrv3-4x4g"}],"prev":{"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"},"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":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-02-20","vendors":["ardatan"]},"summary":"Attackers can read arbitrary files from the server filesystem if the staticFiles option is enabled in GraphQL Mesh configuration.","url":"https://insights.sbomify.com/CVE-2025-27098/"}