Skip to content

fix(deps): corrigir GHSA-7p8r-x3mc-p8w7 (fast-uri, high) - #35

Merged
janeiaraujo merged 1 commit into
mainfrom
fix/fast-uri-advisory
Aug 3, 2026
Merged

fix(deps): corrigir GHSA-7p8r-x3mc-p8w7 (fast-uri, high)#35
janeiaraujo merged 1 commit into
mainfrom
fix/fast-uri-advisory

Conversation

@janeiaraujo

Copy link
Copy Markdown
Owner

Único alerta do Dependabot ainda aberto. Severidade high: confusão de host
quando a autoridade da URL vem introduzida por barra invertida.

fast-uri chega transitivamente pelo Fastify — pelo roteador
(@fastify/ajv-compilerajv) e pelo serializador (fast-json-stringify).
Não é dependência direta, então a correção é só de lock: nenhum
package.json muda
, e são dois bumps de patch (3.1.4 → 3.1.5 e
4.1.1 → 4.1.2).

O outro alerta que o npm audit mostra no frontend é o do react-router já
dispensado como not_used (GHSA-qwww-vcr4-c8h2, afeta apenas APIs RSC
instáveis, que o projeto não usa) — e o "fix" sugerido seria regredir para
7.11.0.

Verificação

  • npm audit --omit=dev no backend: 0 vulnerabilidades (era 1 high)
  • Subi um Fastify real e bati nele, porque é exatamente onde o fast-uri
    atua: rota com parâmetro + query string, POST com corpo JSON e rota
    inexistente respondem como antes
  • npm test → 25 passam
  • Diff: 6 linhas no backend/package-lock.json, nada além disso

Unico alerta do Dependabot ainda aberto, severidade high: confusao de
host quando a autoridade da URL vem introduzida por barra invertida.
Chega transitivamente pelo Fastify (roteador e serializador), nao e
dependencia direta.

Atualizacao de patch, so no lock - nenhum package.json muda. Verificado
subindo um Fastify real: rota com parametro e query, POST com corpo
JSON e 404 respondem como antes. npm audit --omit=dev agora reporta 0
vulnerabilidades no backend, e os 25 testes seguem passando.
Copilot AI review requested due to automatic review settings August 3, 2026 20:12

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review any files in this pull request.

Files not reviewed (1)
  • backend/package-lock.json: Generated file

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@janeiaraujo
janeiaraujo merged commit ef19813 into main Aug 3, 2026
4 checks passed
@janeiaraujo
janeiaraujo deleted the fix/fast-uri-advisory branch August 3, 2026 23:37
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