Skip to content

Commit f5f4c3e

Browse files
PROD-79121 - Upgrade uuid from 8.3.2 to 11.1.1
The uuid dependency was pinned to ~8.3.2 (>=8.3.2 <8.4.0), which cannot resolve to 11.1.1 or later. Consumers of rabbit-queue therefore cannot get a patched uuid, leaving CVE-2026-41907 (GHSA, missing buffer bounds check in v3/v5/v6 when buf is provided) unresolvable downstream. rabbit-queue itself is not affected by that CVE: uuid is only used as uuid.v4() with no arguments, in ts/queue.ts, ts/exchange.ts and ts/reply-queue.ts. The pin is the problem, not the usage. Targets uuid 11.x rather than the latest 14.x deliberately. This package compiles with module: commonjs, and uuid 11.1.1 is the last line whose exports map still declares a require condition ("require": "./dist/cjs/index.js"). uuid 12 and later are ESM-only for Node and would break require() for every CommonJS consumer. @types/uuid is dropped because uuid 11 ships its own type definitions; keeping the v8 types alongside it would conflict.
1 parent eba8c3f commit f5f4c3e

2 files changed

Lines changed: 14 additions & 23 deletions

File tree

package-lock.json

Lines changed: 13 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
"amqplib": ">=0.10.0",
5757
"lodash": "^4.17.23",
5858
"race-until": "~2.3.1",
59-
"uuid": "~8.3.2"
59+
"uuid": "^11.1.1"
6060
},
6161
"typings": "js/index",
6262
"devDependencies": {
@@ -66,7 +66,6 @@
6666
"@types/should": "^13.0.0",
6767
"@types/sinon": "~10.0.2",
6868
"@types/source-map-support": "~0.5.4",
69-
"@types/uuid": "~8.3.1",
7069
"husky": "~7.0.1",
7170
"lint-staged": "~11.1.0",
7271
"mocha": "^11.7.5",

0 commit comments

Comments
 (0)