Skip to content

CVE-2026-48063 Baileys has message upsert / hist sync spoofing and app state corruption when using maliciously crafted protocolMessage payload

CriticalCVSS 9.3 EPSS 0.22%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: yes · technical impact: partial

Description

Baileys is a cocket-based TS/JavaScript API for WhatsApp Web. In versions prior to both 6.7.22 and 7.0.0-rc12, any Baileys session can be sent a malicious payload via the placeholderResendMessage and trigger a fake messages.upsert event with a fake message key and payload. This allows anyone to spoof messages. The same exploit also allows an attacker to corrupt the app state sync system by sending fake key shares, and also allows for history sync spoofing which also serves the same problem, injecting fake previous context or "on-demand" sync. This issue has been fixed in versions 6.7.22 and 7.0.0-rc12.

Upgrade path

4 packages: 2 fixed.

PackageAffectedFixed inStatus
npm baileys(npm) < 6.7.22; >= 7.0.0-rc.1, < 7.0.0-rc12 6.7.22, 7.0.0-rc12 Fixed
WhiskeySockets Baileys(npm) < 6.7.22; >= 7.0.0-rc.1, < 7.0.0-rc12 6.7.22, 7.0.0-rc12 Fixed
WhiskeySockets @whiskeysockets/baileys = < 6.7.22; = >= 7.0.0-rc.1, < 7.0.0-rc12 No fix listed Versions listed
WhiskeySockets Baileys = < 6.7.22; = >= 7.0.0-rc.1, < 7.0.0-rc12 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
WhiskeySockets Baileys = < 6.7.22 No fix listed
WhiskeySockets Baileys = >= 7.0.0-rc.1, < 7.0.0-rc12 No fix listed
WhiskeySockets @whiskeysockets/baileys = < 6.7.22 No fix listed
WhiskeySockets @whiskeysockets/baileys = >= 7.0.0-rc.1, < 7.0.0-rc12 No fix listed
npm baileys(npm) < 6.7.22 6.7.22
WhiskeySockets Baileys(npm) < 6.7.22 6.7.22
npm baileys(npm) >= 7.0.0-rc.1, < 7.0.0-rc12 7.0.0-rc12
WhiskeySockets Baileys(npm) >= 7.0.0-rc.1, < 7.0.0-rc12 7.0.0-rc12

References