CVE-2026-116587

NameCVE-2026-116587
DescriptionGo JOSE provides an implementation of the Javascript Object Signing and Encryption set of standards in Go, including support for JSON Web Encryption (JWE), JSON Web Signature (JWS), and JSON Web Token (JWT) standards. Prior to 4.1.6, go-jose parses attacker-controlled RSA modulus and prime values from JWKs without enforcing size and consistency bounds before passing them to crypto/rsa.PrivateKey.Validate. On Go 1.24 and later, crafted large or degenerate RSA parameters can make that validation consume cubic CPU time, allowing remote denial of service in applications that parse JWKs from untrusted sources. This issue is fixed in version 4.1.6.
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
golang-github-go-jose-go-jose (PTS)trixie4.0.5-1vulnerable
forky, sid4.1.4-2vulnerable
golang-github-go-jose-go-jose.v3 (PTS)trixie3.0.3-6vulnerable
forky, sid3.0.5-1vulnerable
golang-gopkg-square-go-jose.v1 (PTS)forky, sid, bookworm, trixie1.1.2-4vulnerable
golang-gopkg-square-go-jose.v2 (PTS)bookworm2.6.0-2vulnerable
trixie2.6.3-3vulnerable
forky, sid2.6.3-4vulnerable

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
golang-github-go-jose-go-josesource(unstable)(unfixed)
golang-github-go-jose-go-jose.v3source(unstable)(unfixed)
golang-gopkg-square-go-jose.v1source(unstable)(unfixed)
golang-gopkg-square-go-jose.v2source(unstable)(unfixed)

Notes

[trixie] - golang-github-go-jose-go-jose <no-dsa> (Minor issue)
[trixie] - golang-github-go-jose-go-jose.v3 <no-dsa> (Minor issue)
[trixie] - golang-gopkg-square-go-jose.v2 <no-dsa> (Minor issue)
[trixie] - golang-gopkg-square-go-jose.v1 <no-dsa> (Minor issue)
https://github.com/go-jose/go-jose/security/advisories/GHSA-mgcc-cww5-fp2q
https://github.com/go-jose/go-jose/commit/a0111f82742fa92bceec9ede40845e73319e6230 (v4.1.6)

Search for package or bug name: Reporting problems