Skip to content

fix(deps): bump golang-jwt/jwt/v4 to v4.5.2 - #535

Merged
leoparente merged 1 commit into
developfrom
fix/bump-golang-jwt
Aug 13, 2026
Merged

fix(deps): bump golang-jwt/jwt/v4 to v4.5.2#535
leoparente merged 1 commit into
developfrom
fix/bump-golang-jwt

Conversation

@leoparente

Copy link
Copy Markdown
Contributor

Summary

Bumps the indirect dependency github.com/golang-jwt/jwt/v4 from v4.5.0 to v4.5.2, clearing two advisories flagged by the container scan against /usr/local/bin/orb-agent.

CVE Severity In Fixed in
CVE-2025-30204 🟠 HIGH v4.5.0 4.5.2
CVE-2024-51744 ⚪ LOW v4.5.0 4.5.1

v4.5.2 covers both.

Where it comes from

It is not a direct dependency. go mod why gives the chain:

github.com/netboxlabs/orb-agent/agent/secretsmgr
github.com/DelineaXPM/dsv-sdk-go/v2/vault
github.com/DelineaXPM/dsv-sdk-go/v2/auth
github.com/Azure/go-autorest/autorest
github.com/Azure/go-autorest/autorest/adal
github.com/golang-jwt/jwt/v4

So it arrived with the Delinea DSV backend in #532. Every requirer pins v4.5.0 — dsv-sdk-go v2.2.0, go-autorest v0.11.29, azure/auth v0.5.13 — which is why the vulnerable version was selected.

Why a floor bump is sufficient

Minimal version selection takes the maximum version required across the graph, so an explicit requirement in our own go.mod raises the selected version without waiting on any upstream release. v4.5.2 is a patch within the same minor as what every requirer asks for, so no API change is involved.

Diff is one line in go.mod and one net line in go.sum.

Verification

  • go build ./... clean
  • go test ./... -count=1 fully green on the bumped tree

A flaky test worth knowing about, unrelated to this change

agent/secretsmgr failed once on the bumped tree and then passed on three consecutive re-runs. The same package also passes on an unmodified develop. It polls with real timers over roughly 30 to 40 seconds and logs a deliberate 404 path during the run, which is the likely source.

I checked this specifically because a single failure right after a dependency bump looks like causation, and it is not: the failure does not reproduce, and the clean tree is not immune. Deliberately not folding a test fix into a dependency bump, but it is worth its own issue if it recurs in CI.

Note on the other scan findings

This does not touch the two Python advisories that currently fail Build & Scanmsgpack and setuptools. Both are pip's own vendored copies rather than project dependencies, so no dependency change in this repo reaches them; they need either dropping the runtime pip from the final image or a documented suppression. Separate piece of work.

🤖 Generated with Claude Code

Raises the indirect dependency past two advisories:

- CVE-2025-30204 (HIGH): excessive memory allocation while parsing a JWT
  header. Fixed in 4.5.2.
- CVE-2024-51744 (LOW): ParseWithClaims error handling is documented in a
  way that invites mishandling. Fixed in 4.5.1.

The dependency reaches the agent binary through the Delinea DSV backend added
in #532: agent/secretsmgr -> DelineaXPM/dsv-sdk-go/v2 -> Azure/go-autorest
autorest/adal -> golang-jwt/jwt/v4. Every requirer in that chain pins v4.5.0,
so raising our own floor is what moves the selected version; no upstream
release is needed, since minimal version selection takes the maximum required
and 4.5.2 is a patch within the same minor.

Confirmed the whole suite passes. Note that agent/secretsmgr is intermittently
flaky, independent of this change: it failed once on the bumped tree and then
passed on three consecutive re-runs, while the same test also passes on an
unmodified develop. The package polls with real timers over roughly 30 to 40
seconds, which is the likely cause. Flagging it rather than folding a test fix
into a dependency bump.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

Go test coverage

STATUS ELAPSED PACKAGE COVER PASS FAIL SKIP
🟢 PASS 2.34s github.com/netboxlabs/orb-agent/agent 53.2% 20 0 0
🟢 PASS 32.10s github.com/netboxlabs/orb-agent/agent/backend 84.4% 116 0 0
🟢 PASS 6.04s github.com/netboxlabs/orb-agent/agent/backend/devicediscovery 82.8% 43 0 0
🟢 PASS 6.03s github.com/netboxlabs/orb-agent/agent/backend/gnmidiscovery 85.4% 4 0 0
🟢 PASS 6.04s github.com/netboxlabs/orb-agent/agent/backend/networkdiscovery 79.2% 4 0 0
🟢 PASS 4.03s github.com/netboxlabs/orb-agent/agent/backend/opentelemetryinfinity 83.7% 46 0 0
🟢 PASS 8.04s github.com/netboxlabs/orb-agent/agent/backend/pktvisor 82.3% 20 0 0
🟢 PASS 7.05s github.com/netboxlabs/orb-agent/agent/backend/snmpdiscovery 82.1% 15 0 0
🟢 PASS 7.05s github.com/netboxlabs/orb-agent/agent/backend/worker 83.1% 31 0 0
🟢 PASS 1.02s github.com/netboxlabs/orb-agent/agent/config 89.5% 37 0 0
🟢 PASS 11.60s github.com/netboxlabs/orb-agent/agent/configmgr 55.5% 57 0 0
🟢 PASS 3.57s github.com/netboxlabs/orb-agent/agent/configmgr/fleet 68.6% 178 0 0
🟢 PASS 1.01s github.com/netboxlabs/orb-agent/agent/configmgr/fleet/messages -- 6 0 0
🟢 PASS 1.32s github.com/netboxlabs/orb-agent/agent/filesmgr 81.5% 82 0 0
🟢 PASS 1.07s github.com/netboxlabs/orb-agent/agent/otlpbridge 58.1% 19 0 0
🟢 PASS 1.02s github.com/netboxlabs/orb-agent/agent/policies 99.2% 35 0 0
🟢 PASS 1.04s github.com/netboxlabs/orb-agent/agent/policymgr 83.4% 31 0 0
🟢 PASS 1.01s github.com/netboxlabs/orb-agent/agent/redact 81.6% 84 0 0
🟢 PASS 11.88s github.com/netboxlabs/orb-agent/agent/secretsmgr 73.9% 218 0 0
🟢 PASS 1.01s github.com/netboxlabs/orb-agent/agent/telemetry 83.8% 28 0 0
🟢 PASS 1.01s github.com/netboxlabs/orb-agent/agent/version 62.5% 5 0 0

Total coverage: 75.2%

@github-actions

Copy link
Copy Markdown

Vulnerability Scan: Failed — blocking vulnerabilities detected

Image: orb-agent:scan

Source Library CVE Severity Installed Fixed Title
Python msgpack GHSA-6v7p-g79w-8964 🟠 HIGH 1.1.2 1.2.1 MessagePack for Python: Out-of-bounds read / crash on Unpacker reuse after a cau
Python setuptools CVE-2025-47273 🟠 HIGH 70.3.0 78.1.1 setuptools: Path Traversal Vulnerability in setuptools PackageIndex
Python setuptools CVE-2026-59890 🟡 MEDIUM 70.3.0 83.0.0 setuptools: setuptools: MANIFEST.in exclusion bypass in sdist via Unicode normal

Commit: 7df9578

@leoparente
leoparente merged commit a891480 into develop Aug 13, 2026
19 of 20 checks passed
@leoparente
leoparente deleted the fix/bump-golang-jwt branch August 13, 2026 17:21
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