Skip to content

Free, Open Source, Self-Hosted WhatsApp API Gateway

fix(deps): bump adm-zip to 0.6.1 for GHSA-7q85-xj36-vmfc

Yudhi Armyndharis454068b9e457
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 7323fd58d..21951929c 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -56,6 +56,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Security
+- `adm-zip` moves to `0.6.1`, which bounds the memory a declared uncompressed size can ask for (GHSA-7q85-xj36-vmfc) and stops extraction following symlinks out of the target directory. The plugin installer reads entries one at a time under its own byte cap rather than extracting the archive, so neither vector was reachable there.
- Baileys sessions with a SOCKS4 proxy fetch through it instead of connecting direct: inbound media, the WhatsApp Web version lookup, the initial-sync payloads and a product card's image URL, which 0.23.5 routed through HTTP, HTTPS and SOCKS5 proxies only ([#1626](https://github.com/rmyndharis/OpenWA/issues/1626)).
- A media URL passed to a send route or to `POST /api/sessions/{sessionId}/media/convert`, and the link preview of a text send, are fetched through the named session's egress proxy on both engines, instead of leaving from the gateway's own address ([#1626](https://github.com/rmyndharis/OpenWA/issues/1626)).
diff --git a/package-lock.json b/package-lock.json
index 8e0ed25bb..288aa2319 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -28,7 +28,7 @@
"@nestjs/websockets": "^11.2.3",
"@socket.io/redis-adapter": "^8.3.0",
"@whiskeysockets/baileys": "7.0.0-rc14",
- "adm-zip": "^0.6.0",
+ "adm-zip": "^0.6.1",
"archiver": "^8.0.0",
"audio-decode": "^2.2.3",
"better-sqlite3": "^13.0.3",
@@ -5960,9 +5960,9 @@
}
},
"node_modules/adm-zip": {
- "version": "0.6.0",
- "resolved": "https://registry.npmjs.org/adm-zip/-/adm-zip-0.6.0.tgz",
- "integrity": "sha512-XleryMhbuksdKtofnWZ9Sk+4CUTbms4Mb/EU32SZwToAyZ5RgVos/ki8n+yr0LWHOGKuakbXTuuYNHLQjhddgg==",
+ "version": "0.6.1",
+ "resolved": "https://registry.npmjs.org/adm-zip/-/adm-zip-0.6.1.tgz",
+ "integrity": "sha512-Xwrja8nx9e5o2N1my4DsKCeKpdrnACyr1wtbPxBDgGzKzKyE9kRtBFA8mWldI+RVlD7CBZNWY/wQ2+ydwOR6kQ==",
"license": "MIT",
"engines": {
"node": ">=14.0"
diff --git a/package.json b/package.json
index 703ddf3c4..b078fcec0 100644
--- a/package.json
+++ b/package.json
@@ -85,7 +85,7 @@
"@nestjs/websockets": "^11.2.3",
"@socket.io/redis-adapter": "^8.3.0",
"@whiskeysockets/baileys": "7.0.0-rc14",
- "adm-zip": "^0.6.0",
+ "adm-zip": "^0.6.1",
"archiver": "^8.0.0",
"audio-decode": "^2.2.3",
"better-sqlite3": "^13.0.3",