Skip to content

build(audit): scope a GUI build-tool exception for GHSA-fc5q-39xc-vjpf - #8895

Merged
lidge-jun merged 1 commit into
devfrom
goat/gui-audit-picomatch-exception
Nov 18, 2026
Merged

lidge-jun merged 1 commit into
devfrom
goat/gui-audit-picomatch-exception

Conversation

@lidge-jun

@lidge-jun lidge-jun commented Nov 18, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • The 2.100.5 Release (run 44246804472, source c320932c19) failed in package-npm because prepublishOnly → audit:high reports GHSA-fc5q-39xc-vjpf (picomatch <= 4.0.7, ReDoS, high) in gui/. Nothing was published; npm latest and the latest GitHub release remain 2.100.4.
  • No patched picomatch exists (npm latest is 4.0.7; the advisory lists no first patched version), so an override cannot fix it.
  • picomatch reaches the GUI only through vite's build tooling (vite > tinyglobby > fdir/picomatch, all GUI devDependencies). bun audit --audit-level=high --production in gui/ is clean, so neither gui/dist nor the published package ships it.
  • This PR ignores exactly that GHSA in the GUI audit only. The root audit and every other advisory stay gated. tests/ci-workflows/audit-exceptions.test.ts pins the exception's scope; remove both once a patched picomatch is published.
  • The project owner chose this exception over waiting for an upstream fix. It changes a dependency-audit gate, so it needs explicit security review under MAINTAINERS.md.

Verification

  • bun run audit:high: "No vulnerabilities found (checked 127 packages, 1 ignored)" for gui; root clean.
  • cd gui && bun audit --audit-level=high --production: no vulnerabilities (19 packages).
  • bun scripts/test.ts on audit-exceptions, ci-workflows, ci-gui-typecheck-gate, structure-ssot and both test-layout guards: 236 passed, 0 failed.
  • bun run typecheck, bun run structure:check and bun run privacy:scan pass.

Checklist

  • Scope stays focused and avoids unrelated cleanup.
  • Docs or release notes were updated when needed.
  • Security-sensitive changes were reviewed for secrets, auth, and unsafe defaults. This is a dependency-audit exception and requires explicit security review before merge.

Summary by CodeRabbit

  • Chores
    • The high-severity audit now excludes one advisory from the GUI-specific audit; the root audit remains unchanged.
    • The high-severity audit remains part of the pre-publish checks.
  • Tests
    • Added coverage to verify the audit commands and pre-publish check use the expected configuration.

The prepublish audit blocks the 2.100.5 release on picomatch <= 4.0.7 (ReDoS),
which has no patched release. picomatch reaches the GUI only through vite's build
tooling; `bun audit --production` in gui/ is clean, so neither gui/dist nor the
published package ships it. Ignore exactly that advisory in the GUI audit only,
keep the root audit unchanged, and guard the exception's scope with a test.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@lidge-jun
lidge-jun requested a review from Ingwannu as a code owner November 18, 2026 07:05
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-18T07:07:41.804683Z cb0f9fd PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

Copy link
Copy Markdown
Contributor

✅ Deterministic PR hygiene checks passed.

@github-actions github-actions Bot added the chore Maintenance, CI, tests, refactors, or build changes (not a user-facing bug or feature). label Nov 18, 2026
@coderabbitai

coderabbitai Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The GUI high-severity audit now ignores advisory GHSA-fc5q-39xc-vjpf; the root audit remains unchanged. A test checks both audit commands and the prepublishOnly reference. The test is assigned to the ci-workflows shard.

Changes: GUI audit exception

Layer / File(s) Summary
Audit exception and regression test
package.json, tests/ci-workflows/audit-exceptions.test.ts, scripts/test-layout/layout.json, tests/fixtures/test-layout-expected.json
The GUI audit command ignores advisory GHSA-fc5q-39xc-vjpf. The test checks the root audit command, the GUI audit’s single advisory ignore, and the prepublishOnly reference. Both test-layout mappings assign the test to ci-workflows.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Other

Merge Risk: Minimal · up to cb0f9

This change scopes a single build-tool advisory exception to the GUI audit so releases can proceed. Other advisories and the root audit stay gated. A test pins the exception's scope. No merge-blocking risk is evident, but the PR description says the exception needs explicit security review under MAINTAINERS.md.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names the main change: a GUI-scoped audit exception for GHSA-fc5q-39xc-vjpf. The raw summary shows the audit:high script now ignores that advisory only for the GUI Bun audit, and the root au…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the main change: a GUI-scoped audit exception for GHSA-fc5q-39xc-vjpf. The raw summary shows the audit:high script now ignores that advisory only for the GUI Bun audit, and the root audit is unchanged. The title is specific, concise, and free of file lists or vague terms, so it matches the changeset.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between c320932 and cb0f9fd.

Files selected for processing: 4

  • package.json
  • scripts/test-layout/layout.json
  • tests/ci-workflows/audit-exceptions.test.ts
  • tests/fixtures/test-layout-expected.json

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

@lidge-jun

Copy link
Copy Markdown
Owner Author

Maintainer integration into dev (MAINTAINERS.md): exact head cb0f9fdd7bf1f25da58b40b3df1061ba18ab3a34 on base c320932c19. All 37 PR CI checks passed on this head. Explicit security review (dependency-audit gate change) by an independent Terra (gpt-6.1-terra) reviewer at this exact head: no blocking findings, approve — exception limited to GHSA-fc5q-39xc-vjpf in the GUI audit, root audit unchanged, guard test fails when the scope widens, GUI production audit clean, npm pack dry-run contains no picomatch. Project owner chose this exception over waiting for an upstream patch.

@lidge-jun
lidge-jun merged commit eec4fb7 into dev Nov 18, 2026
41 checks passed
@lidge-jun
lidge-jun deleted the goat/gui-audit-picomatch-exception branch November 18, 2026 07:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Maintenance, CI, tests, refactors, or build changes (not a user-facing bug or feature).

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant