Submit #802836: AgiFlow @agiflowai/scaffold-mcp 1.0.27 Path Traversalinfo

TitleAgiFlow @agiflowai/scaffold-mcp 1.0.27 Path Traversal
DescriptionAn arbitrary file write vulnerability (CWE-22) has been identified in the write-to-file tool of @agiflowai/scaffold-mcp (version 1.0.27). The tool accepts a user-supplied file_path argument and writes attacker-controlled content to that path after resolving absolute paths as-is or relative paths against the current working directory, without enforcing any workspace or base-directory boundary. An attacker with access to the MCP interface can write or overwrite arbitrary files writable by the server process, potentially leading to integrity loss, configuration corruption, or further compromise. No fixed version is available at the time of reporting.
Source⚠️ https://github.com/AgiFlow/aicode-toolkit/issues/88
User
 BruceJin (UID 96538)
Submission04/11/2026 11:49 (3 months ago)
Moderation04/27/2026 19:17 (16 days later)
StatusAccepted
VulDB entry359845 [AgiFlow scaffold-mcp up to 1.0.27 write-to-file Tool index.ts file_path path traversal]
Points20

Might our Artificial Intelligence support you?

Check our Alexa App!