Skip to content

[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

Merged
integry merged 1 commit into
mainfrom
3403/claude-opus-5-5-fix-the-new-blocking-depe-20261031-1553-bqm
Oct 31, 2026

Conversation

@propr-dev

@propr-dev propr-dev Bot commented Oct 31, 2026

Copy link
Copy Markdown
Contributor

AI Implementation Summary

Closes #3403

Branch: 3403/claude-opus-5-5-fix-the-new-blocking-depe-20261031-1553-bqm
Commits: ✅ 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: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.

Detailed Logs:

  • Conversation: 169 messages
  • Session: af5ccb52-5897-4382-9aad-cda9a40d370b

Log files stored at:

  • conversation: /usr/src/app/logs/executions/issue-3403-2026-10-31T16-03-29-393Z-conversation.json
  • output: /usr/src/app/logs/executions/issue-3403-2026-10-31T16-03-29-393Z-output.txt
Latest Conversation Messages
ASSISTANT: [content unavailable]

ASSISTANT: 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:runtime` and `npm run desktop:audit:packaging` both pass today. Before t...


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!

…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.
@integry

integry commented Oct 31, 2026

Copy link
Copy Markdown
Owner

/review

@propr-dev

propr-dev Bot commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @integry

Posted 1 review:

View Task Details

@propr-dev

propr-dev Bot commented Oct 31, 2026

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — codex:gpt-6-astra

Overall Evaluation

Ready 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 blockers

No merge blockers.

Suggestions

These are optional follow-ups and are not sent to /fix.

S1: 🟢 Exercise actual Repomix packing

Consider a small fixture that calls Repomix’s pack API and asserts the resulting file set for include patterns, nested ignore files, and dotfiles. test/minimatchAdvisory.test.mjs:66 exercises the resolved minimatch exports directly and reconstructs ignore behavior, so it does not independently establish the documentation’s broader claim about identical packing results. This would strengthen coverage of the major-version override; no concrete compatibility regression is demonstrated, so it is optional.

Score

The 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

  • Model: GPT-6 Astra
  • Time: 20s
  • Tokens: 35,997 (35,571 in / 426 out)
  • Cost: $0.27

View Task


💡 Next step: Comment /fix to address every F# merge blocker, /fix all for every pending blocker and suggestion, or name records explicitly, as in /fix F3 S5.
F# and S# IDs increment across review comments and remain permanent, so selectors such as /fix F3 F5 stay unambiguous across cycles. S# suggestions stay optional: they are implemented only when you name them or request /fix all, and they never relax a merge blocker.

Copy and edit to choose records from this review:

/fix S1

🤖 Review by ProPR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

1 participant