NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · npm

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

criticalCVSS 4.0 9.3GHSA-qvv5-jq5g-4cgg

Impact Any baileys session under the latest version ( false) in socket config. There are no workarounds for the app state sync jamming.

Published Jun 10, 2026

Affected packages

baileys

Ecosystem
npm
Affected
< 6.7.22
Fixed in
6.7.22
Check
npm ls baileys

@whiskeysockets/baileys

Ecosystem
npm
Affected
< 6.7.22
Fixed in
6.7.22
Check
npm ls @whiskeysockets/baileys

baileys

Ecosystem
npm
Affected
>= 7.0.0-rc.1, < 7.0.0-rc12
Fixed in
7.0.0-rc12
Check
npm ls baileys

@whiskeysockets/baileys

Ecosystem
npm
Affected
>= 7.0.0-rc.1, < 7.0.0-rc12
Fixed in
7.0.0-rc12
Check
npm ls @whiskeysockets/baileys

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

Impact

Any baileys session under the latest version (< 7.0.0-rc12, and < 6.7.22) 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.

Patches

https://github.com/WhiskeySockets/Baileys/commit/3beb08eecfcb4e65722e674034bd84fb11a9de35 This commit has patched the issue, and a version tag has been released under 7.0.0 (6.7.22) for those still on Baileys v6. A new Baileys version, v7.0.0-rc12, has been released to remediate this.

Workarounds

There are no real workarounds other than dropping messages.upsert events that contain a requestId field, turning off automatic history sync (shouldSyncHistoryMessage: () => false) in socket config. There are no workarounds for the app state sync jamming.

Credited to purpshell, SheIITear.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology