Skip to content

ci(audit): allowlist disputed, unpatched picomatch advisory (KAN-282) - #321

Merged
usjbro merged 1 commit into
mainfrom
KAN-282-audit-allowlist-picomatch
Nov 17, 2026
Merged

usjbro merged 1 commit into
mainfrom
KAN-282-audit-allowlist-picomatch

Conversation

@usjbro

@usjbro usjbro commented Nov 17, 2026

Copy link
Copy Markdown
Owner

Summary

This adds GHSA-fc5q-39xc-vjpf to the npm audit gate's allowlist in .github/scripts/check-npm-audit.mjs, with a dated comment and the condition for removing it. The gate currently fails the Web job on every PR and on main, so Web lint, tests and build never run. #320 is blocked by it. Jira: KAN-282.

Why an allowlist entry, not a fix

  • No patched release. The advisory covers picomatch <= 4.0.7, which includes the newest release, 4.0.7.
  • The CVE is disputed. The maintainer closed the fix PR, fix: detect glob-star-in-branch and repetition overlap as ReDoS-risky extglobs (CVE-2026-112366) micromatch/picomatch#235, unmerged: "Don't use that pattern. Don't let untrusted users define regular expressions." Snyk revoked its copy, SNYK-JS-PICOMATCH-21248802, as "not a vulnerability", which is why the Snyk check passes.
  • There's no way to exploit it here. The ReDoS needs an attacker-controlled glob pattern. picomatch is only reached through dev tools: vitest (and its vite/tinyglobby dependencies) and eslint-config-next → fast-glob → micromatch. Those tools only match patterns from our own config, and nothing in lib/, app/, components/ or bin/ imports picomatch.
  • npm's suggested fixes are major downgrades ([email protected], [email protected]).

This follows the same pattern as the existing braces entry. Remove the entry if GitHub withdraws the advisory or picomatch ships a patched release.

Verification

I ran the gate script against three inputs:

Input Before After
Today's real npm audit --json exit 1 on GHSA-fc5q-39xc-vjpf exit 0, only allowlisted advisories
The same report plus a made-up high advisory — exit 1 on the made-up id
An error report from a failed npm audit — exit 1

No dependency or lockfile changes.

Review

This is a security exception, so James approves and merges. Codex is asked to cross-review.

🤖 Generated with Claude Code

GHSA-fc5q-39xc-vjpf / CVE-2026-112366 (picomatch <= 4.0.7 ReDoS via
single-branch repeated extglobs) fails the npm audit gate on every PR and
main. No patched release exists, the maintainer disputes the CVE and
closed the fix PR (micromatch/picomatch#235) unmerged, and Snyk revoked
its copy. picomatch is reached only through dev tooling (vitest,
eslint-config-next) matching our own config patterns, and npm's only
suggested fixes are major downgrades.

Allowlist it with a dated comment and a removal condition, matching the
existing braces entry. Verified: the gate passes on today's audit report
and still fails on an un-allowlisted high advisory and on an audit error.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 17, 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-17T19:04:39.923721Z 3377fec 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.

@sonarqubecloud

Copy link
Copy Markdown

@usjbro
usjbro merged commit ef928cb into main Nov 17, 2026
10 checks passed
@usjbro
usjbro deleted the KAN-282-audit-allowlist-picomatch branch November 17, 2026 19:59
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