Upgrade notes (behavior changes)
WWEBJS_WEB_VERSIONdefaults to native WhatsApp Web (off) instead of fetching remote HTML from GitHub.- Exact remote
WWEBJS_WEB_VERSIONpins require a 64-character hexWWEBJS_WEB_VERSION_SHA256orWWEBJS_WEB_VERSION_ALLOW_UNVERIFIED=true, whileautoandlatestremote modes requireWWEBJS_WEB_VERSION_ALLOW_UNVERIFIED=true. docker-proxyindocker-compose.ymlis now opt-in under--profile docker-proxy, and local Docker Unix socket fallback requiresDOCKER_ALLOW_LOCAL_SOCKET=true.GET /api/sessions/{sessionId}/proxynow requires an unscopedADMINkey, matchingPATCH.GET /api/sessions/stats/overviewomitsmemoryUsagefor non-admin and session-scoped keys; Go SDKSessionStatsOverview.MemoryUsageis now*MemoryUsage(nilwhen omitted).GET /api/infra/export-dataredacts plugin instancesecret,verifyToken, andsecret: trueconfig fields by default; pass?includePluginSecrets=truewhen migrating credentials.- MCP
GroupGetInviteCodemoved from thereadtier to thewritetier and is omitted whenMCP_READONLY=true. MCP_MAX_RESULT_BYTESdefaults to100000bytes (100 KB); setMCP_MAX_RESULT_BYTES=0to restore unlimited results and base64 resource offloading.- Dashboard authentication uses an
HttpOnly; SameSite=Strictopenwa_sessioncookie stored inmain.sqlite(browser_sessions) instead ofsessionStorage. - Non-safe dashboard cookie requests require
X-Requested-With: OpenWA-Dashboardand same-origin verification, and cross-node forwarding returns409for cookie-only requests. - Raise
stop_grace_period(Docker) andterminationGracePeriodSeconds(Kubernetes) to 90 s to accommodate the 82 s forced teardown limit. - Helm
replicaCountvalues above 1 fail template rendering because a single session data volume does not support concurrent replicas. - Forwarded inter-node
POST,PUT, andPATCHrequests with non-JSON or non-form content types whose bodies are rejected unread now return400instead of forwarding synthesized{}asapplication/json.
Added
- Browser session cookie endpoints (
POST,GET,DELETE /api/auth/session) backed bybrowser_sessionsinmain.sqlite, configurable viaDASHBOARD_SESSION_TTL_MSandDASHBOARD_SESSION_COOKIE_SECURE. HOOK_PRE_EGRESS_FAIL_CLOSEDopt-in fail-closed mode formessage:sendingandwebhook:beforehooks, releasing send idempotency keys and recording undelivered webhook failures on hook error.- Optional
Idempotency-Keysupport onPOST /api/sessions/{sessionId}/messages/click-buttonacross the REST API,openapi.json, and all five SDKs. - Opt-in
?includePluginSecrets=truequery parameter onGET /api/infra/export-dataand a matching dashboard checkbox across all 15 locales. SQLITE_JOURNAL_MODE(WALdefault,DELETEopt-out for network filesystems), automatic0600database permissions before enabling WAL, and shutdownwal_checkpoint(TRUNCATE).- High-volume composite and retention indexes across
messages,webhook_delivery_failures,message_batches, andintegration_delivery_failures(1791900000000-AddHighVolumeQueryIndexes.ts). - Per-session enabled automation rule cache with invalidation on mutations, session retirement, and data imports.
SESSION_PROXY_SECRETopt-in HMAC-SHA256 authentication for inter-node forwarded hops so owning nodes skip double-throttling.- Helm
secretChecksumAnnotationtoggle (defaulttrue, automatically omitted whenexistingSecretis set) so operators can opt out of Secret digest pod annotations. - Install-time Baileys patch
scripts/patch-baileys-media-signal.jsforwardingoptions.signalintogetHttpStreamso timed-out or capped inbound downloads abort immediately.
Changed
- MCP tool outputs carrying user-authored WhatsApp text are framed in per-response randomized nonce boundary tags that survive truncation.
- Bundled
postgres,redis,minio, anddocker-proxysidecars drop Linux capabilities and enforce memory and PID limits. - Bundled
redissupports optionalREDIS_PASSWORDauthentication via--requirepass. - Restrict
PUPPETEER_ARGSto an explicit Chromium flag allowlist in boot validation andPUT /api/infra/config. - Enforce
./datasubdirectory containment on dashboard-configured local storage and session paths. - JavaScript, Python, Go, PHP, and Java SDKs make
SessionStatsOverview.memoryUsageoptional and add an optional idempotency key toclickButton. - Baileys caches positive
onWhatsAppresolutions on outbound 1:1 sends (5,000-entry LRU, 15-minute TTL) to avoid repeatedusyncround-trips. EventsGatewaycaches unmapped 1:1 chat lookups for 5 seconds with immediate local invalidation when a mapping is learned.EventsGatewaytracks chat-restricted WebSocket replicas in Redis to skip unnecessarylid_mappingslookups when no restricted client is connected.- Retire superseded
whatsapp-web.jsinstall-time patchers (patch-wwebjs-201832.jswithwwebjs-201832.patch, andpatch-wwebjs-group-description.js) and remove thewwebjs-backport-check.tsstartup check. - Remove the unused GNU
patchpackage from the production Docker image. - Exclude
src/engine/engine-capability-matrix.tsfrom productiontsconfig.build.jsonoutput while keeping it for documentation parity checks. - Run dashboard
npm run test:covin CI and release workflows. - Add a PHP syntax check step for PHP SDK sources in SDK CI.
- Document HTTP/HTTPS session-proxy DNS rebinding exposure and required egress ACLs alongside
SESSION_PROXY_URL_FETCH. - Reject non-scalar
?codequery arrays and objects onGET /api/sessions/{sessionId}/groups/join-infowith400. - Bound plugin webhook delivery capability timeouts to the dispatch deadline with retry deduplication, scope
ctx.net.fetchallowlists outside active dispatches, and check symlink containment recursively across plugin package installs. - Enforce
replicaCount <= 1, validterminationGracePeriodSecondsandtmpVolumeSizeLimitinputs, and disallowPORToverrides in Helmvalues.schema.json, bound/tmpemptyDir.sizeLimitin the chart template, and hardenscripts/restore.shpath containment and pre-restore checks. - Exclude
*.sqlite-waland*.sqlite-shm(alongside existing.db-wal/.db-shm) patterns from Docker build contexts in.dockerignore. - The amd64 image's Chrome for Testing 158.0.8127.36 to 158.0.8127.88, picking up the browser security fixes released since; the arm64 image keeps the chromium package Debian ships.
Fixed
- Baileys: release inbound limiter slots before waiting on preparation room so slow message preparation cannot stall unrelated chats.
- Baileys: fence generation timers and detach socket listeners with proxy agent teardown on disconnect and terminal close.
- Baileys: make
BaileysSessionStoreLRU eviction and batched state twin lookups linear. whatsapp-web.js: guard disconnect, auth-failure, and stuck-auth lifecycle races across adapter generations.- Engine: resolve self LID admin status in LID groups without caching null lookups permanently.
- Plugins: strip secrets across base, env, session, and instance configs whenever
allowConfigHoststargets redirect. - Plugins: serialize per-plugin instance mutations so concurrent updates cannot interleave.
- Plugins: scope
ctx.net.fetchallowed hosts to the active session and dispatch context. - Plugins: restrict config-UI CSP
script-srcto'unsafe-inline'and skip noncing external SVG scripts. - Plugins: memoize config-UI HTML hardening to avoid reparsing on every request.
- Plugins: propagate
AbortSignalinto sandbox capability calls so timed-out or terminated workers cancel in-flightnet.fetchrequests promptly. - Plugins: probe idle sandbox workers periodically to detect and reclaim event-loop spins without incoming dispatches.
- Plugins: suppress hook re-execution on own-send
message:sentechoes while keeping persistence, WebSockets, and webhooks intact. - Security: reject credentialed or malformed SSRF redirect locations and redact IPv6 endpoints in SSRF errors.
- Security: block deprecated ORCHID and non-public Teredo IPv6 addresses in SSRF host validation.
- Security: enforce per-object key limits and NUL-byte sanitization on
ImportDataDtoimports. - Security: verify realpath symlink containment and use
O_NOFOLLOWon local storage and storage-import writes. - Automation: require explicit positive chat-kind opt-in for channel, broadcast, and status chats on automation rules.
- Messages: isolate
message:sendinghook payloads while pinning caller routing and status recipient fields. - Messages: archive outbound echo media even when already merged as
DELIVEREDorREAD. - Messages: harden
BulkMessageServicemedia handling, abortable delays, shutdown drains, and atomic result persistence. - Messages: align idempotency expiry checks to
<=and drain pending idempotency writes on shutdown. - Sessions: preserve
x-request-id, bodylessDELETE, and form-urlencoded bodies inSessionProxyInterceptor. - Sessions: evaluate PostgreSQL session leases on the database UTC clock (
clock_timestamp() AT TIME ZONE 'UTC') and SQL-fence status and metadata writes on{ id, nodeId }. - Sessions: explicitly delete
automation_rulesrows during session deletion and full data restore instead of relying on SQLite foreign-key cascades. - Queue: set
socketTimeout(1500 ms) and disableautoResendUnfulfilledCommandson the Redis producer so silent peers fail fast without replaying stale commands. - Queue: defer busy ingress ordering keys via
DelayedErrorinstead of holding BullMQ worker slots so one hot conversation cannot block unrelated keys. - Webhooks: commit persisted message rows and pending
webhook_outbox_eventsrows atomically in one transaction so a crash cannot drop webhooks for saved messages. - Webhooks: mark outbox rows queued before BullMQ enqueue with rollback on enqueue failure.
- Webhooks: prune legacy
NULL-state outbox rows and close outbox entries for deleted webhooks on worker failure. - Webhooks: guard PostgreSQL redrive JSON predicates safely across PostgreSQL 12 through 18.
- Storage: await S3 bucket initialization before purges and fail closed on
deleteFilewhen configured S3 is unavailable. - Reliability: isolate throwing shutdown listeners and add cooperative bounded shutdown drains across maintenance loops.
- Reliability: cap in-memory
resolvedSendIdsandfailingWebhooksmaps and clear idlesessionWritesand deleted webhook IDs. - Events: accept Origin-less same-origin Socket.IO polling handshakes via
Sec-Fetch-Site: same-originand same-originReferervalidation. - Search: read PostgreSQL
datctypewhen probing existing trigram indexes on replicas so C/POSIX databases enforce ASCII constraints. - Search: route chat-restricted
SEARCH_PROVIDER=autorequests tobuiltin-ftswhen a search plugin is enabled. - Database: name unnamed entity
@Indexdecorators to match existing migrations and eliminate main-connection schema drift. - Dashboard: match own chat reactions by exact session phone or
meacross cached message slices. - Dashboard: stabilize
ChatThreadscroll listeners and isolate composer draft state to eliminate keystroke re-render churn. - Dashboard: cap unbounded list pagination and percent-encode dynamic API path segments.
- Dashboard: serve inline document downloads through inert
application/octet-streamBlobs with deferred URL revocation. - Dashboard: parse balanced search highlight marks safely with dataset scroll matching.
- Dashboard: exclude shimmed non-code assets and bound concurrency during coverage runs.
- PHP SDK: forward
Idempotency-Keyheaders, reject empty API keys, and serialize boolean query parameters astrue/falseinClient::request(). - PHP SDK: return an empty array instead of
nullfromWebhooksResource::deliveryFailures()on empty responses. - Python SDK: pin
asyncio_default_fixture_loop_scope = "function"in test configuration. - Tests: raise bulk orphan-sweep Jest timeouts to 30s.
- Tests: close PostgreSQL import test
DataSourcepools intry/finallyblocks. - Config & Security: track chunked request body byte budgets incrementally as chunks arrive, bound in-memory throttler fallback maps, add 10s SOCKS connect timeouts with abort cancellation, cap plugin upload multipart counts, and apply MCP rate limits without dropping tool errors.
- Storage & Data: stream storage archive transfers with bounded temporary directories, resolve S3 local-fallback recovery sync races, keep SQLite media archive CAS predicates UTF-16 safe, and export PostgreSQL snapshots inside
REPEATABLE READtransactions. - Search, Messages & Webhooks: prevent NULL SQLite FTS indexing corruption, normalize FTS trigger comparisons, isolate PostgreSQL connection cleanup, use UTC midnight quota bounds, cap automation rule cooldown maps, generate unique integration redrive keys, and drain periodic webhook prunes on shutdown.
- Engines & Lifecycle: prevent regional JID
ephemeralExpirationleaks on non-content sends, close inbound limiters on logout, fence adapter and LID store teardowns, separate session renewal DB passes fromonLeaseLostteardown, serialize mid-boot signals, and redact sensitive keys in logs. - Dashboard & SDKs: isolate cross-tab and cross-actor query caches, lock active modals and search navigation during loading or saves, add Go retry backoff jitter, reject scalar 2xx payloads across PHP
HttpExecutorcalls, and clarify unsigned webhook headers vs signed bodies in docs.