Origin Validation Error Affecting baileys package, versions <6.7.22>=7.0.0-rc.1 <7.0.0-rc12


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.02% (5th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-BAILEYS-17818154
  • published5 Jul 2026
  • disclosed10 Jun 2026
  • creditUnknown

Introduced: 10 Jun 2026

CVE-2026-48063  (opens in a new tab)
CWE-290  (opens in a new tab)
CWE-345  (opens in a new tab)
CWE-346  (opens in a new tab)

How to fix?

Upgrade baileys to version 6.7.22, 7.0.0-rc12 or higher.

Overview

baileys is an A WebSockets library for interacting with WhatsApp Web

Affected versions of this package are vulnerable to Origin Validation Error via the messages.upsert event handling process. An attacker can inject forged messages, spoof message history, and corrupt application state by sending maliciously crafted protocolMessage payloads. This can be achieved by exploiting the handling of placeholderResendMessage and fake key shares, allowing unauthorized manipulation of message events and history synchronization.

Workaround

This vulnerability can be mitigated by dropping messages.upsert events that contain a requestId field and turning off automatic history sync by setting shouldSyncHistoryMessage: () => false in the socket configuration. There are no workarounds for the app state sync jamming.

CVSS Base Scores

version 4.0
version 3.1