Skip to content

security: remediate dependency vulnerabilities across Go and npm#623

Merged
lakhansamani merged 1 commit into
mainfrom
security/dependency-vuln-remediation
Jun 3, 2026
Merged

security: remediate dependency vulnerabilities across Go and npm#623
lakhansamani merged 1 commit into
mainfrom
security/dependency-vuln-remediation

Conversation

@lakhansamani
Copy link
Copy Markdown
Contributor

Summary

Remediates all known dependency vulnerabilities flagged by govulncheck and npm audit across the Go backend and both frontends.

Go standard library (the two that fail CI today)

  • GO-2026-5037 — Inefficient candidate hostname parsing in crypto/x509. Fixed in go1.26.4.
  • textproto stdlib vuln reachable via couchbase provider, events io.ReadAll, and email DialAndSend. Fixed in go1.26.4.

Both are resolved by bumping the go directive 1.26.2 → 1.26.4, so the govulncheck action installs the patched toolchain.

Go module bumps

  • golang.org/x/crypto 0.46.0 → 0.52.0
  • golang.org/x/net 0.47.0 → 0.55.0
  • golang.org/x/sync, x/sys, x/text, x/tools, x/mod
  • github.com/jackc/pgx/v5 5.9.1 → 5.9.2

npm

  • web/app: overrides forcing fast-uri ^3.1.2, postcss ^8.5.10
  • web/dashboard: override forcing postcss ^8.5.10
  • Lockfiles regenerated; npm audit clean; prod builds pass for both apps.

CI

  • Fix govulncheck workflow param packagego-package.

Verification

  • go build ./...
  • govulncheck ./...No vulnerabilities found ✅ (on go1.26.4)
  • npm audit clean + prod builds pass for web/app and web/dashboard

Bump vulnerable Go modules to patched releases:
- golang.org/x/crypto 0.46.0 -> 0.52.0
- golang.org/x/net 0.47.0 -> 0.55.0
- golang.org/x/sync, x/sys, x/text, x/tools, x/mod
- github.com/jackc/pgx/v5 5.9.1 -> 5.9.2
- go 1.26.2 -> 1.26.4

govulncheck now reports zero vulnerabilities.

Add npm overrides to force safe transitive deps:
- web/app: fast-uri ^3.1.2, postcss ^8.5.10
- web/dashboard: postcss ^8.5.10
Lockfiles regenerated; npm audit clean; prod builds pass.

Fix govulncheck workflow param: package -> go-package.
@lakhansamani lakhansamani merged commit 1f7d0c7 into main Jun 3, 2026
2 checks passed
@lakhansamani lakhansamani deleted the security/dependency-vuln-remediation branch June 3, 2026 08:13
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