{"id":"CVE-2025-27098","published":"2025-02-20T20:13:01Z","modified":"2025-02-20T21:04:05Z","title":"Unwanted access to the entire file system vulnerability due to a missing check in `staticFiles` HTTP handler in…","vendor":"ardatan","product":"graphql-mesh","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.8,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0051,"percentile":0.3677,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/ardatan/graphql-mesh/security/advisories/GHSA-j2wh-wrv3-4x4g","tags":["x_refsource_CONFIRM"]}],"priority":{"score":11.4,"factors":[{"name":"EPSS percentile","points":7.35},{"name":"CVSS severity","points":4.06}]},"vendorSlug":"ardatan","affectedVersions":[{"vendor":"ardatan","product":"graphql-mesh","versions":["@graphql-mesh/cli: >= 0.78.0, < 0.82.22","@graphql-mesh/http: < 0.3.19"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2025-02-20T21:03:28.726181Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@graphql-mesh/cli","vulnerableRanges":[">=0.78.0, <0.82.22"],"patched":["0.82.22"],"from":["GHSA-j2wh-wrv3-4x4g"],"provenance":"source"},{"ecosystem":"npm","package":"@graphql-mesh/http","vulnerableRanges":["<0.3.19"],"patched":["0.3.19"],"from":["GHSA-j2wh-wrv3-4x4g"],"provenance":"source"}],"summary":{"text":"A missing path check in the static file handler of ardatan's graphql-mesh, specifically the staticFiles option in the serve settings, lets requests escape the intended directory and reach files elsewhere on the server. An attacker with network access can exploit this without authentication, but it requires user interaction and only applies when staticFiles is configured.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:03:37Z"},"euvd":{"id":"EUVD-2023-0727","exploited":false,"provenance":"source"}}