Base64-encode remote traefik YAML and escape config paths
fix(security): base64-encode remote traefik YAML and escape config paths
Base64-encode remote traefik YAML and escape config paths92310d-fix-base64-encode-remote-traefik-yaml-and-escape-cve-2026-72735fixbase64 encode remote traefik yaml escape
Committed by Siumauricio
commit message
fix(security): base64-encode remote traefik YAML and escape config paths
writeTraefikConfigRemote piped the stringified YAML through echo '...' where a
single quote in any label/host/serviceName broke out (GHSA-478p). Encode it as
base64 like the other writers, and quote() every configPath used in remote
rm/cat/redirect commands (including the input.path-derived ones).Editor assessment
This commit patches CVE-2026-72735. The subject is specific and slightly unusual in a good way: base64-encode remote traefik YAML and escape config paths. The body explains the failure mode precisely, since echoing the stringified YAML meant a single quote in any label, host or service name broke out of the shell string. It then names the fix, base64 encoding consistent with the other writers, and quote() on every configPath in remote rm, cat and redirect commands, including the input.path-derived ones. Concise and verifiable. The shorthand GHSA-478p reference means little on its own and no regression coverage is cited.