CVE-2025-27098
HIGH 7.5CVSS 3.1Unwanted access to the entire file system vulnerability due to a missing check in `staticFiles` HTTP handler
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.
- Published
- 20 Feb 2025
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-22
- Also known as
- GHSA-j2wh-wrv3-4x4g
- Sources
- NVDJSONOSV GHSA-j2wh-wrv3-4x4gJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 5.8 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:L |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.8 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:L |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | the-guild | graphql_mesh_clicpe:2.3:a:the-guild:graphql_mesh_cli:*:*:*:*:*:node.js:*:* |
>= 0.78.0, < 0.82.22 | 0.82.22 |
| NVD | the-guild | graphql_mesh_httpcpe:2.3:a:the-guild:graphql_mesh_http:*:*:*:*:*:node.js:*:* |
< 0.3.19 | 0.3.19 |
| OSV | npm | @graphql-mesh/cli | >= 0.78.0, < 0.82.22 | 0.82.22 |
| OSV | npm | @graphql-mesh/http | < 0.3.19 | 0.3.19 |
References
- https://github.com/ardatan/graphql-mesh/security/advisories/GHSA-j2wh-wrv3-4x4g · Exploit, Vendor Advisory, WEB
- https://github.com/Urigo/graphql-mesh/security/advisories/GHSA-j2wh-wrv3-4x4g · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-27098 · ADVISORY
- https://github.com/Urigo/graphql-mesh/commit/95d93e7c140c2995b37e9d822aa3fe4e24ed2e78 · WEB
- https://github.com/Urigo/graphql-mesh · PACKAGE
History
- 25 Nov 2026 20:57 UTC · NVD: first stored (published 20 Feb 2025)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 16 Feb 2023)