CVE-2026-7811 54yyyu code-mcp MCP File server.py is_safe_path path traversal

Medium 6.9 Published Updated

Remote attackers can exploit a path traversal flaw in the code-mcp MCP file handler to read or modify arbitrary files on the server.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2026-7811?

CVE-2026-7811 is a medium-severity path traversal vulnerability in 54yyyu code-mcp, published on 5 May 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

A vulnerability has been found in 54yyyu code-mcp up to 4cfc4643541a110c906d93635b391bf7e357f4a8. The affected element is the function is_safe_path of the file src/code_mcp/server.py of the component MCP File Handler. Such manipulation leads to path traversal. It is possible to launch the attack remotely. The exploit has been disclosed to the public and may be used. This product takes the approach of rolling releases to provide continious delivery. Therefore, version details for affected and updated releases are not available. The project was informed of the problem early through an issue report but has not responded yet.

Weakness: CWE-22

Which versions are affected by CVE-2026-7811?

How do I fix CVE-2026-7811?

No fix has been published for CVE-2026-7811 yet. Limit exposure of the affected software until one is available.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2026-7811 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-7811 exists.

Sources

Also known as GHSA-3p62-p8gh-rh2w.

Is CVE-2026-7811 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free