# CVE-2025-27098: Unwanted access to the entire file system vulnerability due to a missing check in \`staticFiles\` HTTP handler in graphql-mesh

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.8
- **CVSS:** 5.8 (v3.1, CNA) `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:L`
- **CVSS metrics:** Attack vector: Network; Attack complexity: High; Privileges required: None; User interaction: Required; Scope: Changed (impact reaches other components); Confidentiality impact: Low; Integrity impact: Low; Availability impact: Low
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.52% (percentile 37, 2026-11-28)
- **CWE:** CWE-22
- **Aliases:** GHSA-j2wh-wrv3-4x4g
- **Published:** 2023-02-16T18:41:07.000Z
- **Modified:** 2026-06-17T09:03:01.720Z

## Who should check

- Projects that depend on npm package @graphql-mesh/cli (\>= 0.78.0, \< 0.82.22)
- Projects that depend on npm package @graphql-mesh/http (\< 0.3.19)
- Anyone running ardatan graphql-mesh @graphql-mesh/cli: \>= 0.78.0, \< 0.82.22; @graphql-mesh/http: \< 0.3.19

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

## Affected and fixed versions

- npm `@graphql-mesh/cli`: affected \>= 0.78.0, \< 0.82.22; fixed 0.82.22 (osv)
- npm `@graphql-mesh/http`: affected \< 0.3.19; fixed 0.3.19 (osv)
- ardatan graphql-mesh: @graphql-mesh/cli: \>= 0.78.0, \< 0.82.22; @graphql-mesh/http: \< 0.3.19 (cvelist)

## Mitigation

- Upgrade @graphql-mesh/cli to 0.82.22 or later.
- Upgrade @graphql-mesh/http to 0.3.19 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-27098. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-27098.md
Affected: @graphql-mesh/cli >= 0.78.0, < 0.82.22; @graphql-mesh/http < 0.3.19
Fixed in: 0.82.22, 0.3.19

Steps:
1. Search this machine and project for @graphql-mesh/cli (npm), @graphql-mesh/http (npm), ardatan graphql-mesh: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-27098 being exploited?

There is no confirmed exploitation: CVE-2025-27098 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.52% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2025-27098?

Medium: CVSS 5.8 (v3.1, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work. The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2025-27098?

@graphql-mesh/cli \>= 0.78.0, \< 0.82.22; @graphql-mesh/http \< 0.3.19.

### Is there a fix for CVE-2025-27098?

Yes. Fixed in 0.82.22, 0.3.19. Upgrade @graphql-mesh/cli to 0.82.22 or later. Upgrade @graphql-mesh/http to 0.3.19 or later.

### How do I check if I'm affected by CVE-2025-27098?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/ardatan/graphql-mesh/security/advisories/GHSA-j2wh-wrv3-4x4g>
- vendor: <https://github.com/Urigo/graphql-mesh/security/advisories/GHSA-j2wh-wrv3-4x4g>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2025-27098>
- patch: <https://github.com/Urigo/graphql-mesh/commit/95d93e7c140c2995b37e9d822aa3fe4e24ed2e78>
- other: <https://github.com/Urigo/graphql-mesh>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-27098>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-j2wh-wrv3-4x4g> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2025-27098> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-27098>
