You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Embedded SDK 2.2.6: qualify fixed glob/minimatch dependencies used by discovery #62920
@opencode/sdk@2.2.6 brings @opencode/util@2.2.6, which pins glob to 13.0.5. Its installed minimatch dependency is also affected by a recently published advisory.
Installed source confirms @opencode/util/dist/glob.js imports glob/minimatch and its scan is called by configuration/instruction/skill discovery. A V8 coverage run of a constrained embedded host executes scan during startup. Our host supplies a trusted config directory, disables project/Claude discovery and removes generic filesystem tools, so this is not a claim of an exploitable user-controlled path in that configuration. It remains a production dependency/audit issue; package overrides would cross the pinned major-version contract.
Please qualify and release compatible fixed glob/minimatch dependencies (or the simplest equivalent supported implementation), including configuration/skill discovery and cancellation tests. Avoid relying on permission settings alone to establish that a vulnerable dependency is never invoked.
Thanks for the detailed report. I can confirm this. With a clean npm install --save-exact @opencode/sdk@2.2.6, npm ls shows @opencode/util@2.2.6 installing glob@13.0.5 and minimatch@10.2.5. npm audit --omit=dev flags glob for GHSA-3g3m-2fjr-6pw4 and minimatch for GHSA-g3hv-75wg-m249, and says "No fix available" for both under the current pins.
The latest dev (617a770) still pins the same versions in packages/util/package.json, so this hasn't been changed yet.
Two more things I noticed:
Glob.scan in packages/util/src/glob.ts calls glob() without passing an AbortSignal, so the glob advisory's cancellation path probably isn't reached through it. The audit finding stays either way.
Other dependencies in the SDK tree (e.g. @npmcli/arborist, pacote, rimraf, @tufjs/models) also bring in flagged glob/minimatch versions. Bumping @opencode/util's direct pins alone may not fully clear the audit.
The script below reproduces the audit result. Related earlier reports: #34181 and #34139 (older minimatch ReDoS advisories, which led to the 10.2.5 pin) and #47843 (a bulk CVE bump that was not merged).
Activity
opencodejr commentedon Nov 9, 2026
Thanks for the detailed report. I can confirm this. With a clean
npm install --save-exact @opencode/sdk@2.2.6,npm lsshows@opencode/util@2.2.6installingglob@13.0.5andminimatch@10.2.5.npm audit --omit=devflags glob for GHSA-3g3m-2fjr-6pw4 and minimatch for GHSA-g3hv-75wg-m249, and says "No fix available" for both under the current pins.The latest
dev(617a770) still pins the same versions inpackages/util/package.json, so this hasn't been changed yet.Two more things I noticed:
Glob.scaninpackages/util/src/glob.tscallsglob()without passing anAbortSignal, so the glob advisory's cancellation path probably isn't reached through it. The audit finding stays either way.@npmcli/arborist,pacote,rimraf,@tufjs/models) also bring in flagged glob/minimatch versions. Bumping@opencode/util's direct pins alone may not fully clear the audit.The script below reproduces the audit result. Related earlier reports: #34181 and #34139 (older minimatch ReDoS advisories, which led to the 10.2.5 pin) and #47843 (a bulk CVE bump that was not merged).
Reproduction script (audit.sh)
Run it:
bash audit.sh