CVE-2026-136184: basnijholt compose-farm
AI-assisted summary built from NVD and CISA data. Verify against the linked sources before acting.
Summary
compose-farm’s unauthenticated web UI does not validate the Origin header, enabling cross-site WebSocket hijacking and CSRF. A malicious website visited by a user can reach the shell/exec WebSockets or the console file API and run commands on all managed hosts.
Impact: remote command execution on managed hosts
Affected technologies
- basnijholt compose-farm 0.19.0 before 1.22.0
Recommended action
Upgrade compose-farm to 1.22.0 or later, and restrict access to the web UI to trusted networks or behind authentication.
Details
| CVSS | 9.4 (Critical) |
| Vendor / product | basnijholt compose-farm |
| Published | 2026-11-24 |
| Weakness | CWE-1385 |
| Vector | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
Original description
compose-farm 0.19.0 before 1.22.0 contains a cross-site WebSocket hijacking and cross-site request forgery vulnerability because its unauthenticated web UI performs no Origin validation. Malicious websites visited by users can open /ws/shell/{host} or /ws/exec sockets, or abuse unquoted service parameters and PUT /api/console/file, to execute commands on all managed hosts.
References
- NVD record
- https://github.com/basnijholt/compose-farm/blob/v1.21.5/src/compose_farm/web/ws.py#L250-L256
- https://github.com/basnijholt/compose-farm/commit/244d56c022de61d2c6b3543b5c973ced97de6cc8
- https://github.com/basnijholt/compose-farm/commit/d944a28f0aca4ef2bd20f397bc75c7869f1efe7c
- https://github.com/basnijholt/compose-farm/commit/df21578fcc8e6ed439406591e57b4f5673a51863
- https://github.com/basnijholt/compose-farm/releases/tag/v1.22.0