Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
📦 npm
Not in CISA KEV

Baileys has message upsert / hist sync spoofing and app state corruption when using maliciously crafted protocolMessage payloadGHSA-qvv5-jq5g-4cgg

Fix: WhiskeySockets/Baileys@3beb08e

GHSA-qvv5-jq5g-4cgg is a CWE-290 vulnerability in baileys. A fix is available for baileys — see the affected versions and patch details below.

Also known asCVE-2026-48063
Published
Updated
Affected
4 pkgs
Patched
4 / 4
Exploits
None indexed
Exploitation data as of Oct 22, 2026 · OSV.dev, NVD, FIRST.org (EPSS)

Exploitation Status

No confirmed exploitation observed yet

  • CISA assesses this as automatable — exploitation doesn’t require manual, per-target effort, which raises the odds of mass scanning and opportunistic attacks.
  • CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.

Exploitation and automatability from CISA’s SSVC triage for GHSA-qvv5-jq5g-4cgg.

EPSS Exploitation Probability

via FIRST.org ↗
0.2%probability of exploitation in next 30 days
Lower Risk0.00%
Lower risk than most CVEs12th percentile — riskier than 12% of all scored CVEsHighest risk
0.00%0.24%0.48%0.72%0.2%0.2%0.2%Sep 26Oct 26Oct 26

Probability of exploitation in the next 30 days, from FIRST.org EPSS.

Real-World Exposure

4 pkgs affected

How broadly this vulnerability is actually deployed: weekly install volume shows current usage, and reverse-dependency count shows how many other packages break if it stays unpatched.

135other npm packages depend on this — each one inherits the vulnerability until it's patched upstream
baileysnpm
235Kdownloads / week
@whiskeysockets/baileysnpm
307Kdownloads / week

Description

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.

Affected Packages

4 total 4 fixed
EcosystemPackageVulnerable rangeFix
📦npmbaileysall versions6.7.22npm install baileys@6.7.22
📦npm@whiskeysockets/baileysall versions6.7.22npm install @whiskeysockets/baileys@6.7.22
📦npmbaileys≥ 7.0.0-rc.1&&< 7.0.0-rc127.0.0-rc12npm install baileys@7.0.0-rc12
📦npm@whiskeysockets/baileys≥ 7.0.0-rc.1&&< 7.0.0-rc127.0.0-rc12npm install @whiskeysockets/baileys@7.0.0-rc12

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for baileys, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.

  2. Fix

    Update baileys to 6.7.22 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-qvv5-jq5g-4cgg is resolved across your whole dependency graph.

  3. Workarounds

    If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.

Frequently Asked Questions

### 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/3beb08eecfcb4e65722e674034bd8
O3 Security · Impact-Aware SCA

Is GHSA-qvv5-jq5g-4cgg in your dependencies?

Find it across npm, including transitive dependencies.

Baileys has message upsert / hist sync spoofing and app…