Validate volumeName and escape volume-backup file names
fix(security): validate volumeName and escape volume-backup file names
Validate volumeName and escape volume-backup file namesd629fa-fix-validate-volumename-and-escape-volume-backup-file-cve-2026-72901fixvalidate volumename escape volume backup file
Committed by Siumauricio
commit message
fix(security): validate volumeName and escape volume-backup file names
Add VOLUME_NAME_REGEX (Docker volume-name format) and enforce it on volumeName in
create/update/runManually — a legit volume name never contains shell metacharacters,
so this blocks injection across every docker run/rm/rclone sink at once. Escape the
user-supplied backupFileName and the mount volumeName in database rebuild with quote().Editor assessment
This commit patches CVE-2026-72901. The subject states both remedies, validating volumeName and escaping volume-backup file names. The body explains the approach well: a Docker-format VOLUME_NAME_REGEX enforced on create, update and runManually, justified by observing that legitimate volume names never contain shell metacharacters, which blocks injection at every docker run, rm and rclone sink at once. It also notes quote() on backupFileName and the mount volumeName during database rebuild. The layered reasoning is the message's strength; it omits test coverage and the payload that motivated the change.