CVE-2025-27098

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.
Configurations

Configuration 1 (hide)

OR cpe:2.3:a:the-guild:graphql_mesh_cli:*:*:*:*:*:node.js:*:*
cpe:2.3:a:the-guild:graphql_mesh_http:*:*:*:*:*:node.js:*:*

History

27 Feb 2025, 20:18

Type Values Removed Values Added
Summary
  • (es) GraphQL Mesh es un framework de trabajo y puerta de enlace de GraphQL Federation tanto para GraphQL Federation como para subgrafos que no son de GraphQL Federation, servicios que no son de GraphQL, como REST y gRPC, y también bases de datos como MongoDB, MySQL y PostgreSQL. La vulnerabilidad de falta de verificación en el controlador de archivos estáticos permite que cualquier cliente acceda a los archivos en el sistema de archivos del servidor. Cuando se configura `staticFiles` en la configuración de `serve` en el archivo de configuración, el siguiente controlador no verifica si `absolutePath` todavía está bajo el directorio proporcionado como `staticFiles`. Los usuarios tienen dos opciones para corregir la vulnerabilidad; 1. Actualizar `@graphql-mesh/cli` a una versión superior a `0.82.21`, y si usa `@graphql-mesh/http`, actualizarlo a una versión superior a `0.3.18` 2. Eliminar la opción `staticFiles` de la configuración y usar otras soluciones para servir archivos estáticos.
CPE cpe:2.3:a:the-guild:graphql_mesh_http:*:*:*:*:*:node.js:*:*
cpe:2.3:a:the-guild:graphql_mesh_cli:*:*:*:*:*:node.js:*:*
References () https://github.com/ardatan/graphql-mesh/security/advisories/GHSA-j2wh-wrv3-4x4g - () https://github.com/ardatan/graphql-mesh/security/advisories/GHSA-j2wh-wrv3-4x4g - Exploit, Vendor Advisory
First Time The-guild graphql Mesh Cli
The-guild
The-guild graphql Mesh Http
CWE NVD-CWE-noinfo

20 Feb 2025, 21:15

Type Values Removed Values Added
New CVE

Information

Published : 2025-02-20 21:15

Updated : 2025-02-27 20:18


NVD link : CVE-2025-27098

Mitre link : CVE-2025-27098

CVE.ORG link : CVE-2025-27098


JSON object : View

Products Affected

the-guild

  • graphql_mesh_http
  • graphql_mesh_cli
CWE
CWE-22

Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

NVD-CWE-noinfo