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

- Severity: Medium 6.9 (CVSS:4.0, scored by VulDB) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.46%, higher than 41% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-28T06:45:13.690Z
- Modified: 2026-10-26T21:10:00.170Z
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: VulDB

## 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.

(As written by CVE List.)

## Affected

- AgiFlow scaffold-mcp: 1.0.0; 1.0.1; 1.0.2; 1.0.3; 1.0.4; 1.0.5; 1.0.6; 1.0.7; 1.0.8; 1.0.9; 1.0.10; 1.0.11; and 16 more (not affected: 1.1.0)

## Every score

- VulDB: CVSS:4.0 6.9 Medium `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`
- VulDB: CVSS:3.1 7.3 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P/RL:O/RC:C`
- VulDB: CVSS:3.0 7.3 High `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P/RL:O/RC:C`
- VulDB: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P/E:POC/RL:OF/RC:C`

## References

- <https://github.com/AgiFlow/aicode-toolkit/issues/88> (exploit, issue-tracking)
- <https://vuldb.com/vuln/359845> (technical-description, vdb-entry)
- <https://vuldb.com/vuln/359845/cti> (permissions-required, signature)
- <https://vuldb.com/submit/802836> (third-party-advisory)
- <https://github.com/AgiFlow/aicode-toolkit/pull/89> (issue-tracking, patch)
- <https://github.com/AgiFlow/aicode-toolkit/commit/c4d23592ae5fb59cfeefc4641e6826f8ac89b9c6> (patch)
- <https://github.com/AgiFlow/aicode-toolkit/releases/tag/%40agiflowai/aicode-toolkit%401.1.0> (patch)

## Sources

- CVE List: [CVE-2026-7237](https://www.cve.org/CVERecord?id=CVE-2026-7237), CVE Terms of Use, modified 2026-04-28
- NVD: [CVE-2026-7237](https://nvd.nist.gov/vuln/detail/CVE-2026-7237), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-7237 · Whole record: https://cve.day/CVE-2026-7237.json · Rebuilt by cve.day 2026-11-25T22:59:19.871Z
