How could a change to web-based vaults, which never sees my unencrypted password, ship the password to an external service?
Only a code change to a local app (browser extension, desktop app, etc) which is capable of unlocking my vault could potentially see my unencrypted password and ship it somewhere.
So then how are web vaults more vulnerable than local vaults to this kind of password exfiltration? If I used a 1Password app for a local vault (if it still supported them) I’d be just as vulnerable to malicious code changes.
You could run the local vault program in firejail without internet access maybe?
Not sure something like this is viable on phones
I use the web based vault (https://my.1password.com/) rarely, and most every time I do I'm prompted to enter my password. Or even if you don't enter the password, presumably the important decryption keys are stored locally in your browser, and malicious JS could exfiltrate them. There might be things like CSP policies that would make this hard, but if the attacker can push arbitrary code, most anything is possible.
In the extreme case, the attacker could push a new 'phishing' site. But not really phishing, because its hosted on the real domain. The phishing site would just ask you to re-enter your master key and password. While suspicious, you'd have no way to know it wasn't trusted.