CVE-2026-49852
published high CVSS 4.0 · 8.7joserfc: HS256/HS384/HS512 verify accepts empty/nil HMAC key (cross-language sibling of CVE-2026-45363)
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| authlib | — | joserfc< 1.6.8 | Affected | Not stated | GitHub_M |
| SUSE / openSUSE | openSUSE-Leap-16.0 | python313-joserfcnoarch | Advisory build | 1.1.0-bp160.3.1 | OPENSUSE-SU-2026:21263-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-joserfcaarch64 | Advisory build | 1.7.2-2.1 | OPENSUSE-SU-2026:11183-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-joserfcppc64le | Advisory build | 1.7.2-2.1 | OPENSUSE-SU-2026:11183-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-joserfcs390x | Advisory build | 1.7.2-2.1 | OPENSUSE-SU-2026:11183-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-joserfcx86_64 | Advisory build | 1.7.2-2.1 | OPENSUSE-SU-2026:11183-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-joserfcaarch64 | Advisory build | 1.7.2-2.1 | OPENSUSE-SU-2026:11183-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-joserfcppc64le | Advisory build | 1.7.2-2.1 | OPENSUSE-SU-2026:11183-1 |
Show 2 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-joserfcs390x | Advisory build | 1.7.2-2.1 | OPENSUSE-SU-2026:11183-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-joserfcx86_64 | Advisory build | 1.7.2-2.1 | OPENSUSE-SU-2026:11183-1 |
Description
joserfc is a Python library that provides an implementation of several JSON Object Signing and Encryption (JOSE) standards. Prior to 1.6.8, joserfc.jwt.decode accepts attacker-forged HMAC-signed tokens when the caller-supplied verification key is the empty string or None, because HMACAlgorithm.sign and HMACAlgorithm.verify in src/joserfc/_rfc7518/jws_algs.py pass the output of OctKey.get_op_key(...) to hmac.new(...) and OctKey.import_key in src/joserfc/_rfc7518/oct_key.py only emits a SecurityWarning for keys shorter than 14 bytes without rejecting zero-length input. This issue is fixed in version 1.6.8.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 8.7 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| authlib | joserfc | < 1.6.8 (affected) | GitHub_M · cna |
Weaknesses
3- CWE-287 CWE-287: Improper Authentication
- CWE-326 CWE-326: Inadequate Encryption Strength
- CWE-1391 CWE-1391: Use of Weak Credentials
References
3Provider assertions
2GitHub_M · cna
joserfc: HS256/HS384/HS512 verify accepts empty/nil HMAC key (cross-language sibling of CVE-2026-45363)
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 3add013f4be84345463b1ea4adac0e6edc56b9f5f903e69c17bd91641617ce61
- Ingested
- 23 Sep 2026, 09:17:57 UTC
- Source record
- Official CVE record