Skip to content

Free, Open Source, Self-Hosted WhatsApp API Gateway

fix(deps): resolve five production advisories

Yudhi Armyndharisfed7a4de8280
diff --git a/.trivyignore b/.trivyignore
index 41e84bbbb..4baea9cc5 100644
--- a/.trivyignore
+++ b/.trivyignore
@@ -2,16 +2,23 @@
# Everything else — anything in the application's own dependency tree, and every OS package —
# still blocks promotion (see the image-scan job in .github/workflows/release.yml).
-# CVE-2026-14257 — brace-expansion ReDoS, fixed upstream in 5.0.8.
+# CVE-2026-14257 and CVE-2026-69152 — brace-expansion ReDoS, and the follow-up that bypasses the
+# first one's mitigation. Fixed upstream in 5.0.8 and 5.0.9 respectively.
#
-# The only copy in the image is the one bundled inside the npm CLI
-# (/usr/local/lib/node_modules/npm/node_modules/brace-expansion). The application tree resolves
-# 5.0.8 via the root `overrides` block, and npm itself is never on the request path: the
-# entrypoint runs `node dist/main`, and npm is present only for the documented operator runbooks
-# (`docker exec openwa npm run cli …`). Reaching this code requires an operator to run an npm
-# command with an attacker-chosen glob inside the container.
+# The only copies left in the image are the ones bundled inside the npm CLI
+# (/usr/local/lib/node_modules/npm/node_modules/brace-expansion, currently 5.0.7). npm is never on
+# the request path: the entrypoint runs `node dist/main`, and npm is present only for the
+# documented operator runbooks (`docker exec openwa npm run cli …`). Reaching this code requires an
+# operator to run an npm command with an attacker-chosen glob inside the container.
#
-# npm 12 — the newest release, already installed by the Dockerfile — still bundles 5.0.7, so
-# there is currently no npm version that clears this finding. Drop this entry once npm ships a
-# bundle with brace-expansion >= 5.0.8.
+# npm 12 — the newest release, already installed by the Dockerfile — still bundles 5.0.7, so there
+# is currently no npm version that clears either finding. Drop both entries once npm ships a bundle
+# with brace-expansion >= 5.0.9.
+#
+# These are ID-level ignores, so they would also silence the same CVEs in the APPLICATION tree,
+# which this file otherwise refuses to do. What keeps that honest is the root `overrides` entry
+# pinning brace-expansion to ^5.0.9: npm cannot resolve the application tree below the fixed
+# version, so there is no app-tree finding for these ids to hide. Raise that floor alongside any
+# future brace-expansion advisory rather than widening this list.
CVE-2026-14257
+CVE-2026-69152
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 1e6260c69..365922560 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,6 +7,24 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
+### Security
+
+- **Five advisories in the production dependency tree resolved**, all through transitive bumps —
+ `brace-expansion` 5.0.9, `fast-uri` 3.1.5, `hono` 4.13.0, `ip-address` 10.4.0, `socket.io-parser`
+ 4.2.7. No direct dependency changed and nothing was added or removed.
+
+ The one that mattered most for release was `brace-expansion`. A second advisory
+ (CVE-2026-69152) bypasses the mitigation the first one's fix introduced, and it reached the
+ **application's own tree** in the shipped image — which the image-scan allow-list explicitly does
+ not cover. The next release scan would have failed on it. The root override floor now sits at
+ ^5.0.9 so the application tree cannot resolve below the fix, which is also what keeps the
+ id-level allow-list entries for npm's own bundled copy from silently hiding an app-tree
+ regression.
+
+ `ip-address` carries SSRF and trust-boundary advisories, but this project's SSRF guard does not
+ use it — the guard resolves and pins addresses through Node's built-in `net` and `dns`. The
+ vulnerable copy reached the tree through the rate limiter and the SOCKS proxy agent.
+
### Fixed
- **Voice notes sent through the Baileys engine now carry a waveform.** Baileys draws the amplitude
diff --git a/package-lock.json b/package-lock.json
index 8b237c6bb..b8ba874a1 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -6349,9 +6349,9 @@
"license": "MIT"
},
"node_modules/brace-expansion": {
- "version": "5.0.8",
- "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.8.tgz",
- "integrity": "sha512-JZyDyq3D4AUifKTPOB7DELf6XsB3WdPuNxCtob1vFXPsSXhdAiHBWJ/tJ8HAc9aH84BK+5JFZLNkJKx3G9kzQg==",
+ "version": "5.0.9",
+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.9.tgz",
+ "integrity": "sha512-ScQ4IuvIEF1TMlP7Zt+vjJ//9zlPb2SDcxWxM3bk8s6t6GGdJ7KO1dCcTidOPJKePW30LE/2cT7wCyPho9/Wxg==",
"license": "MIT",
"dependencies": {
"balanced-match": "^4.0.2"
@@ -8509,9 +8509,9 @@
"license": "MIT"
},
"node_modules/fast-uri": {
- "version": "3.1.4",
- "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.4.tgz",
- "integrity": "sha512-8JnbkQ4juDyvYs4mgFGQqg4yCYtFDtUtmp2QIQq11ZZe5CFQ5wcqm1rqDgAh/QdMySuBnPzMUiJUNZG5N/AiQw==",
+ "version": "3.1.5",
+ "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.5.tgz",
+ "integrity": "sha512-gHwA1O9LDIcKunMKhObS/HimwtehO1nPUECKAu5TpKgaO19fcWEl4bliWe1jWxVFvIXztJjjQ4L8XQ1EU9f7Jw==",
"funding": [
{
"type": "github",
@@ -9171,9 +9171,9 @@
}
},
"node_modules/hono": {
- "version": "4.12.27",
- "resolved": "https://registry.npmjs.org/hono/-/hono-4.12.27.tgz",
- "integrity": "sha512-1yrb/+w6HWQJrUCLkJ2IF5jNIPvvFkblV5RNOYl6bV+OA6p9GLcMpHFFGTosSvHvcAUibuUukRqhlYI4z32C7Q==",
+ "version": "4.13.0",
+ "resolved": "https://registry.npmjs.org/hono/-/hono-4.13.0.tgz",
+ "integrity": "sha512-jhunvfHWxd7J5EFfSgH4xsYJzSe/lfqbUCxiyyeaQasUsXeEHXtzVid+7EOGByc5JnFa23SSFL3Y2RV/z1T+eQ==",
"license": "MIT",
"peer": true,
"engines": {
@@ -9375,9 +9375,9 @@
}
},
"node_modules/ip-address": {
- "version": "10.2.0",
- "resolved": "https://registry.npmjs.org/ip-address/-/ip-address-10.2.0.tgz",
- "integrity": "sha512-/+S6j4E9AHvW9SWMSEY9Xfy66O5PWvVEJ08O0y5JGyEKQpojb0K0GKpz/v5HJ/G0vi3D2sjGK78119oXZeE0qA==",
+ "version": "10.4.0",
+ "resolved": "https://registry.npmjs.org/ip-address/-/ip-address-10.4.0.tgz",
+ "integrity": "sha512-oSK96Grm3aP6OrS263xVxbNDGVL7rzBtYdpGqlDG8iQdoenDoTs/nkki+DflYbAEE8Xl6o5YxhxlrKvI3nqKXQ==",
"license": "MIT",
"engines": {
"node": ">= 12"
@@ -13054,9 +13054,9 @@
}
},
"node_modules/socket.io-parser": {
- "version": "4.2.6",
- "resolved": "https://registry.npmjs.org/socket.io-parser/-/socket.io-parser-4.2.6.tgz",
- "integrity": "sha512-asJqbVBDsBCJx0pTqw3WfesSY0iRX+2xzWEWzrpcH7L6fLzrhyF8WPI8UaeM4YCuDfpwA/cgsdugMsmtz8EJeg==",
+ "version": "4.2.7",
+ "resolved": "https://registry.npmjs.org/socket.io-parser/-/socket.io-parser-4.2.7.tgz",
+ "integrity": "sha512-IH/iSeO9T6gz1KkFleGDWkG9N3dl4jXVYUtMhIqH10Md0ttMer8nUNWiP1DKuNrybD2xBrixLJdCC9J6ECoYkg==",
"license": "MIT",
"dependencies": {
"@socket.io/component-emitter": "~3.1.0",
diff --git a/package.json b/package.json
index 0c5bf00f8..d424def53 100644
--- a/package.json
+++ b/package.json
@@ -376,7 +376,7 @@
},
"overrides": {
"shell-quote": "^1.10.0",
- "brace-expansion": "^5.0.8",
+ "brace-expansion": "^5.0.9",
"js-yaml": "^5.2.2"
}
}