Skip to content

Free, Open Source, Self-Hosted WhatsApp API Gateway

Merge PR #286: fix: bulk-message terminal status (cancel/stopOnError) + DTO @IsIn

rmyndharis720c23fe9ef1
diff --cc CHANGELOG.md
index 82102c7dd,ddf6c6776..4d56351ba
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@@ -7,19 -7,16 +7,29 @@@ and this project adheres to [Semantic V
## [Unreleased]
+### Security
+
+- **Write endpoints for groups, contacts, labels, channels, catalog, and status now require the
+ `OPERATOR` role**, closing an unintended privilege gap where a `VIEWER`-role API key could create/leave
+ groups, manage participants, block contacts, post statuses, send products, and mutate labels. Read
+ (`GET`) endpoints remain open to any valid key, matching the message/session controllers.
+ > ⚠️ If you used a `VIEWER` key for any of these write operations, switch it to `OPERATOR` (or `ADMIN`).
+- Patched a high-severity `ws` advisory (and a moderate `qs` DoS) on the live socket.io transport by
+ bumping in-range deps (`ws`→8.21.0, `engine.io`→6.6.9, `qs`→6.15.2, plus the incidental
+ re-resolutions `npm audit fix` pulled in) in both the API and dashboard. Lockfile-only — no
+ `package.json`/API change. The remaining advisories are build-only (`sqlite3`→`node-gyp`→`tar`)
+ and require a breaking `sqlite3` major, deferred.
+
+ ### Fixed
+
+ - **Bulk-message batch status is now correct on cancel and stop-on-error.** A cancelled batch could be
+ silently reverted to `PROCESSING` (the final save overwrote the `CANCELLED` status with the stale
+ in-memory one), and a `stopOnError` abort was reported as `COMPLETED` whenever at least one message had
+ already been sent. The terminal status is now re-derived (cancelled → `CANCELLED` with reconciled
+ counters; stop-on-error → `FAILED`; otherwise `COMPLETED`/`FAILED`).
+ - Bulk-message item `type` is now validated against the allowed set (`text`/`image`/`video`/`audio`/`document`)
+ with `@IsIn`, so an invalid type is rejected up front instead of failing mid-send.
+
## [0.2.8] - 2026-06-17
The engine-pluggability release: the whatsapp-web.js delivery-ack, message-type, and JID specifics are