fix(deps): corrigir GHSA-7p8r-x3mc-p8w7 (fast-uri, high) - #35
Merged
Conversation
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.
Contributor
There was a problem hiding this comment.
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.
This was referenced Aug 3, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Único alerta do Dependabot ainda aberto. Severidade high: confusão de host
quando a autoridade da URL vem introduzida por barra invertida.
fast-urichega transitivamente pelo Fastify — pelo roteador(
@fastify/ajv-compiler→ajv) e pelo serializador (fast-json-stringify).Não é dependência direta, então a correção é só de lock: nenhum
package.jsonmuda, e são dois bumps de patch (3.1.4 → 3.1.5 e4.1.1 → 4.1.2).
O outro alerta que o
npm auditmostra no frontend é o do react-router jádispensado como
not_used(GHSA-qwww-vcr4-c8h2, afeta apenas APIs RSCinstáveis, que o projeto não usa) — e o "fix" sugerido seria regredir para
7.11.0.
Verificação
npm audit --omit=devno backend: 0 vulnerabilidades (era 1 high)fast-uriatua: rota com parâmetro + query string, POST com corpo JSON e rota
inexistente respondem como antes
npm test→ 25 passambackend/package-lock.json, nada além disso