Repository navigation
Conversation
picomatch <=4.0.7 tiene un ReDoS con extglobs de una rama con comodín y no hay versión corregida publicada (el arreglo es micromatch/picomatch#254). Llega por @sentry/nextjs -> @rollup/plugin-commonjs (compilación) y por vitest (pruebas); la tienda nunca le pasa texto de clientes. - Override picomatch@4 -> 4.0.7 y parche de pnpm con el arreglo de #254. - Dockerfile copia patches/ antes de instalar. - Prueba que falla si el parche se pierde (resuelve picomatch por el camino de producción). - docs/seguridad-dependencias.md: sección «Parches locales». Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ile (#937) On 2026-11-17 GitHub widened GHSA-fc5q-39xc-vjpf (ReDoS in picomatch extglob matching) to cover 4.0.7, the latest release. npm audit then reported 15 packages at high, every one of them through picomatch, and the Lint job failed on every pull request and on main over a finding nobody could act on: no fixed release exists, the fix is still a proposal upstream (micromatch/picomatch#254). picomatch runs only in the build and test tooling (vite through @tailwindcss/vite, vitest, knip, by way of tinyglobby and fdir); it is not in the built bundle, and the globs it compiles are this repository's own configuration. The gate could not accept anything. It now reads frontend/npm-audit-accepted.json: a GHSA id, the package, a reason and an until date. It passes when every advisory at high or above in the report's via objects is accepted on the package it names; a package that is high only through another package's advisory is excused with it. A report that carries counts but no advisories excuses nothing, as before. Each acceptance ends loudly: the day after until it no longer applies, an entry no finding at high or above matches fails the gate until deleted, and an until more than 90 days ahead is refused. --accepted and --today let the suite judge on a fixed list and day; the existing cases run against an empty list, so the repository's own entry never decides them. GHSA-fc5q-39xc-vjpf is accepted until 2026-12-17. The decision is in docs/DECISIONS.md, the procedure in CONTRIBUTING.md. Co-Authored-By: Claude Opus 5.5 <[email protected]>
picomatch <= 4.0.7 is vulnerable to ReDoS through single-branch repeated extglobs (GHSA-fc5q-39xc-vjpf) and no upstream release is patched. Pin picomatch to a fork build that carries the fix from micromatch/picomatch#254. Remove the resolution once upstream ships a patched release.
|
See #235 (comment). |
|
Reviewed from the diff; I did not run this branch. For reference, on master (9fab7bf, Node 22) each of
|
|
We applied this PR's What we checked on both:
It would be great to get this merged and released (4.0.8, and a 2.3.x with #246), so downstream projects can drop local patches and scanners stop flagging every install. Thanks for the fix! |
|
Both GitHub and VulnCheck have withdrawn this advisory, as it is not a security issue. If a tool is still reporting you're "vulnerable", then you need to contact the tool author about getting their source updated. |
Problem
GHSA-fc5q-39xc-vjpf describes nested unbounded repetition in single-branch extglobs such as
+(*a). The current guard handles ambiguous alternatives and nested extglobs, but ordinary wildcard tokens still produce nested quantifiers.Fix
For a single branch containing wildcard stars and only fixed-width text/qmark/bracket tokens, collapse the outer
+repeat to one occurrence, or the outer*repeat to an optional occurrence. The branch language is closed under concatenation: earlier repetitions can be absorbed by a wildcard star. Preserve the already-parsed body, leading guard, escaping, path options and outer capture. Alternatives, slash/globstar/nested constructs, existing safety rewrites and explicit maxExtglobRecursion=false are unchanged. With capture:true the wildcard capture now covers the flattened body rather than the last repeat iteration; outer capture remains the full match.Verification
No application code, private data or credentials included. Offered as a focused patch for maintainer review, not a claim of an official published fix.