CVE-2026-7237CWE-22

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

Medium · published April 28, 2026

CVSS v4.0
6.9
EPSS
1%
Percentile
49.2
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v4.0
6.9 · MEDIUM
Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P
EPSS
0.00621 · 49.2th percentile
Weakness
CWE-22 · Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Published
2026-04-28T06:45Z
EPSS history
Timeline
  • 28 APR 06:45Z
    AgiFlow scaffold-mcp write-to-file Tool index.ts path traversal
    cvelistv5