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.
Published: 2026-08-03
Score: 9.3 Critical
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Baileys processes a fabricated payload received through the placeholderResendMessage function, causing the library to emit a fake messages.upsert event that contains a counterfeit message key and contents. This flaw enables an attacker to make the Baileys session believe it has received legitimate messages, thereby allowing message spoofing, injecting false message history, and corrupting the app state synchronization system. The impact includes unauthorized impersonation of participants, delivery of deceptive content, and potential loss of data integrity for the user’s chat history.

Affected Systems

The problem exists in the WhatsApp Web JavaScript/TypeScript API known as Baileys, provided by WhiskeySockets. Any version prior to 6.7.22 and before 7.0.0-rc12 is affected; the fix was released in those two specific releases.

Risk and Exploitability

The CVSS score of 9.3 flags this a critical vulnerability. No EPSS score is available, so the exploit probability cannot be quantified, and the vulnerability is not yet listed in the CISA KEV catalog. Inferred from the description, the attack vector likely requires access to a Baileys session that can inject arbitrary protocolMessage payloads via placeholderResendMessage or history sync requests. Successful exploitation could permit an attacker to inject malicious messages and corrupt session state.

Generated by OpenCVE AI on August 4, 2026 at 09:43 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Baileys to version 6.7.22 or later or to 7.0.0-rc12 or later; these releases contain the patch that validates and rejects the crafted payload for placeholderResendMessage.
  • If an upgrade is not immediately possible, avoid sending or accepting placeholderResendMessage payloads from untrusted sources until the library is updated.
  • Consider disabling or tightly controlling the placeholderResendMessage feature in custom implementations until a patch is applied.

Generated by OpenCVE AI on August 4, 2026 at 09:43 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-qvv5-jq5g-4cgg Baileys has message upsert / hist sync spoofing and app state corruption when using maliciously crafted protocolMessage payload
History

Wed, 05 Aug 2026 10:45:00 +0000

Type Values Removed Values Added
First Time appeared Whiskeysockets
Whiskeysockets baileys
Vendors & Products Whiskeysockets
Whiskeysockets baileys

Tue, 04 Aug 2026 14:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Mon, 03 Aug 2026 21:15:00 +0000

Type Values Removed Values Added
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.
Title Baileys has message upsert / hist sync spoofing and app state corruption when using maliciously crafted protocolMessage payload
Weaknesses CWE-290
CWE-345
CWE-346
References
Metrics cvssV4_0

{'score': 9.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N'}


Subscriptions

Whiskeysockets Baileys
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-04T14:03:34.400Z

Reserved: 2026-05-20T18:25:25.707Z

Link: CVE-2026-48063

cve-icon Vulnrichment

Updated: 2026-08-04T14:03:27.179Z

cve-icon NVD

Status : Received

Published: 2026-08-03T21:16:39.450

Modified: 2026-08-04T15:16:35.153

Link: CVE-2026-48063

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-05T10:21:30Z

Weaknesses
  • CWE-290

    Authentication Bypass by Spoofing

  • CWE-345

    Insufficient Verification of Data Authenticity

  • CWE-346

    Origin Validation Error