Shell-quote database changePassword commands

fix(security): shell-quote database changePassword commands
Shell-quote database changePassword commandsaccc2f-fix-shell-quote-database-changepassword-commands-cve-2026-129987fixshell quote database changepassword commands security

Committed by Siumauricio

commit message
fix(security): shell-quote database changePassword commands

The new password (backticks allowed by DATABASE_PASSWORD_REGEX) sat in
double quotes and databaseUser / stored credentials were unquoted or
single-quoted. Pass every docker exec argument through quote().

Editor assessment

This commit patches CVE-2026-129987. Clear and specific. The body explains the composed quoting bug: the new password allowed backticks and sat in double quotes, while databaseUser and the stored credentials were unquoted or single-quoted, so a crafted value reached the shell. The fix routes every docker exec argument through quote(). The subject names the surface and the security scope is accurate, so a reader can locate and audit the change without guessing. Short, but it carries the mechanism, the impact and the remedy.

Browse categories

More fix examples · Back to search