Skip to content

fix(deps): bump go-jose/v4 to 4.1.6 for GHSA-mgcc-cww5-fp2q - #9278

Merged
klesh merged 1 commit into
apache:mainfrom
DoDiODev:pr/go-jose-cve
Oct 30, 2026
Merged

klesh merged 1 commit into
apache:mainfrom
DoDiODev:pr/go-jose-cve

Conversation

@DoDiODev

Copy link
Copy Markdown
Contributor

Summary

backend/go.mod pins github.com/go-jose/go-jose/v4 at v4.1.4. That version
is affected by GHSA-mgcc-cww5-fp2q
(CVE-2026-116587, severity high). A JWK with an RSA key can trigger a denial
of service while it is being parsed.

DevLake uses go-jose indirectly, through coreos/go-oidc/v3:

github.com/apache/devlake/helpers/oidchelper
github.com/coreos/go-oidc/v3/oidc
github.com/go-jose/go-jose/v4

helpers/oidchelper (used by server/api/auth) fetches the OIDC provider's
JWKS and verifies ID tokens against it. That is the code path the advisory
describes.

This PR bumps go-jose to v4.1.6 (go get github.com/go-jose/go-jose/v4@v4.1.6 && go mod tidy). Only backend/go.mod and backend/go.sum change.

The regular Dependabot version updates do not pick this up. The weekly
go-minor-patch group (#9268) only contains direct dependencies, and
go-jose is // indirect.

Does this close any open issues?

N/A

Screenshots

N/A

Other Information

go-jose v4.1.4 is affected by CVE-2026-116587 (GHSA-mgcc-cww5-fp2q,
severity high): parsing a JWK that contains an oversized RSA key can be
used for denial of service. DevLake pulls go-jose in indirectly through
coreos/go-oidc/v3, which helpers/oidchelper uses to verify OIDC tokens
against the provider's JWKS.

v4.1.6 caps the accepted RSA modulus at 4096 bits during JWK parsing.

Signed-off-by: DoDiODev <DoDiDev@proton.me>
@klesh
klesh merged commit 26ecd53 into apache:main Oct 30, 2026
10 checks passed
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