Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@felixneo/baileys

Latest version: v1.0.1

Overview

Last scanned
19 Aug 2026
Published
19 Aug 2026
npm package Publisher: felixneo
1 Versions

Scan summary

@felixneo/baileys was last scanned on 19 Aug 2026 at version 1.0.1. Risk score 80 of 100 (high). High-severity rules fired.

  • Releases: First and only release on 19 Aug 2026.
  • Findings: 3 rules fired in version 1.0.1 (3 high). The score describes this version only.

Versions

1 version published
Versions and the rules that fired in each
VersionPublishedStatus
1.0.1 LATEST 19 Aug 2026 3 rules fired

Rules fired in 1.0.1: 3

Findings

3 High

Findings for v1.0.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.

Local file read that may reach a network call in install-time code

A file that the package's install scripts may run reads a local file, and the value read appears to reach an outbound network call. Install-time code does not normally need to upload local files.

HIGH

Runtime-built function run with Node internals, fed by a network fetch

HIGH

Several suspicious behaviors form a known attack pattern

HIGH
Checking access…

🔒 Create a free account to see all 3 findings with descriptions and instance counts

The score describes 1.0.1; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

🚀 @felixneo/baileys

WhatsApp Baileys - Library WhatsApp Automation dengan Pairing Stabil & Fitur Lengkap


📖 Tentang Baileys

@felixneo/baileys adalah library open-source untuk membangun solusi otomatisasi dan integrasi dengan WhatsApp secara efisien dan langsung. Menggunakan teknologi WebSocket tanpa memerlukan browser, library ini mendukung berbagai fitur seperti:

· Manajemen pesan · Penanganan chat · Administrasi grup · Pesan interaktif & tombol aksi · Custom pairing yang stabil

Fokus Utama: Meningkatkan proses pairing dan autentikasi agar lebih stabil, aman, dan dapat dikustomisasi dengan kode sendiri.


✨ Fitur Unggulan

Fitur Deskripsi 🔐 Pairing Stabil Proses pairing otomatis & custom yang handal 🛠️ Custom Pairing Pairing dengan kode sendiri, lebih aman 💬 Pesan Interaktif Tombol, menu, dan pesan dinamis 📱 Multi-Device Kompatibel dengan fitur multi-device terbaru 🔄 Session Management Manajemen session otomatis & efisien 📦 Ringan & Modular Mudah diintegrasikan ke berbagai sistem 📚 Dokumentasi Lengkap Contoh kode siap pakai 🎯 Stabil & Cepat Performa tinggi untuk produksi


🚀 Instalasi

NPM

npm install @felixneo/baileys

Yarn

yarn add @felixneo/baileys

PNPM

pnpm add @felixneo/baileys

🎯 Memulai

Basic Setup

const {
    default: makeWASocket,
    makeCacheableSignalKeyStore,
    useMultiFileAuthState,
    DisconnectReason,
    fetchLatestBaileysVersion,
    generateForwardMessageContent,
    prepareWAMessageMedia,
    generateWAMessageFromContent,
    generateMessageID,
    downloadContentFromMessage,
    areJidsSameUser,
    getContentType,
    jidDecode,
    MessageRetryMap,
    proto,
    delay
} = require("@whiskeysockets/baileys")

const Pino = require('pino');
const { Boom } = require('@hapi/boom');
const fs = require('fs');
const readline = require("readline")
const chalk = require("chalk");
const axios = require("axios");
const qrcode = require("qrcode-terminal");
const FileType = require('file-type');

const pairingCode = true

async function InputNumber(promptText) {
    const rl = readline.createInterface({
        input: process.stdin,
        output: process.stdout
    });
    return new Promise((resolve) => {
        rl.question(promptText, (answer) => {
            rl.close();
            resolve(answer);
        });
    });
}


