CVE-2026-7237 AgiFlow scaffold-mcp write-to-file Tool index.ts path traversal

Medium 6.9 Published Updated

Attackers can exploit a path traversal vulnerability in the write-to-file tool to read or modify arbitrary files on the system.

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-7237?

CVE-2026-7237 is a medium-severity path traversal vulnerability in AgiFlow scaffold-mcp, published on 28 Apr 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

A vulnerability was detected in AgiFlow scaffold-mcp up to 1.0.27. Affected by this issue is some unknown functionality of the file packages/scaffold-mcp/src/server/index.ts of the component write-to-file Tool. The manipulation of the argument file_path results in path traversal. The attack may be launched remotely. The exploit is now public and may be used. Upgrading to version 1.1.0 can resolve this issue. The patch is identified as c4d23592ae5fb59cfeefc4641e6826f8ac89b9c6. You should upgrade the affected component.

Weakness: CWE-22

Which versions are affected by CVE-2026-7237?

How do I fix CVE-2026-7237?

No fix has been published for CVE-2026-7237 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-7237 being exploited?

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

Sources

Also known as GHSA-78xp-7865-cjx8.

Is CVE-2026-7237 in your software?

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

Check your SBOMs for free