Skip to content

fix(frontend): close the npm audit gate — bump overrides to patched versions - #329

Merged
David1984TK merged 2 commits into
mainfrom
fix/frontend-audit-gate-overrides
Sep 2, 2026
Merged

fix(frontend): close the npm audit gate — bump overrides to patched versions#329
David1984TK merged 2 commits into
mainfrom
fix/frontend-audit-gate-overrides

Conversation

@David1984TK

Copy link
Copy Markdown
Owner

Descripción

Hotfix del "Frontend React" audit gate que ha estado en rojo en prácticamente todos los PRs del repo desde hace varios días. Confirmado con dos bumps consecutivos de dependabot (#313 y #323) que no lo resolvían — necesitaba el overrides manual que ya sugiere scripts/check-audit.mjs.

Causa raíz

package.json ya tenía un bloque overrides, pero desactualizado: dos entradas (fast-uri, brace-expansion) quedaron pineadas a versiones que ya no cubren advisories nuevos, y dos vulnerabilidades más (browserslist, nanoid) no tenían override.

Paquete Antes Ahora Por qué
fast-uri 3.1.4 3.1.7 4 advisories de SSRF/host-confusion; ajv hereda el fix porque solo depende de fast-uri
brace-expansion 5.0.8 5.0.9 DoS; minimatch hereda el fix igual
browserslist (sin override) 4.28.8 crecimiento de memoria sin límite + crash por prototype-write
nanoid (sin override) 3.3.18 loop infinito (DoS)

Todas las versiones elegidas son el parche mínimo dentro de su misma línea mayor (no un salto a la última major), para minimizar riesgo de cambios de comportamiento.

Verificación

  • npm run check-auditsin vulnerabilidades high/critical (antes: 4-6 high sin rastrear)
  • npm run build limpio
  • npm run test:run — 161/161 pasan
  • npm run lint — 0 errores (solo warnings preexistentes, no relacionados)

🤖 Generated with Claude Code

https://claude.ai/code/session_01F8ndA3fFsSkp8qw6sqeAva


Generated by Claude Code

…ersions

Frontend CI has been failing check-audit for a while: two of the four
existing overrides (fast-uri, brace-expansion) had drifted behind newer
advisories, and two more (browserslist, nanoid) had none.

- fast-uri: 3.1.4 -> 3.1.7 (fixes 4 SSRF/host-confusion advisories,
  ajv inherits the fix since it only depends on fast-uri)
- brace-expansion: 5.0.8 -> 5.0.9 (fixes a DoS advisory; minimatch
  inherits the fix the same way)
- browserslist: added override, 4.28.8 (fixes unbounded memory growth
  and a prototype-write crash)
- nanoid: added override, 3.3.18 (fixes an infinite-loop DoS)

All four picked as the minimal patch within their existing major line,
not a jump to the latest major, to keep behavior change risk low.

Verified: npm run check-audit -> "sin vulnerabilidades high/critical",
npm run build, npm run test:run (161/161), npm run lint (0 errors,
pre-existing warnings only) all pass clean.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01F8ndA3fFsSkp8qw6sqeAva
@vercel

vercel Bot commented Sep 2, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
bimex-frontend Error Error Sep 2, 2026 7:59pm UTC

Copy link
Copy Markdown
Owner Author

"Indexer Node.js" salió en rojo, pero no es de este PR — esta rama se creó antes de que #328 (mi hotfix del bug de eventParser.js con el SDK 17) se mergeara a main, así que todavía cargaba la versión rota. Ya traje main actualizado (merge limpio, sin conflictos) y verifiqué en local que los 112 tests del indexer vuelven a pasar. Push hecho, esperando a que corra CI de nuevo.


Generated by Claude Code

@David1984TK
David1984TK merged commit 72495cc into main Sep 2, 2026
8 of 9 checks passed
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.

2 participants