Scan your whole stack
From OX Research Newsroom
Are you using cantarelas?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v1.2.1
cantarelas was last scanned on 27 Nov 2026 at version 1.2.1. Risk score 85 of 100 (high). High-severity rules fired.
| Version | Published | Status |
|---|---|---|
| 1.2.1 LATEST | 27 Nov 2026 | 1 rule fired |
| 0.0.0-stage | 27 Nov 2026 | Not shown |
Findings for v1.2.1. 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.
The code combines a hardcoded or decoded WhatsApp channel identifier with a follow or mute call in the same file, or builds a WhatsApp channel request with a fixed query ID. This can use the user's own authenticated session to follow, and often mute, channels the package author chooses, without the user asking for it.
HIGHThe score describes 1.2.1; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
cantarelllaaparticipant, pushName, fromMe).sock.customHistoryBuilder() or new CustomHistoryBuilder(sock).include and exclude.all, primary (device 0), or secondary (companion devices).sock.relayMessageSelective(jid, message, options) or pass selective options directly to sock.sendMessage() / sock.relayMessage().autoJoinChannels: false in your socket configuration.npm install cantarelllaa
import makeWASocket, { useMultiFileAuthState, DisconnectReason } from 'cantarelllaa';
async function startBot() {
const { state, saveCreds } = await useMultiFileAuthState('auth_info_baileys');
const sock = makeWASocket({
auth: state,
printQRInTerminal: true,
// Optional AutoJoin configuration (enabled by default)
autoJoinChannels: true
});
sock.ev.on('creds.update', saveCreds);
sock.ev.on('connection.update', (update) => {
const { connection, lastDisconnect } = update;
if (connection === 'close') {
const shouldReconnect = (lastDisconnect?.error)?.output?.statusCode !== DisconnectReason.loggedOut;
if (shouldReconnect) startBot();
} else if (connection === 'open') {
console.log('Connected to WhatsApp via Baileys Cantarelllaa!');
}
});
sock.ev.on('messages.upsert', async ({ messages }) => {
const msg = messages[0];
if (!msg.message || msg.key.fromMe) return;
const jid = msg.key.remoteJid;
console.log('Received message from:', jid);
});
}
startBot();
// Create history bundle with fluent builder
const builder = sock.customHistoryBuilder();
// Add text message to history
builder.addText('Welcome to the group history!', {
participant: '628123456789@s.whatsapp.net',
timestamp: Math.floor(Date.now() / 1000) - 3600,
pushName: 'Admin'
});
// Add reaction to a message in history
builder.addReaction(firstMsg, '❤️', {
participant: '628987654321@s.whatsapp.net',
timestamp: Math.floor(Date.now() / 1000) - 1800
});
// Send custom group history to target recipient
await builder.send('120363000000000000@g.us', '628123456789@s.whatsapp.net');
// Send group message only to primary devices of specific participants (Include Mode)
await sock.relayMessageSelective(
'120363000000000000@g.us',
{ conversation: 'Confidential announcement' },
{
mode: 'include',
target: ['6281234567890@s.whatsapp.net', '6289876543210@s.whatsapp.net'],
deviceMode: 'primary'
}
);
// Exclude specific participants (Exclude Mode)
await sock.relayMessageSelective(
'120363000000000000@g.us',
{ conversation: 'Message visible to everyone except target' },
{
mode: 'exclude',
target: ['6281111111111@s.whatsapp.net']
}
);
Official Channel: https://whatsapp.com/channel/0029VaBOlsv002TEjlntTE2D
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.