Free, Open Source, Self-Hosted WhatsApp API Gateway
TypeScript apibotgatewayself-hostedwhatsappwhatsapp-apiwhatsapp-automationwhatsapp-botwhatsapp-gatewaywhatsapp-gateway-apiwhatsapp-webwhatsapp-web-api
ci(release): accept the unfixed arm64 Chromium CVEs in the image scan
Yudhi Armyndharis8172011e23ef
diff --git a/.trivyignore b/.trivyignoreindex 41e84bbbb..bca9049ee 100644--- a/.trivyignore+++ b/.trivyignore@@ -15,3 +15,33 @@# there is currently no npm version that clears this finding. Drop this entry once npm ships a# bundle with brace-expansion >= 5.0.8.CVE-2026-14257++# CVE-2026-16804 / -16805 / -16806 / -16807 — Chromium, arm64 image ONLY.+#+# These four land on `chromium`, `chromium-common` and `chromium-sandbox` (12 findings). They are+# arm64-only by construction: Chrome for Testing publishes no linux-arm64 build, so amd64 uses CfT+# while arm64 installs Debian's chromium (Dockerfile, TARGETARCH branch). Only the arm64 image+# carries the Debian package, which is why the amd64 scan is clean.+#+# THERE IS NO FIXED PACKAGE TO UPGRADE TO. The image has 150.0.7871.181-1~deb12u1; Trivy names+# 151.0.7922.47-1 as fixed, and that version exists only in Debian sid. bookworm (our base) is on+# 150.0.7871.100-1~deb12u1 and even trixie is on 150.0.7871.100-1~deb13u1 — both still vulnerable.+# Rebuilding does not clear this, and moving the base image to trixie does not either.+#+# Exposure, stated honestly rather than talked down:+# - -16804 and -16807 are sandbox escapes. The image already runs Chromium with --no-sandbox (the+# container is the confinement boundary: cap_drop ALL, no-new-privileges, read_only rootfs), so+# escaping a sandbox that is not enabled buys an attacker nothing new.+# - -16805 and -16806 are use-after-free / arbitrary code execution in Blink, and those are NOT+# neutralised by the above. Chromium renders content the sender controls (message bodies, link+# previews, images), so a crafted message is a plausible path to code execution as the `openwa`+# user inside the arm64 container. This is accepted deliberately, for the release to ship while+# Debian has no fixed build, NOT because it is harmless.+#+# Drop all four the moment bookworm ships chromium >= 151.0.7922.47 (watch+# https://security-tracker.debian.org/tracker/source-package/chromium) and re-run the release scan+# with them removed before assuming they are gone.+CVE-2026-16804+CVE-2026-16805+CVE-2026-16806+CVE-2026-16807diff --git a/CHANGELOG.md b/CHANGELOG.mdindex f15d948d6..a00341914 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -231,6 +231,24 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0### Security+- **⚠️ Four unfixed Chromium CVEs are accepted in the `linux/arm64` image.** `CVE-2026-16804`,+ `-16805`, `-16806` and `-16807` affect the `chromium`, `chromium-common` and `chromium-sandbox`+ packages. They are arm64-only by construction: Chrome for Testing publishes no linux-arm64 build,+ so the amd64 image uses CfT while arm64 installs Debian's chromium — the amd64 image is unaffected.+ **There is no fixed package to upgrade to:** the image carries `150.0.7871.181-1~deb12u1`, and the+ fixed `151.0.7922.47-1` exists only in Debian sid — bookworm and trixie are both still on `150.x`,+ so neither a rebuild nor a move to trixie clears it.++ Two of the four (`-16804`, `-16807`) are sandbox escapes, and the image already runs Chromium with+ `--no-sandbox` (the container is the confinement boundary: `cap_drop ALL`, `no-new-privileges`,+ read-only rootfs), so they buy an attacker nothing. The other two are use-after-free / arbitrary+ code execution in Blink, and those are **not** neutralised by that: Chromium renders sender-+ controlled content, so a crafted message is a plausible path to code execution as the `openwa` user+ inside the arm64 container. This is accepted so the release can ship while Debian has no fixed+ build — not because it is harmless. **Operators running arm64 who cannot accept this should stay on+ their current image until the entry is removed.** The four are recorded in `.trivyignore` with the+ removal condition: drop them once bookworm ships `chromium >= 151.0.7922.47`.+- **A sandboxed plugin can no longer serve the gateway's search queries without declaring a permissionfor it.** `ctx.registerSearchProvider` is installed unconditionally in every worker context, and aplugin declares itself a provider by sending `search-provider-register` over IPC — a path that never