Skip to main content
← All vulnerabilities
CVE-2026-48063GHSA-QVV5-JQ5G-4CGG

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 6.7.22, 7.0.0-rc12
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: yes
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • WhiskeySockets Baileys

    fixed in 6.7.22; From 7.0.0-rc.1 · fixed in 7.0.0-rc12

  • WhiskeySockets @whiskeysockets/baileys

    fixed in 6.7.22; From 7.0.0-rc.1 · fixed in 7.0.0-rc12

  • baileysnpm

    fixed in 6.7.22

  • @whiskeysockets/baileysnpm

    fixed in 6.7.22

  • baileysnpm

    From 7.0.0-rc.1 · fixed in 7.0.0-rc12

  • @whiskeysockets/baileysnpm

    From 7.0.0-rc.1 · fixed in 7.0.0-rc12

References 2

GitHub · WhiskeySockets/Baileys