CVE-2026-7237 Details
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.
A path traversal vulnerability allowing arbitrary file writes has been identified in AgiFlow's scaffold-mcp tool, specifically in versions through 1.0.27. The issue arises in the write-to-file functionality, where user-supplied file paths are not properly validated, allowing attackers to overwrite files on the server. This vulnerability can be exploited remotely, potentially leading to unauthorized modifications of files and configurations.
Users are advised to upgrade to version 1.1.0 of the scaffold-mcp tool, which addresses this vulnerability by implementing proper path validation. The updated version is available on the AgiFlow aicode-toolkit GitHub repository.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Apr 28, 2026CISA-ADP
Assessed Apr 28, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/AgiFlow/aicode-toolkit/commit/c4d23592ae5fb59cfeefc4641e6826f8ac89b9c6 | [email protected] | Source CodeVendor |
| https://github.com/AgiFlow/aicode-toolkit/issues/88 | [email protected] | ExploitIssue TrackingTechnical DescriptionVendor |
| https://github.com/AgiFlow/aicode-toolkit/pull/89 | [email protected] | Issue TrackingVendor |
| https://github.com/AgiFlow/aicode-toolkit/releases/tag/%40agiflowai/aicode-toolkit%401.1.0 | [email protected] | Release NotesVendor |
| https://vuldb.com/submit/802836 | [email protected] | Technical Description |
| https://vuldb.com/vuln/359845 | [email protected] | AdvisoryExploitRemedy |
| https://vuldb.com/vuln/359845/cti | [email protected] | Content Wall |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| AgiFlow scaffold-mcp | All versions |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 29, 2026 | Data Remediation | [email protected] |
| Apr 28, 2026 | New CVE Received | [email protected] |
Volerion