WhatsApp Web strengthens its security with an extension developed in conjunction with cloudflare called Code Verify, that allows to know if the encryption keys were violated and therefore, if the privacy of the communication is at risk.
It should be remembered that All messages sent by WhatsApp are protected with end to end encryption, a security technique that makes all content shared through the service (messages, photos, videos, etc) travel in encrypted form and is only decrypted when it reaches the recipient’s device. This means that even if an attacker were to intercept the content during transmission, they would not be able to access it because it is encrypted.