CVE-2026-48063

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

State
Published
Severity
9.3 Critical
Published
Aug 3, 2026
Updated
Aug 4, 2026
Reserved
May 20, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
4.09.3 CriticalCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:NGitHub_M

Weaknesses

  • CWE-290 Authentication Bypass by Spoofing
  • CWE-345 Insufficient Verification of Data Authenticity
  • CWE-346 Origin Validation Error

Affected Products

ProductVersions
BaileysWhiskeySockets
  • < 6.7.22Affected
  • >= 7.0.0-rc.1, < 7.0.0-rc12Affected
@whiskeysockets/baileysWhiskeySockets
  • < 6.7.22Affected
  • >= 7.0.0-rc.1, < 7.0.0-rc12Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.