CVE-2025-27098 Details
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.
A vulnerability in the static file handler of GraphQL Mesh versions 0.78.0 prior to 0.82.22 and in the @graphql-mesh/http package prior to 0.3.19 allows clients to access arbitrary files on the server's file system. This issue arises when the 'staticFiles' option is enabled in the 'serve' settings of the configuration file. The handler fails to verify whether the requested file path remains within the designated static files directory, potentially exposing sensitive files such as 'package.json' or entries from the '/etc' directory.
Users can update '@graphql-mesh/cli' to version 0.82.22 or later, and '@graphql-mesh/http' to version 0.3.19 or later. Alternatively, the 'staticFiles' option can be removed from the configuration and other methods can be used to serve static files.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Feb 20, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/ardatan/graphql-mesh/security/advisories/GHSA-j2wh-wrv3-4x4g | [email protected] | ExploitVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') | [email protected] |
| NVD-CWE-noinfo | Insufficient Information to Classify Weakness | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| the-guild graphql mesh cli | >= 0.78.0, < 0.82.22 |
CPE
Remediation
| |
| the-guild graphql mesh http | < 0.3.19 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Feb 27, 2025 | Initial Analysis | [email protected] |
| Feb 20, 2025 | New CVE Received | [email protected] |