Repository navigation
fix(deps): close four runtime advisories, leave tar deliberately - #26
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Dependabot reports 15 alerts here, 10 high. Reproduced locally:
npm auditon 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:cross-spawnwsminimatchglobignorepattern limits@opencode/plugingoes to 2.4.5 and@opencode-ai/pluginto 1.19.6, the versions this was verified against.What is deliberately not fixed
tarstays at 7.5.x. Its only patched line is 8.x, and forcing it breakspacote, which@opencode/utilimports at runtime: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 thetaradvisory remains.npm test: 43/43.npm pack --dry-run: 14 files, unchanged set.minimatchrequires cleanly from CJS and matches,@npmcli/arboristloads and walks the actual tree (224 children),pacote.manifest()andpacote.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.