Skip to content

fix: security dependency updates (golang.org/x/crypto, go-chi, go-jose, mapstructure) - #124

Open
sujit-jadhav wants to merge 3 commits into
OpenCHAMI:mainfrom
sujit-jadhav:fix/security-dependency-updates
Open

fix: security dependency updates (golang.org/x/crypto, go-chi, go-jose, mapstructure)#124
sujit-jadhav wants to merge 3 commits into
OpenCHAMI:mainfrom
sujit-jadhav:fix/security-dependency-updates

Conversation

@sujit-jadhav

Copy link
Copy Markdown

Summary

Bump security-sensitive Go dependencies to address known CVEs.

Changes

  • Updated golang.org/x/crypto to v0.54.0 (CVE-2024-45337, CVE-2025-58181, CVE-2026-46595)
  • Updated golang.org/x/net to v0.56.0
  • Updated go-chi/chi/v5 to v5.3.0 (IP spoofing fix in RealIP middleware)
  • Updated go-jose/go-jose/v4 to v4.1.4 (CVE-2026-34986 JWE decryption panic)
  • Updated go-viper/mapstructure/v2 to v2.4.0 (CVE-2025-11065 sensitive info leak)
  • Added CHANGELOG.md entry

Testing

  • Built and tested with go build ./...
  • Container image built and deployed successfully

Signed-off-by: Sujit Jadhav sujit.jadhav@dell.com

sujit-jadhav and others added 2 commits August 10, 2026 14:03
- Updated golang.org/x/crypto to v0.54.0 (CVE-2024-45337, CVE-2025-58181, CVE-2026-46595)
- Updated golang.org/x/net to v0.56.0
- Updated go-chi/chi/v5 to v5.3.0 (IP spoofing fix in RealIP middleware)
- Updated go-jose/go-jose/v4 to v4.1.4 (CVE-2026-34986 JWE decryption panic)
- Updated go-viper/mapstructure/v2 to v2.4.0 (CVE-2025-11065 sensitive info leak)

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Signed-off-by: Sujit Jadhav <sujit.jadhav@dell.com>
middleware.RealIP was deprecated in go-chi/chi v5.3.0 due to IP
spoofing vulnerabilities (GHSA-3fxj-6jh8-hvhx, GHSA-rjr7-jggh-pgcp,
GHSA-9g5q-2w5x-hmxf). It mutates r.RemoteAddr to the leftmost
X-Forwarded-For value regardless of trust.

ClientIPFromRemoteAddr stores the client IP from the TCP connection
into context (readable via middleware.GetClientIP) without mutating
r.RemoteAddr, which is the safe alternative for direct connections.

Signed-off-by: Sujit Jadhav <sujit.jadhav@dell.com>
@sujit-jadhav
sujit-jadhav force-pushed the fix/security-dependency-updates branch from 5a1c4b0 to b7a4ecb Compare August 10, 2026 08:33
@synackd

synackd commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

Changes look good, but recent module dep updates are causing conflicts. Can you resolve them and go mod tidy?

Upgrade go-viper/mapstructure/v2 from v2.4.0 to v2.5.0 to resolve
the upgrade recommendation for this dependency.

Signed-off-by: Sujit Jadhav <sujit.jadhav@dell.com>
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