pain001-mcp commit_payment_batch writes files to any path (CVE-2026-136620)
Summary
In pain001-mcp 0.0.72 before 0.0.80, the commit_payment_batch tool wrote generated XML to any path it was given, including paths outside any output directory. Version 0.0.80 writes only new .xml files inside PAIN001_MCP_OUTPUT_DIR, or the server's working directory if that is unset. The labels differ: GHSA-r4x8-fc29-xm5r says Medium with CVSS 3.1 score 7.1, maintainer advisory GHSA-hqw7-q8v2-pq3m says High with 7.1, and VulnCheck says Medium with CVSS 4.0 score 6.9.
Severity
Timeline
The issue was reported privately to the maintainer by Serhii Shunko.
The maintainer published advisory GHSA-hqw7-q8v2-pq3m, which lists 0.0.80 as the patched version.
The CVE advisory GHSA-r4x8-fc29-xm5r was published.
How it happened
stage_payment_batch returns the batch's confirmation_token to the caller that staged it, so the same principal satisfies the second step. commit_payment_batch then wrote XML to output_file_path as given, creating missing parent directories and overwriting existing files. Absolute, dot-dot or symlinked paths were accepted. The maintainer advisory names an agent driven by untrusted content, or a client reaching the opt-in HTTP or SSE transports, as ways to reach this. Files writable by the server's user could be created or overwritten.
How to check your app
- 0.0.72 to 0.0.79: Check whether the installed pain001-mcp version is in this range. 0.0.80 is the patched version.
- 0.0.72 to 0.0.79: Check whether the server is reachable over the opt-in HTTP or SSE transports.
- 0.0.72 to 0.0.79: Check which user the server runs as, since writes were possible anywhere that user can write.
Sources
Corrections and updates
Cite this entry
- Title
- pain001-mcp commit_payment_batch writes files to any path (CVE-2026-136620)
- Added
- Nov 25, 2026
- URL
- https://vibeincidents.com/incidents/pain001-mcp-cve-2026-136620/
- Suggested citation
VibeIncidents. "pain001-mcp commit_payment_batch writes files to any path (CVE-2026-136620)." Nov 25, 2026. https://vibeincidents.com/incidents/pain001-mcp-cve-2026-136620/