Repository navigation
[3403 by Claude Opus 5.5] Fix the new blocking dependency advisory GHSA-g3hv-75wg-m249 (minimatch < 11.0.1, moderate: denial of service via globparts amplification; published 2026-10-30T23:09Z, patched only in minimatch 11.0.1, with no 10.x or 3.x backports). Check current... - #3404
integry merged 1 commit into
Conversation
…to the audit gates. After a clean `npm ci`, `npm run audit:runtime` and `npm run desktop:audit:packaging` both pass today. Before the fix, the runtime audit failed with "Blocking vulnerabilities: minimatch, repomix". What was wrong: upstream `main` is still c549264 and no PR already touches minimatch. The newest Repomix (1.18.1) still requires minimatch ^10.2.6, and `@electron/asar` 4.3.0 requires ^10 through glob 13. So no upstream release depends on minimatch 11 yet. One correction to the issue: the desktop packaging audit already passed on the old lockfile, because the minimatch finding is moderate and that audit only blocks at high. The Linux preview job failed on the runtime audit, which runs in the same step. The fix: scoped overrides in `package.json`, written the same way as the existing ones: - Repomix (the only runtime path) → minimatch 11.0.3. Repomix stays at 1.18.0; it was not downgraded to 0.2.4. - `@electron/asar` 4 (what the desktop packager uses to build `app.asar` and apply the `unpack` pattern) → minimatch 11.0.3 and glob 14.0.3. glob 14 needs minimatch 11, and it also fixes a second glob advisory published the same night (GHSA-3g3m-2fjr-6pw4, `glob >=9 <=14.0.1`). The lockfile change is small: one new runtime package that minimatch 11 needs (`@isaacs/nonrecursive-glob-match`), plus `path-scurry` 3. npm 10, which CI uses, regenerates the lockfile byte for byte. Checking that minimatch 11 behaves the same: - Repomix: I packed a test repo with ProPR's own context settings under both minimatch 10.2.6 and 11.0.3, and got identical file lists. The cases covered include/ignore patterns, `.gitignore`/`.ignore`/`.repomixignore` (including nested copies), dotfiles, nested paths and filenames containing brackets and braces. - asar: packaging with the desktop app's `unpack` pattern gave identical packed and unpacked file lists on the old and new versions. - Direct use: neither `packages/core` nor `packages/api` imports minimatch or glob. - New test: `test/minimatchAdvisory.test.mjs` checks the lockfile versions and the matching Repomix and asar rely on. I confirmed it fails on the old lockfile and when the old minimatch is in place. Acceptance checks: - `npm ls minimatch --all` shows only 11.0.3 on the runtime and packaging paths. - Tests pass: the new test plus the audit wrapper and vendored braces tests (17), and the context-generation tests against real Repomix (41). - `npm run lint --workspaces --if-present -- --max-warnings 0` passes. - Builds of `packages/shared` and `packages/core` pass, as do the root, core, api and desktop typechecks. Still on vulnerable minimatch (dev tooling only): these are excluded from the runtime audit and fall below the packaging audit's high threshold: - ESLint and glob 7: minimatch 3.1.5. - `@electron/asar` 3.4.1, which the deb/rpm makers use only to read `package.json` out of a built `app.asar`: minimatch 3.1.5. - nodemon and `@typescript-eslint/typescript-estree`: minimatch 10.2.6. - The separate `docs/package-lock.json`, which no release audit checks. None of these is given patterns from a repository at runtime. They can move to minimatch 11 when their upstreams do, and the overrides can be removed once Repomix and `@electron/asar` require minimatch 11 themselves. I added a short remediation note to `docs/dependency-audit-exceptions.md` and a Security bullet under `[Unreleased]` in `CHANGELOG.md`. Nothing was merged, tagged, published or deployed. There are no visual changes, so no previews.
|
/review |
|
✅ AI Code Review Complete requested by @integry Posted 1 review: |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationReady to merge within the visible scope. The PR applies scoped dependency overrides to address the advisory without downgrading Repomix or changing audit policy. ✅ Targeted remediation — The lockfile moves Repomix’s minimatch and the affected ASAR dependency paths to patched versions while avoiding a global override of older tooling. ✅ Preserved audit gates — Neither audit thresholds nor exception handling changes. ✅ Focused regression coverage — New tests check dependency resolution and representative matching behavior; existing ASAR integration tests exercise the production unpack configuration. The supplied current-head status reports 27 passed checks and no failures or pending checks. This review is static; no commands were run. The original issue text is truncated, so requirements beyond its visible portion could not be assessed. Merge blockersNo merge blockers. SuggestionsThese are optional follow-ups and are not sent to S1: 🟢 Exercise actual Repomix packingConsider a small fixture that calls Repomix’s ScoreThe scoped changes satisfy the visible remediation objective, preserve audit policy, and have focused coverage with passing current-head checks. No merge-blocking regression was identified. Score: 9/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |
AI Implementation Summary
Closes #3403
Branch:
3403/claude-opus-5-5-fix-the-new-blocking-depe-20261031-1553-bqmCommits: ✅ Changes committed (dfccb4f)
AI Processing Completed
Execution Details:
Summary:
I fixed GHSA-g3hv-75wg-m249 without an audit exception or any change to the audit gates. After a clean
npm ci,npm run audit:runtimeandnpm run desktop:audit:packagingboth pass today. Before the fix, the runtime audit failed with "Blocking vulnerabilities: minimatch, repomix".What was wrong: upstream
mainis still c549264 and no PR already touches minimatch. The newest Repomix (1.18.1) still requires minimatch ^10.2.6, and@electron/asar4.3.0 requires ^10 through glob 13. So no upstream release depends on minimatch 11 yet.One correction to the issue: the desktop packaging audit already passed on the old lockfile, because the minimatch finding is moderate and that audit only blocks at high. The Linux preview job failed on the runtime audit, which runs in the same step.
The fix: scoped overrides in
package.json, written the same way as the existing ones:@electron/asar4 (what the desktop packager uses to buildapp.asarand apply theunpackpattern) → minimatch 11.0.3 and glob 14.0.3. glob 14 needs minimatch 11, and it also fixes a second glob advisory published the same night (GHSA-3g3m-2fjr-6pw4,glob >=9 <=14.0.1).The lockfile change is small: one new runtime package that minimatch 11 needs (
@isaacs/nonrecursive-glob-match), pluspath-scurry3. npm 10, which CI uses, regenerates the lockfile byte for byte.Checking that minimatch 11 behaves the same:
.gitignore/.ignore/.repomixignore(including nested copies), dotfiles, nested paths and filenames containing brackets and braces.unpackpattern gave identical packed and unpacked file lists on the old and new versions.packages/corenorpackages/apiimports minimatch or glob.test/minimatchAdvisory.test.mjschecks the lockfile versions and the matching Repomix and asar rely on. I confirmed it fails on the old lockfile and when the old minimatch is in place.Acceptance checks:
npm ls minimatch --allshows only 11.0.3 on the runtime and packaging paths.npm run lint --workspaces --if-present -- --max-warnings 0passes.packages/sharedandpackages/corepass, as do the root, core, api and desktop typechecks.Still on vulnerable minimatch (dev tooling only): these are excluded from the runtime audit and fall below the packaging audit's high threshold:
@electron/asar3.4.1, which the deb/rpm makers use only to readpackage.jsonout of a builtapp.asar: minimatch 3.1.5.@typescript-eslint/typescript-estree: minimatch 10.2.6.docs/package-lock.json, which no release audit checks.None of these is given patterns from a repository at runtime. They can move to minimatch 11 when their upstreams do, and the overrides can be removed once Repomix and
@electron/asarrequire minimatch 11 themselves.I added a short remediation note to
docs/dependency-audit-exceptions.mdand a Security bullet under[Unreleased]inCHANGELOG.md. Nothing was merged, tagged, published or deployed. There are no visual changes, so no previews.Detailed Logs:
af5ccb52-5897-4382-9aad-cda9a40d370bLog files stored at:
/usr/src/app/logs/executions/issue-3403-2026-10-31T16-03-29-393Z-conversation.json/usr/src/app/logs/executions/issue-3403-2026-10-31T16-03-29-393Z-output.txtLatest Conversation Messages
This PR was created automatically by ProPR after processing issue #3403.
💡 Need changes?
Comment on this PR to request refinements — the AI agent monitors comments and will update the implementation based on your feedback. Keep iterating until you're satisfied!