async function startBot() {
    const { state, saveCreds } = await useMultiFileAuthState('./session');
    const sock = makeWASocket({
        version: (await (await fetch('https://raw.githubusercontent.com/WhiskeySockets/Baileys/master/src/Defaults/baileys-version.json')).json()).version,
        auth: state,
        browser: ["Ubuntu", "Chrome", "20.0.04"],
        generateHighQualityLinkPreview: true,
        printQRInTerminal: !pairingCode,
        connectTimeoutMs: 20000,
        keepAliveIntervalMs: 30000,
        defaultQueryTimeoutMs: 60000,
        enableAutoSessionRecreation: true,
        enableRecentMessageCache: true,
        logger: Pino({ level: "silent" })
    });
if (pairingCode && !sock.authState.creds.registered) {
    let phoneNumber = await InputNumber(chalk.blue.bold('Masukan Nomor WhatsApp :\n'));
    phoneNumber = phoneNumber
        .replace(/[^0-9]/g, "")
          .replace(/\D/g, "")
            .replace(/^0/, '62')
              .replace(/^62?0/, '62')
                .replace(/^\+?62/, '62')
                  .replace(/^8/, '62');
        setTimeout(async () => {
        const code = await sock.requestPairingCode(phoneNumber)
        await console.log(`${chalk.blue.bold('Kode Pairing')} : ${chalk.white.bold(code)}`)
        }, 3500)
    }

    sock.ev.on('creds.update', saveCreds);

    sock.ev.on("connection.update", async ({ connection, lastDisconnect, qr }) => {
            if (!connection) return;
            if (connection === "connecting") {
            if (qr && !pairingCode) {
            console.log("Scan QR ini di WhatsApp:");
            qrcode.generate(qr, { small: true }); 
            }
            }
            if (connection === "close") {
                const reason = new Boom(lastDisconnect?.error)?.output?.statusCode;
                console.error(lastDisconnect.error);

                switch (reason) {
                    case DisconnectReason.badSession:
                        console.log("Bad Session File, Please Delete Session and Scan Again");
                        process.exit();
                    case DisconnectReason.connectionClosed:
                        console.log("[SYSTEM] Connection closed, reconnecting...");
                         return startBot();
                    case DisconnectReason.connectionLost:
                        console.log("[SYSTEM] Connection lost, trying to reconnect...");
                         return startBot();
                    case DisconnectReason.connectionReplaced:
                        console.log("Connection Replaced, Another New Session Opened. Please Close Current Session First.");
                        await sock.logout();
                        break;
                    case DisconnectReason.restartRequired:
                        console.log("Restart Required...");
                        return startBot();
                    case DisconnectReason.loggedOut:
                        console.log("Device Logged Out, Please Scan Again And Run.");
                        await sock.logout();
                        break;
                    case DisconnectReason.timedOut:
                        console.log("Connection TimedOut, Reconnecting...");
                        return startBot();
                    default:
                        if (lastDisconnect.error === "Error: Stream Errored (unknown)") {
                            process.exit();
                        }
                }
            } else if (connection === "open") {
                console.log(chalk.blue.bold("Bot Berhasil Tersambung √"))                
            }
        });

  sock.ev.on('messages.upsert', async (m) => {
    const msg = m.messages[0];
    if (!msg.key.fromMe && msg.message) {
      console.log('📩 Pesan masuk:', msg);

      // Reply otomatis
      await sock.sendMessage(msg.key.remoteJid, {
        text: 'Halo! Saya bot WhatsApp 👋'
      });
    }
  });

  console.log('✅ Bot siap!');
}

startBot();

📚 Fitur Lengkap

  1. 📋 Label Group

Tag/Label member grup dengan mudah:

await sock.setLabelGroup(jid, string);
  1. 🔍 Check ID Channel

Dapatkan ID channel dari URL:

const result = await sock.newsletterFromUrl(url);
// Result:
// {
//   "name": "Name Channel",
//   "id": "Channel ID",
//   "state": "Status Channel",
//   "subscribers": "Followers",
//   "verification": "UNVERIFIED",
//   "creation_time": 1728547155,
//   "description": "Description Channel"
// }
  1. 🚫 Check Banned Number

Cek status nomor yang diblokir:

await sock.checkWhatsApp(jid);

💬 SendMessage Documentation

📤 Status Mention Group & Private

Kirim status mention di grup/private chat:

await sock.sendStatusMention(content, jid);

📤 Status Group Message V2

Kirim status grup versi 2:

await sock.sendMessage(jid, {
  groupStatusMessage: {
    text: "Hello World"
  }
});

🖼️ Album Message (Multiple Images)

Kirim multiple gambar dalam satu album:

await sock.sendMessage(jid, {
  albumMessage: [
    { image: imageBuffer1, caption: "Foto pertama" },
    { image: { url: "URL_IMAGE" }, caption: "Foto kedua" }
  ]
}, { quoted: m });

🎉 Event Message

Buat undangan event WhatsApp:

await sock.sendMessage(jid, {
  eventMessage: {
    isCanceled: false,
    name: "Hello World",
    description: "Deskripsi event",
    location: {
      degreesLatitude: 0,
      degreesLongitude: 0,
      name: "Lokasi Event"
    },
    joinLink: "https://call.whatsapp.com/video/merlinus",
    startTime: "1763019000",
    endTime: "1763026200",
    extraGuestsAllowed: false
  }
}, { quoted: m });

📊 Poll Result Message

Tampilkan hasil polling:

await sock.sendMessage(jid, {
  pollResultMessage: {
    name: "Hello World",
    pollVotes: [
      { optionName: "TEST 1", optionVoteCount: "112233" },
      { optionName: "TEST 2", optionVoteCount: "1" }
    ]
  }
}, { quoted: m });

🎯 Interactive Message (Simple)

Kirim pesan interaktif dengan tombol copy:

