diff --git a/CHANGELOG.md b/CHANGELOG.md index a8b54af..6e5fb0d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,14 @@ For protocol details, migration notes and implementation changes see the ## [Unreleased] +## [1.0.1] - 2026-11-17 + +### Security + +- Update the WebSocket library `ws` to 8.21.0. Older versions could be crashed by a peer sending many + tiny message fragments, which affected the remote agent port. +- Pin patched versions of `form-data`, `qs` and `tough-cookie`, which the Matrix SDK pulls in. + ## [1.0.0] - 2026-11-17 First public release. @@ -45,5 +53,6 @@ First public release. - Licensing: daemon and CLI under AGPL-3.0-or-later; client libraries, MCP adapter, examples and protocol specification under Apache-2.0 (see LICENSING.md). -[Unreleased]: https://github.com/Rockykln/mxagent/compare/v1.0.0...HEAD +[Unreleased]: https://github.com/Rockykln/mxagent/compare/v1.0.1...HEAD +[1.0.1]: https://github.com/Rockykln/mxagent/compare/v1.0.0...v1.0.1 [1.0.0]: https://github.com/Rockykln/mxagent/releases/tag/v1.0.0 diff --git a/docs/reference/changelog-technical.md b/docs/reference/changelog-technical.md index 5bb9cc1..ec5fd9e 100644 --- a/docs/reference/changelog-technical.md +++ b/docs/reference/changelog-technical.md @@ -10,6 +10,24 @@ Entries that require agents or SDKs to be updated are marked **[agents]**. ## [Unreleased] +## [1.0.1] - 2026-11-17 + +Daemon only; clients, MCP adapter and protocol are unchanged (still 1.0.0). + +### Security + +- `ws` 8.18.3 → 8.21.0 (GHSA for memory exhaustion from tiny fragments and data chunks, and an + uninitialized memory disclosure). The remote agent WebSocket server was exposed to the first one + before authentication. +- `package.json` `overrides` for transitive dependencies of `matrix-bot-sdk` 0.8.0 (via `request`): + `form-data` ^2.5.6 (predictable multipart boundary, CRLF injection in field names), `qs` ^6.16.0 + (DoS via array limits and `isBuffer`), `tough-cookie` ^4.1.3 (prototype pollution). Checked against + `request` with query strings, cookie jars, multipart and JSON bodies. +- Not changed: `request` 2.88.2 itself has no fixed release (SSRF via cross-protocol redirects); it is + only used for requests to the configured homeserver. `uuid` 3.4.0 stays because `request` imports + `uuid/v4`, which newer versions removed; the advisory concerns v3/v5/v6 with a caller buffer, which + `request` does not use. Both remain until the Matrix SDK drops `request`. + ## [1.0.0] - 2026-11-17 First public release. @@ -209,5 +227,6 @@ First public release. unencrypted metadata; remote agent links are encrypted end to end with the machine secret, so TLS-terminating proxies or tunnels only see ciphertext; the recovery key is not stored. -[Unreleased]: https://github.com/Rockykln/mxagent/compare/v1.0.0...HEAD +[Unreleased]: https://github.com/Rockykln/mxagent/compare/v1.0.1...HEAD +[1.0.1]: https://github.com/Rockykln/mxagent/compare/v1.0.0...v1.0.1 [1.0.0]: https://github.com/Rockykln/mxagent/releases/tag/v1.0.0 diff --git a/package-lock.json b/package-lock.json index a94f0ef..21cb833 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "mxagent-daemon", - "version": "1.0.0", + "version": "1.0.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "mxagent-daemon", - "version": "1.0.0", + "version": "1.0.1", "license": "AGPL-3.0-or-later", "dependencies": { "@matrix-org/matrix-sdk-crypto-nodejs": "^0.4.0", @@ -691,6 +691,21 @@ "node": ">= 0.4" } }, + "node_modules/es-set-tostringtag": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz", + "integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.6", + "has-tostringtag": "^1.0.2", + "hasown": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" + } + }, "node_modules/escape-html": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", @@ -849,14 +864,17 @@ } }, "node_modules/form-data": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.3.tgz", - "integrity": "sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ==", + "version": "2.5.6", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.5.6.tgz", + "integrity": "sha512-Ogz/E85h9tlfJzpI6TuFpGcHZFhLrb9Gw8wq9v40CxSCPnv7ahKr6Xgtkn0KYCDQJ8DNn5VoMO8EXr9V5PadyA==", "license": "MIT", "dependencies": { "asynckit": "^0.4.0", - "combined-stream": "^1.0.6", - "mime-types": "^2.1.12" + "combined-stream": "^1.0.8", + "es-set-tostringtag": "^2.1.0", + "hasown": "^2.0.4", + "mime-types": "^2.1.35", + "safe-buffer": "^5.2.1" }, "engines": { "node": ">= 0.12" @@ -1003,6 +1021,21 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/has-tostringtag": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz", + "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==", + "license": "MIT", + "dependencies": { + "has-symbols": "^1.0.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/hash.js": { "version": "1.1.7", "resolved": "https://registry.npmjs.org/hash.js/-/hash.js-1.1.7.tgz", @@ -1642,9 +1675,9 @@ } }, "node_modules/qs": { - "version": "6.16.2", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.16.2.tgz", - "integrity": "sha512-VYdnB5S7/0IeXzBacUtwNAaM6d7Y/PgYnNC7bJCI6meqA/OgnsQbZMtVW8Dt2D1PHgbHGtYmhSoEIgvt7xZ2ZA==", + "version": "6.17.1", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.17.1.tgz", + "integrity": "sha512-jd3COkaKVgGUW+ZHyEHCG9bH7RoaaiWuMgzsIBjUMVjLAaWGWpoUAVwljVvBHxRu/2qEHnadLGZrkutYUBPQJA==", "license": "BSD-3-Clause", "dependencies": { "es-define-property": "^1.0.1", @@ -1657,6 +1690,12 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/querystringify": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/querystringify/-/querystringify-2.2.0.tgz", + "integrity": "sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ==", + "license": "MIT" + }, "node_modules/range-parser": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", @@ -1747,14 +1786,11 @@ "request": "^2.34" } }, - "node_modules/request/node_modules/qs": { - "version": "6.5.5", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.5.tgz", - "integrity": "sha512-mzR4sElr1bfCaPJe7m8ilJ6ZXdDaGoObcYR0ZHSsktM/Lt21MVHj5De30GQH2eiZ1qGRTO7LCAzQsUeXTNexWQ==", - "license": "BSD-3-Clause", - "engines": { - "node": ">=0.6" - } + "node_modules/requires-port": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz", + "integrity": "sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==", + "license": "MIT" }, "node_modules/safe-buffer": { "version": "5.2.1", @@ -2127,16 +2163,18 @@ } }, "node_modules/tough-cookie": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.5.0.tgz", - "integrity": "sha512-nlLsUzgm1kfLXSXfRZMc1KLAugd4hqJHDTvc2hDIwS3mZAfMEuMbc03SujMF+GEcpaX/qboeycw6iO8JwVv2+g==", + "version": "4.1.4", + "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-4.1.4.tgz", + "integrity": "sha512-Loo5UUvLD9ScZ6jh8beX1T6sO1w2/MpCRpEP7V280GKMVUQ0Jzar2U3UJPsrdbziLEMMhu3Ujnq//rhiFuIeag==", "license": "BSD-3-Clause", "dependencies": { - "psl": "^1.1.28", - "punycode": "^2.1.1" + "psl": "^1.1.33", + "punycode": "^2.1.1", + "universalify": "^0.2.0", + "url-parse": "^1.5.3" }, "engines": { - "node": ">=0.8" + "node": ">=6" } }, "node_modules/tunnel-agent": { @@ -2190,6 +2228,15 @@ "integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==", "license": "MIT" }, + "node_modules/universalify": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.2.0.tgz", + "integrity": "sha512-CJ1QgKmNg3CwvAv/kOFmtnEN05f0D/cn9QntgNOQlQF9dgvVTHj3t+8JPdjqawCHk7V/KA+fbUqzZ9XWhcqPUg==", + "license": "MIT", + "engines": { + "node": ">= 4.0.0" + } + }, "node_modules/unpipe": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", @@ -2208,6 +2255,16 @@ "punycode": "^2.1.0" } }, + "node_modules/url-parse": { + "version": "1.5.10", + "resolved": "https://registry.npmjs.org/url-parse/-/url-parse-1.5.10.tgz", + "integrity": "sha512-WypcfiRhfeUP9vvF0j6rw0J3hrWrw6iZv3+22h6iRMJ/8z1Tj6XfLP4DsUix5MhMPnXpiHDoKyoZ/bdCkwBCiQ==", + "license": "MIT", + "dependencies": { + "querystringify": "^2.1.1", + "requires-port": "^1.0.0" + } + }, "node_modules/utils-merge": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", diff --git a/package.json b/package.json index f3005f4..7b9722a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mxagent-daemon", - "version": "1.0.0", + "version": "1.0.1", "description": "Control AI agents from an end-to-end encrypted Matrix space", "license": "AGPL-3.0-or-later", "type": "module", @@ -28,5 +28,10 @@ "@matrix-org/matrix-sdk-crypto-nodejs@0.4.0": true }, "private": true, - "author": "rockykln" + "author": "rockykln", + "overrides": { + "form-data": "^2.5.6", + "qs": "^6.16.0", + "tough-cookie": "^4.1.3" + } }