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.
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.
If it's a completely local vault, I could lock down the client to not allow any remote access at all.
Unfortunately this doesn't help with the IOS stack.
Though I still like the idea of a self-hosted vault. If 1Password had been more severely breached, the attacker would have access to the encrypted vaults, which with time they might be able to crack offline. I don't like that right now an attacker could push malicious code to 1Password AND get access to the encrypted vaults. With the self-hosted vault, even if all my keys were leaked I'd still have some protection as long as my vault stays safe. Would require two independent compromises. Though to your point, even if I'm self-hosted, a malicious update to the local desktop version would still compromise me. Fortunately 1Password 7 I still use has not received any updates in a long time. (which has some cons, as well as pros)
And it is true that a desktop app is easier to firewall and avoid auto-updating to reduce risk of malicious updates exfiltrating everything.
Not sure something like this is viable on phones