await sock.sendMessage(jid, {
  interactiveMessage: {
    header: "Hello World",
    title: "Hello World",
    footer: "telegram: @merlinussss",
    buttons: [{
      name: "cta_copy",
      buttonParamsJson: JSON.stringify({
        display_text: "copy code",
        id: "123456789",
        copy_code: "ABC123XYZ"
      })
    }]
  }
}, { quoted: m });

🎯 Interactive Message with Native Flow

Pesan interaktif dengan native flow:

await sock.sendMessage(jid, {
  interactiveMessage: {
    header: "Hello World",
    title: "Hello World",
    footer: "telegram: @merlinussss",
    image: { url: "https://example.com/image.jpg" },
    nativeFlowMessage: {
      messageParamsJson: JSON.stringify({
        limited_time_offer: {
          text: "idk hummmm?",
          url: "https://t.me/merlinussss",
          copy_code: "z4phdev",
          expiration_time: Date.now() * 999
        },
        bottom_sheet: {
          in_thread_buttons_limit: 2,
          divider_indices: [1, 2, 3, 4, 5, 999],
          list_title: "z4phdev",
          button_title: "z4phdev"
        }
      }),
      buttons: [{
        name: "cta_copy",
        buttonParamsJson: JSON.stringify({
          display_text: "copy code",
          id: "123456789",
          copy_code: "ABC123XYZ"
        })
      }]
    }
  }
}, { quoted: m });

🛍️ Product Message

Kirim pesan produk catalog:

await sock.sendMessage(jid, {
  productMessage: {
    title: "Produk Contoh",
    description: "Ini adalah deskripsi produk",
    thumbnail: { url: "https://example.com/image.jpg" },
    productId: "PROD001",
    retailerId: "RETAIL001",
    url: "https://example.com/product",
    body: "Detail produk",
    footer: "Harga spesial",
    priceAmount1000: 50000,
    currencyCode: "USD",
    buttons: [{
      name: "cta_url",
      buttonParamsJson: JSON.stringify({
        display_text: "Beli Sekarang",
        url: "https://example.com/buy"
      })
    }]
  }
}, { quoted: m });

📄 Interactive Message with Document

Kirim pesan interaktif dengan dokumen (buffer):

await sock.sendMessage(jid, {
  interactiveMessage: {
    header: "Hello World",
    title: "Hello World",
    footer: "telegram: @merlinussss",
    document: fs.readFileSync("./document.pdf"),
    mimetype: "application/pdf",
    fileName: "document.pdf",
    jpegThumbnail: fs.readFileSync("./thumbnail.jpeg"),
    buttons: [{
      name: "cta_url",
      buttonParamsJson: JSON.stringify({
        display_text: "Telegram",
        url: "https://t.me/kaitlynid"
      })
    }]
  }
}, { quoted: m });

💳 Request Payment Message

Kirim permintaan pembayaran:

await sock.sendMessage(jid, {
  requestPaymentMessage: {
    currency: "IDR",
    amount: 10000000,
    from: m.sender,
    sticker: JSON.parse(quotedContent),
    background: {
      id: "100",
      fileLength: "0",
      width: 1000,
      height: 1000,
      mimetype: "image/webp",
      placeholderArgb: 0xFF00FFFF,
      textArgb: 0xFFFFFFFF,
      subtextArgb: 0xFFAA00FF
    }
  }
}, { quoted: m });

🤝 Mengapa Memilih @felixneo/baileys?

Keunggulan Deskripsi 🔐 Pairing Stabil Proses pairing yang handal & anti-gagal 🛠️ Custom Pairing Kode pairing dapat dikustomisasi 💬 Fitur Lengkap Mendukung semua fitur WhatsApp terbaru ⚡ Performa Tinggi Ringan, cepat, dan efisien 📱 Multi-Device Dukungan penuh multi-device 🔄 Session Auto Manajemen session otomatis 📚 Dokumentasi Lengkap dengan contoh kode 🎯 Produksi Ready Stabil untuk skala bisnis


📱 Channel & Komunitas

Ikuti perkembangan terbaru melalui channel resmi:

· WhatsApp Channel: Channel WhatsApp · Telegram: Telegram Contact


👥 Kontributor

Terima kasih kepada para kontributor yang telah membantu mengembangkan project ini 💖


📝 Lisensi

MIT © Felix Paradox


⭐ Dukungan

Jika Anda menyukai project ini, berikan ⭐ di GitHub dan bagikan ke teman-teman!

OX Radar and Response Center

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.

Where it’s listed

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).

  • npm @felixneo/baileys

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Copy of Template Design OX Blog (3)
Research

Ruby2Shell: Ruby Memory Corruption Flaws Expose Applications to Remote Code Execution, But is it an Actual Risk?

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

Frame 2085668439 (1)
Group 1261154229