Skip to content

chore(deps): bump go-chi/chi to v5.4.0, drop RealIP - #57

Merged
freema merged 2 commits into
mainfrom
chore/chi-5.4
Oct 25, 2026
Merged

freema merged 2 commits into
mainfrom
chore/chi-5.4

Conversation

@freema

@freema freema commented Oct 25, 2026 •

Copy link
Copy Markdown
Owner

Clears Dependabot alert for GHSA-j6qf-3m9c-vwj3 (client IP spoofing in ClientIPFromXFF). CodeForge never called ClientIPFromXFF.

chi v5.4.0 also deprecates middleware.RealIP as spoofable (it trusts X-Forwarded-For / X-Real-IP / True-Client-IP from any peer), which golangci-lint flags (SA1019). Nothing in CodeForge reads the client IP — the rate limiter is keyed by API token — so the middleware is removed rather than replaced with a trusted-proxy configuration.

No release needed; this lands with the next one.

🤖 Generated with Claude Code

freema and others added 2 commits October 25, 2026 08:31
Clears GHSA-j6qf-3m9c-vwj3. CodeForge does not use the affected
ClientIPFromXFF helper (only middleware.RealIP), so this is hygiene,
not a security fix.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
chi v5.4.0 deprecates RealIP: it rewrites r.RemoteAddr from
X-Forwarded-For / X-Real-IP / True-Client-IP without checking that the
request came through a trusted proxy. Nothing in CodeForge reads the
client IP (rate limiting is keyed by API token), so the middleware only
let clients spoof RemoteAddr. Removing it instead of configuring a
trusted-proxy list.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@freema freema changed the title chore(deps): bump go-chi/chi to v5.4.0 chore(deps): bump go-chi/chi to v5.4.0, drop RealIP Oct 25, 2026
@freema
freema merged commit 23ebfd4 into main Oct 25, 2026
10 checks passed
@freema
freema deleted the chore/chi-5.4 branch October 25, 2026 07:38
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.

1 participant