Skip to content

fix(deps): close four runtime advisories, leave tar deliberately - #26

Merged
TheStreamCode merged 1 commit into
mainfrom
fix/runtime-advisories
Dec 5, 2026
Merged

TheStreamCode merged 1 commit into
mainfrom
fix/runtime-advisories

Conversation

@TheStreamCode

Copy link
Copy Markdown
Owner

Why

Dependabot reports 15 alerts here, 10 high. Reproduced locally: npm audit on the committed lock starts at 21 entries, 5 critical and 3 high.

What changed

Four advisories have a patched release in the same major line, so they are forced through overrides:

Package From To Severity Advisory
cross-spawn 7.0.6 7.1.2 critical argument injection on Windows
ws 8.22.1 8.23.1 high memory exhaustion via automatic pong responses
minimatch 10.2.5 / 11.0.5 11.0.10 high quadratic compile time, globparts amplification
glob 14.0.4 14.0.7 moderate ignore pattern limits

@opencode/plugin goes to 2.4.5 and @opencode-ai/plugin to 1.19.6, the versions this was verified against.

What is deliberately not fixed

tar stays at 7.5.x. Its only patched line is 8.x, and forcing it breaks pacote, which @opencode/util imports at runtime:

$ npm audit fix with tar ^8.1.3 forced
$ node -e "require('pacote').extract('opencode-muse-auth@0.5.2', dir)"
EXTRACT FAILED: this.dest.on is not a function

I measured this rather than assuming it. Note the part that matters: the full test suite passes with the broken range installed (43/43), so the suite alone would have shipped a plugin whose installer path is dead. The override is absent on purpose and recorded in the CHANGELOG under Known remaining.

Verification

  • npm audit --omit=dev --audit-level=high: 10 high to 1 high, 5 critical to 0. Only the tar advisory remains.
  • npm test: 43/43.
  • npm pack --dry-run: 14 files, unchanged set.
  • Compatibility checks on the overridden packages, since none of them are imported by this plugin's own code and the suite cannot see them: minimatch requires cleanly from CJS and matches, @npmcli/arborist loads and walks the actual tree (224 children), pacote.manifest() and pacote.extract() both succeed.

Not re-verified: arborist.reify() end to end, which needs a real install into a scratch project; and host compatibility with opencode 2.2.4, which the README keeps as the documented minimum.

Dependabot reports 15 alerts on this repository, 10 of them high. The tree
in this lock reproduces most of them: `npm audit` started at 21 entries with
5 critical, 3 high and 13 moderate.

Four are fixable with a patched release in the same major line, so they are
forced through `overrides`:

- cross-spawn 7.0.6 -> 7.1.2 (critical, argument injection on Windows)
- ws 8.22.1 -> 8.23.1 (high, memory exhaustion via automatic pong responses)
- minimatch 10.2.5 and 11.0.5 -> 11.0.10 (high, quadratic compile time)
- glob 14.0.4 -> 14.0.7 (moderate, ignore pattern limits)

`@opencode/plugin` moves to 2.4.5 and `@opencode-ai/plugin` to 1.19.6, the
versions the suite was verified against.

`tar` is the exception and stays at 7.5.x on purpose. Its only patched line is
8.x, and forcing it breaks `pacote`, which `@opencode/util` calls at runtime:
`pacote.extract()` dies with `this.dest.on is not a function`. That was measured,
not assumed, and it is why the fix is not in the overrides: the full test suite
passes with the broken range in place, so the suite alone would have shipped it.

Verification: production audit goes from 10 high to 1 high and from 5 critical
to 0; `npm audit --omit=dev --audit-level=high` reports only the tar advisory.
`npm test` 43/43, `npm pack --dry-run` 14 files as before.

Refs the Dependabot alerts on this repository.
@TheStreamCode
TheStreamCode merged commit 326e38e into main Dec 5, 2026
6 checks passed
@TheStreamCode
TheStreamCode deleted the fix/runtime-advisories branch December 5, 2026 20:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant