You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(deps): remove vulnerable chi v4 middleware dependency (#2651)
# Description
`pkg/server` and `pkg/log` imported the chi v4 `middleware` package
while `go.mod` already requires `chi/v5` for the router — a
mixed-version leftover. The v4 line carries `GO-2026-4316` (open
redirect in `RedirectSlashes`) with no fixed v4 release, and govulncheck
flags it as reachable.
This migrates both imports to `github.com/go-chi/chi/v5/middleware` and
drops the v4 module from `go.mod`/`go.sum`. The v5 `middleware` API is
drop-in for everything used.
## Related Issue
Code-scanning alert 808 (govulncheck, `GO-2026-4316`), raised by the
scanner added in #2643.
## Checklist
- [ ] I have read the [contributing
documentation](https://retina.sh/docs/Contributing/overview).
- [ ] I signed and signed-off the commits (`git commit -S -s ...`). See
[this
documentation](https://docs.github.com/en/authentication/managing-commit-signature-verification/about-commit-signature-verification)
on signing commits.
- [x] I have correctly attributed the author(s) of the code.
- [x] I have tested the changes locally.
- [x] I have followed the project's style guidelines.
- [ ] I have updated the documentation, if necessary.
- [ ] I have added tests, if applicable.
## Screenshots (if applicable) or Testing Completed
Verified on the PR head: no `go-chi/chi` v4 reference remains anywhere
in the repo, and `go build` and `go vet` pass for `pkg/server` and
`pkg/log`. govulncheck at the builder toolchain (`go1.26.5`) confirms
`GO-2026-4316` no longer appears.
## Additional Notes
The govulncheck legs on this PR will still be red with 11 findings —
that is unrelated to this change. Go 1.26.6 shipped stdlib security
fixes on 2026-08-13 and the builder images are on `1.26.5`, so seven new
stdlib findings apply repo-wide until the `golang-base` image bump. This
PR's delta is exactly the removal of `GO-2026-4316`.
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: nddq <28567936+nddq@users.noreply.github.com>
0 commit comments