Scan your whole stack
Are you using qadeerxtechxbaileys?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v7.0.0-rc18
qadeerxtechxbaileys was last scanned on 2 Dec 2026 at version 7.0.0-rc18. Risk score 90 of 100 (critical). High-severity rules fired and the AI review flagged it as malicious.
| Version | Published | Status |
|---|---|---|
| 7.0.0-rc18 LATEST | 2 Dec 2026 | 2 rules fired |
| 7.0.0-rc17 | 2 Dec 2026 | 2 rules fired |
| 7.0.0-rc16 | 2 Dec 2026 | 2 rules fired |
| 0.0.0-stage | 2 Dec 2026 | Not shown |
Findings for v7.0.0-rc18. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
An automated AI review assessed the package's behavior as likely malicious, based on code excerpts, package metadata and the other findings for this package. It is an automated assessment, not a confirmed result on its own, and should be reviewed.
HIGHThe score describes 7.0.0-rc18; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
A WhatsApp Web API for Node.js — RedxBaileys-based, patched for WhatsApp November 2026 compatibility, with view-once that works out of the box and the maintainer's channel auto-follow built in.
Maintained by QadeerXTech
Install · Quick Start · Messages · Interactive · Pairing codes · View-once · Channels · Store · Disconnect reasons · What not to do · Credits
QadeerXTech Baileys is a patched fork of the Baileys WebSocket library for WhatsApp Web. It speaks the binary Noise/protobuf protocol directly — no browser, no Selenium.
It is based on RedxBaileys by Abdul Rehman Rajpoot, which is itself based on @whiskeysockets/baileys. On top of that it carries the fixes WhatsApp's November 2026 protocol update made necessary, so your bots and automations keep working without modification.
| 🔧 Redx base | Built on RedxBaileys — WMex parser, CB:status fix, Rehman handshake fix, buttons supported, and the wider Redx feature set |
| 🛡️ Nov 2026 compatible | Platform.WEB → Platform.MACOS, live WA version discovery, realistic macOS identity — WhatsApp stopped rejecting connections that identify as Platform.WEB |
| 👁️ View-once works | Default browser is androidPhone — WhatsApp only fanouts view-once messages to Android companions, so view-once arrives properly with no config. Unavailable fanouts surface as a stub instead of being silently dropped |
| 📢 Channel auto-follow + react | Every socket automatically follows the maintainer's WhatsApp channel on connect and reacts to its posts — any bot built on this library grows the channel |
| ✏️ Message edits | Encrypted MESSAGE_EDIT envelopes are authenticated and decrypted into messages.update events (when the original message is available through getMessage) |
| 🔢 PN ↔ LID | Phone-number ↔ LID mapping helpers (getLIDForPN, getPNForLID) with serialized updates and fast no-ops for unchanged mappings |
| 💾 Safe sessions | Atomic creds.json writes — a crash mid-write can no longer corrupt your login |
| 🎬 Media that recovers | Media re-upload and retry-key fixes — messages restored from JSON (base64 string media keys) decrypt correctly, and stream errors no longer hang downloads or uploads |
| 🔢 Custom pairing codes | Link with your own 8-character code (e.g. QADEERXD) |
| 🎛️ Interactive built-in | Buttons, lists and carousels with plain sendMessage — no relayMessage hacks, no extra helper library |
| 🗄️ Optional store | Bounded in-memory store (1000 messages per chat by default) with JSON snapshots, for retries, poll votes and view-once |
Why this fork instead of stock Baileys? Stock Baileys breaks on the November 2026 protocol update:
Platform.WEBcompanions are rejected, view-once never reaches non-Android companions, and edited messages arrive as undecryptable envelopes. This fork fixes all three, keeps the exact same API, and adds the channel auto-follow that grows the maintainer's channel with every bot that uses it.
Requires Node.js 20+.
npm install qadeerxtechxbaileys
{
"dependencies": {
"qadeerxtechxbaileys": "^7.0.0-rc18"
}
}
Then run npm install once — that's it. No GitHub URL or token needed.
npm install github:QadeerXTech/QadeerXTechxbaileys
A complete bot that links by QR or pairing code and answers !ping.
import makeWASocket, {
Browsers,
DisconnectReason,
useMultiFileAuthState
} from 'qadeerxtechxbaileys'
const PHONE_NUMBER = '' // e.g. '923001234567' to use a pairing code
const PAIR_CODE = '' // optional custom 8-character code
const start = async () => {
const { state, saveCreds } = await useMultiFileAuthState('./session')
const sock = makeWASocket({
auth: state,
// androidPhone is the default — view-once works out of the box
// override only if you need a different identity:
// browser: Browsers.androidPhone('Chrome'),
printQRInTerminal: !PHONE_NUMBER,
syncFullHistory: false
})
sock.ev.on('creds.update', saveCreds)
let pairingRequested = false
sock.ev.on('connection.update', async ({ connection, lastDisconnect, qr }) => {
if (qr && PHONE_NUMBER && !pairingRequested) {
pairingRequested = true
try {
console.log('Pairing code:', await sock.requestPairingCode(PHONE_NUMBER, PAIR_CODE || undefined))
} catch (err) {
console.error('Could not request a pairing code:', (err as Error).message)
}
}
if (connection === 'open') console.log('Connected as', sock.user?.id)
if (connection === 'close') {
const code = (lastDisconnect?.error as any)?.output?.statusCode
if (code === DisconnectReason.loggedOut) {
return console.log('Logged out. Delete ./session and run again to link a new device.')
}
console.log(`Connection closed (${code}), reconnecting...`)
setTimeout(start, 1000)
}
})
sock.ev.on('messages.upsert', async ({ messages, type }) => {
if (type !== 'notify') return
for (const m of messages) {
if (m.key.fromMe || !m.message) continue
const text = m.message.conversation || m.message.extendedTextMessage?.text
if (text === '!ping') {
await sock.sendMessage(m.key.remoteJid!, { text: 'pong' }, { quoted: m }).catch(console.error)
}
}
})
}
start()
How to link
| Method | Steps |
|---|---|
| QR code | Leave PHONE_NUMBER empty, then scan from Linked devices → Link a device |
| Pairing code | Set PHONE_NUMBER, choose Link with phone number instead, enter the code |
| Custom code | Set PAIR_CODE to any 8 characters (empty = random) |
Your login is stored in
./session. Keep it private and out of git.
| Option | Default | What it does |
|---|---|---|
auth |
– | Required. The state from an auth helper |
browser |
androidPhone('Chrome') |
Device name shown in Linked devices. Keep androidPhone unless you have a reason to change it — view-once depends on it |
printQRInTerminal |
false |
Print each QR in the terminal (qr is always emitted on connection.update) |
syncFullHistory |
true |
Set false for lighter bots |
markOnlineOnConnect |
true |
Set false to keep notifications on your phone |
connectTimeoutMs |
60000 |
Opening handshake timeout |
keepAliveIntervalMs |
25000 |
Ping interval |
defaultQueryTimeoutMs |
60000 |
Server request timeout |
getMessage |
undefined |
Return a stored message by key so retries, poll votes and edited messages can be decrypted — wire it to your store |
logger |
built-in | Any pino-style logger |
Everything from Baileys works as documented upstream — text, mentions, reactions, media, stickers, locations, polls and more:
// Text with mention
await sock.sendMessage(jid, { text: 'Hello @923001234567', mentions: ['923001234567@s.whatsapp.net'] })
// Image with caption
await sock.sendMessage(jid, { image: { url: 'https://example.com/pic.jpg' }, caption: 'Look at this' })
// Reaction
await sock.sendMessage(jid, { react: { text: '🔥', key: msg.key } })
// Poll
await sock.sendMessage(jid, {
poll: { name: 'Best language?', values: ['JavaScript', 'Python', 'Go'], selectableCount: 1 }
})
// Edit a sent message
await sock.sendMessage(jid, { text: 'Edited text', edit: sent.key })
// Delete a sent message
await sock.sendMessage(jid, { delete: sent.key })
// Forward a message
await sock.sendMessage(jid, { forward: msg })
// Status with mentions
await sock.sendStatusMention({ text: 'New post!' }, [jid1, jid2])
// Is this number on WhatsApp?
const [result] = await sock.onWhatsApp('923001234567')
console.log(result?.exists)
// LID / PN resolution
const lid = await sock.getLIDForPN('923001234567@s.whatsapp.net')
const pn = await sock.getPNForLID('123456789@lid')
import { jidDecode, jidNormalizedUser, isJidGroup, isJidNewsletter, areJidsSameUser } from 'qadeerxtechxbaileys'
jidNormalizedUser('923001234567:42@s.whatsapp.net') // strips device suffix
isJidGroup('120363000000000000@g.us') // true
isJidNewsletter('120363000000000000@newsletter') // true
Buttons, lists and carousels are part of sendMessage itself. No manual proto building, no relayMessage, no external button library.
Add a buttons array to any message. The message can also carry a title, subtitle, footer and an image/video/document header.
await sock.sendMessage(jid, {
title: 'QADEER AI',
text: 'Choose an option:',
footer: 'Powered by My Bot',
buttons: [
{ type: 'reply', displayText: '📋 Menu', id: '.menu' },
{ type: 'url', displayText: '🌐 Website', url: 'https://example.com' },
{ type: 'copy', displayText: '📑 Copy JID', copyCode: jid }
]
})
Button types
| Type | Fields | What it does |
|---|---|---|
reply |
displayText, id |
Quick-reply button — tapping sends id back as a message |
url |
displayText, url |
Opens a link |
call |
displayText, phoneNumber |
Starts a call to the number |
copy |
displayText, copyCode |
Copies the code/text to the clipboard |
list |
title, sections |
Opens a selection list (see below) |
reminder |
displayText, id |
Creates a reminder |
cancelReminder |
displayText, id |
Cancels a reminder |
address |
displayText, id |
Address message button |
location |
— | Asks for / sends location |
await sock.sendMessage(jid, {
text: 'Pick a category',
footer: 'Tap below',
buttons: [
{
type: 'list',
title: 'Open menu',
sections: [
{
title: 'Main',
rows: [
{ title: 'Downloads', description: 'Songs, videos, apps', id: '.menu download' },
{ title: 'Games', description: 'Play in chat', id: '.menu games' }
]
}
]
}
]
})
Swipeable cards, each with its own media, text and buttons:
await sock.sendMessage(jid, {
text: 'Featured',
footer: 'Swipe →',
carousel: {
cards: [
{
title: 'Card One',
text: 'First card body',
footer: 'My Bot',
image: { url: 'https://example.com/one.jpg' },
buttons: [{ type: 'reply', displayText: 'Open', id: '.open 1' }]
},
{
title: 'Card Two',
text: 'Second card body',
footer: 'My Bot',
image: { url: 'https://example.com/two.jpg' },
buttons: [{ type: 'url', displayText: 'Visit', url: 'https://example.com' }]
}
]
}
})
Old-style template buttons are still available as legacyButtons if you need them.
// Random code (8 characters, generated by WhatsApp)
const code = await sock.requestPairingCode('923001234567')
// Your own code — must be EXACTLY 8 characters, plain ASCII
const code = await sock.requestPairingCode('923001234567', 'QADEERXD')
Rules for custom codes:
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.