---
id: CVE-2026-48063
title: Baileys is a cocket-based TS/JavaScript API for WhatsApp Web
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…
severity: critical
cwe:
  - CWE-290
  - CWE-345
  - CWE-346
vendor: baileys
product: baileys
affected:
  - baileys < 6.7.22
  - '@whiskeysockets/baileys < 6.7.22'
  - 'baileys >= 7.0.0-rc.1, < 7.0.0-rc12'
  - '@whiskeysockets/baileys >= 7.0.0-rc.1, < 7.0.0-rc12'
patched:
  - baileys 6.7.22
  - '@whiskeysockets/baileys 6.7.22'
  - baileys 7.0.0-rc12
  - '@whiskeysockets/baileys 7.0.0-rc12'
published: '2026-08-03'
updated: '2026-09-10'
sourceUpdated: '2026-09-10T20:31:16.483'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-48063'
references:
  - url: >-
      https://github.com/WhiskeySockets/Baileys/commit/3beb08eecfcb4e65722e674034bd84fb11a9de35
    label: security-advisories@github.com
  - url: >-
      https://github.com/WhiskeySockets/Baileys/security/advisories/GHSA-qvv5-jq5g-4cgg
    label: security-advisories@github.com
  - url: 'https://github.com/advisories/GHSA-qvv5-jq5g-4cgg'
tags:
  - nvd
  - ghsa
  - npm
epss: 0.00157
epssPercentile: 0.05249
aliases:
  - GHSA-qvv5-jq5g-4cgg
ecosystem: npm
ingestedAt: '2026-07-07T15:41:59.543Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Package advisory (CVE-2026-48063)

Affected packages:

- `baileys < 6.7.22`
- `@whiskeysockets/baileys < 6.7.22`
- `baileys >= 7.0.0-rc.1, < 7.0.0-rc12`
- `@whiskeysockets/baileys >= 7.0.0-rc.1, < 7.0.0-rc12`

Patched in:

- `baileys 6.7.22`
- `@whiskeysockets/baileys 6.7.22`
- `baileys 7.0.0-rc12`
- `@whiskeysockets/baileys 7.0.0-rc12`

Source: https://github.com/advisories/GHSA-qvv5-jq5g-4cgg
