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

wavi-lib

Latest version: v0.14.1

Overview

Last scanned
25 Nov 2026
Published
25 Nov 2026
PyPI package Publisher: josetabuyo
1 Stars
0 Forks
29 Versions
2.3K Downloads
Python Repo language

Scan summary

wavi-lib was last scanned on 25 Nov 2026 at version 0.14.1. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 29 versions; the latest 3 were published within 2 days (24 and 25 Nov 2026).
  • Findings: No rules fired in version 0.14.1.
  • Downloads: 2,266 downloads.

Versions

29 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.14.1 LATEST 25 Nov 2026 No rules fired
0.14.0 25 Nov 2026 No rules fired
0.13.0 24 Nov 2026 No rules fired
0.12.2 17 Nov 2026 Not shown
0.12.1 17 Nov 2026 Not shown

No rules fired in 0.14.1

Findings

Findings for v0.14.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 score describes 0.14.1; other versions have their own rules, not their own score.

README

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

wavi — WhatsApp Web Automation via Vision

CLI tool for WhatsApp Web automation. Extracts message history using a vision pipeline (screenshot → OCR → bubbles), and handles navigation and sidebar state via DOM scraping.

Commands

Command What it does Approach
wavi connect [session] Start Chrome daemon, authenticate via QR —
wavi status [session] Check if daemon is alive and authenticated DOM
wavi reload [session] Safe reload — about:blank flush → WA → verify auth —
wavi get <contact> Extract full message history from a chat (--grow to page through in chunks) Vision
wavi send <contact> <message> Send a message; in a group @Name becomes a real mention of a participant (--no-mentions to type @ literally). --attach FILE (repeatable) sends files — PDF, PPT, any document or image — with the message as caption DOM + keyboard (attachments: paste)
wavi edit <contact> <match> <new> Edit one of your own sent messages (WA's 15-min window); --fragment replaces only <match> vision (OCR) + keyboard
wavi reply <contact> <match> <text> Reply quoting one message (yours or anyone's); --from narrows by sender, --index N picks among matches vision (OCR) + keyboard
wavi open <contact> Open a chat and leave it on screen, sending nothing. A phone number that isn't a contact and has no chat yet opens via web.whatsapp.com/send?phone= (same safe about:blank reload as wavi reload) — send/get/etc. do the same fallback DOM + safe reload
wavi add-contact <phone> <name> Save a new contact through WA's own Nuevo contacto form; country picked from the +code; only saved when WA confirms the number is on WhatsApp. --last-name, --sync (also to the phone's address book), --open DOM (temporary bridge)
wavi react <contact> [emoji] React to a message: --last (default; --from X = X's last), or --match TEXT (+ --from/--index, like reply). 👍❤️😂😮😢🙏 are one click; any other emoji is found in the full picker; a word (fuego) searches it. Never repeats a reaction already there (a 2nd click would remove it); --remove takes yours off (one of the six quick ones). Verified afterwards vision (pick) + DOM (temporary bridge)
wavi draft show\|clear <contact> Show or empty a chat's compose-box draft (it blocks send); wavi send --discard-draft does both and sends DOM + keyboard
wavi media <contact> Download a chat's videos, photos and documents (full files) + media.json Media viewer / chat (DOM)
wavi check-updates [session] Detect new inbound messages in sidebar DOM
wavi list-contacts [session] List all contacts in the "New chat" panel DOM
wavi queue [session] Show operation queue status —
wavi stop [session] Gracefully shut down the Chrome daemon —
wavi alias set <name> <session> Assign a friendly alias to a session —
wavi alias list List all aliases —
wavi alias remove <name> Remove an alias —
wavi install-skill Install the Claude Code /wavi skill to ~/.claude/skills/wavi/ —
Session aliases

All commands accept an alias in place of a phone number. Aliases are stored in data/sessions/aliases.json.

wavi alias set pulpo-bot 5491155612767
wavi alias set mateo 5491122608221
wavi status pulpo-bot       # same as: wavi status 5491155612767
wavi get mateo "Contacto"

Architecture

Vision pipeline (wavi get)
Screenshot → Crop chat panel → Color-mask detection → Bbox extraction
    ↓
    OCR (tiled) → Timestamp extraction → Message classification → Bubble list

Used for message content because WhatsApp Web obfuscates the message DOM in ways that make direct scraping unreliable.

Key files: element_detector.py, vision.py, runner.py

DOM scraping

Navigation and sidebar state use JavaScript evaluated directly on the page. Each JS constant in session.py has a comment documenting its key selector and the vision-based fallback to implement if the selector breaks after a WA update. When a DOM-scraped feature stops working, check session.py → "DOM scraping inventory" block at the top.

Chrome daemon

Chrome runs as a long-lived background process (started by wavi connect). Playwright connects and disconnects for each operation without ever killing Chrome. Killing Chrome mid-session corrupts WA's IndexedDB and invalidates the session. Shutdown is done only via wavi stop, which navigates to about:blank first so WA can flush state.

⚠️ Session safety — critical rules

Never call Page.reload or Storage.clearDataForOrigin on the WhatsApp tab via raw CDP.

WhatsApp Web holds in-flight IndexedDB write transactions while running. Interrupting the page mid-transaction (via Page.reload, Page.navigate, or storage wipe) corrupts the LevelDB database and forces a full QR re-scan. Storage.clearDataForOrigin is worse — it deletes auth tokens entirely.

If WA becomes unresponsive or throttled, use the safe cycle:

# Option A — soft reload (~15s, Chrome keeps running)
wavi reload pulpo-bot
# → session=restored  ✓
# → session=qr_needed  auth lost, need QR scan

# Option B — full restart (~30s)
wavi stop pulpo-bot && wavi connect pulpo-bot

External agents (Pulpo, scripts, automation): never send CDP commands directly to the WA tab. Always go through wavi CLI or the HTTP API (wavi serve). If wavi reload returns qr_needed, alert a human — do not attempt to recover programmatically.

Setup

# Install uv if needed
curl -LsSf https://astral.sh/uv/install.sh | sh

git clone <repo> && cd wavi
uv sync

Quick start

# 1. Start daemon and scan QR
wavi connect

# 2. Extract message history
wavi get "Contact Name"

# 2b. Long chat — page through in blocks of 10 iterations
wavi get "Contact Name" --grow --max-iter 10   # block 1
wavi get "Contact Name" --grow --max-iter 10   # block 2 (continues where block 1 stopped)
# repeat until "history is now complete" or no more messages

# 3. Poll for new messages
wavi check-updates           # first run: saves baseline
wavi check-updates           # subsequent: no_updates or updates + contact list

wavi get flags

Flag Behavior
--max-iter N Stop after N scroll iterations (default 300). In --grow mode, N counts only new-content iterations per run.
--from YYYY-MM-DD Stop scrolling when the oldest visible day pill is before this date. Drop bubbles older than the date.
--newest Load existing history_bubbles.json and stop the moment a known message is found. Prepends new messages. Goes toward the present.
--grow Load existing history, fast-forward past known content, then capture N more iterations toward the past. Saves a grow_checkpoint.json so each run continues where the last one stopped. Incompatible with --newest.
--assets DIR Override the output directory (default <wavi output dir>/<session>/<contact>/ — the repo's output/ on dev installs, ~/.local/share/wavi/output/ otherwise, or $WAVI_OUTPUT_DIR; never the caller's cwd).
--json-out Print the bubble list as JSON to stdout instead of the summary table.
--grow workflow for long chats
wavi get "Contact" --grow --max-iter 10   # run 1: captures first 10 new-content iterations
wavi get "Contact" --grow --max-iter 10   # run 2: fast-forwards to boundary, captures next 10
# repeat — prints "history is now complete" when scrollTop reaches 0

State is stored in <wavi output dir>/<session>/<contact>/grow_checkpoint.json. Delete it to restart from scratch (also delete history_bubbles.json).

wavi edit

wavi edit default "DATA LAKE - Técnico" "atías, ya vi" "Matías, ya vi" --fragment

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

  • pypi-releases wavi-lib

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 (1)
Research

Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret Stealing Malware Via GitHub Actions & npm

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?

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