claude-code - 💡(How to fix) Fix Bundled [email protected] affected by CVE-2026-33671 (ReDoS via extglob) [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#52801Fetched 2026-04-25 06:20:33
View on GitHub
Comments
0
Participants
1
Timeline
3
Reactions
0
Participants
Timeline (top)
labeled ×3

Fix Action

Fix / Workaround

In practice, the vulnerability is not exploitable in the context of claude-code (no user-controlled glob input reaches picomatch), but image scanners still flag it and picomatch cannot be patched externally via npm overrides on a globally installed CLI.

Could a claude-code patch release be published that picks up [email protected]+?

RAW_BUFFERClick to expand / collapse

@anthropic-ai/claude-code (global install) bundles [email protected], which is affected by CVE-2026-33671 — ReDoS via crafted extglob patterns.

The fix is in [email protected] (also backported to 3.0.2 and 2.3.2); upstream tracker: micromatch/picomatch#165.

In practice, the vulnerability is not exploitable in the context of claude-code (no user-controlled glob input reaches picomatch), but image scanners still flag it and picomatch cannot be patched externally via npm overrides on a globally installed CLI.

Could a claude-code patch release be published that picks up [email protected]+?

Filed to track on our side — happy to share more context if useful.

extent analysis

TL;DR

Update @anthropic-ai/claude-code to use [email protected] or later to address the CVE-2026-33671 vulnerability.

Guidance

  • Verify the vulnerability by checking the version of picomatch bundled with @anthropic-ai/claude-code using npm ls picomatch or similar commands.
  • Consider publishing a patch release of @anthropic-ai/claude-code that updates the dependency to [email protected] or later.
  • Although the vulnerability is not exploitable in the context of claude-code, updating the dependency can help avoid false positives from image scanners.
  • If a patch release is not feasible, provide documentation or notices to users and image scanners explaining the non-exploitable nature of the vulnerability in claude-code.

Notes

The issue is specific to the global installation of @anthropic-ai/claude-code and the bundled version of picomatch. The vulnerability is not exploitable due to the lack of user-controlled glob input reaching picomatch.

Recommendation

Apply workaround: Publish a patch release of @anthropic-ai/claude-code that updates the picomatch dependency to 4.0.4 or later to address the vulnerability and avoid false positives from image scanners.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix Bundled picomatch@4.0.3 affected by CVE-2026-33671 (ReDoS via extglob) [1 participants]