Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2026-49852

HIGH 8.7EPSS 5%

joserfc: HS256/HS384/HS512 verify accepts empty/nil HMAC key (cross-language sibling of CVE-2026-45363)

Also known as GHSA-gg9x-qcx2-xmrh, PYSEC-2026-2528

Mitigation

  • Upgrade joserfc to 1.6.8 or later.

Who should check

  • Projects that depend on PyPI package joserfc (< 1.6.8)
  • Anyone running authlib joserfc < 1.6.8

Vulnerability facts

Affected
joserfc < 1.6.8
Fixed in
1.6.8
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, no login needed
CVSS
8.7 (v4.0, CNA)CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:NOpen in CVSS calculator
Show all 11 CVSS metrics
  • Attack vector: Network
  • Attack complexity: Low
  • Attack requirements: None
  • Privileges required: None
  • User interaction: None
  • Confidentiality impact: None
  • Integrity impact: High
  • Availability impact: None
  • Confidentiality impact on other systems: None
  • Integrity impact on other systems: None
  • Availability impact on other systems: None
EPSS
0.19% chance of exploitation in 30 days (percentile 5, 2026-11-26)
CWE
CWE-287, CWE-326, CWE-1391
Published
Modified

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.

Affected and fixed versions

Package / productAffectedFixedSource
PyPI joserfc< 1.6.81.6.8osv
authlib joserfc< 1.6.8—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2026-49852. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-49852.md
Affected: joserfc < 1.6.8
Fixed in: 1.6.8

Steps:
1. Search this machine and project for joserfc (PyPI), authlib joserfc: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2026-49852 being exploited?

There is no confirmed exploitation: CVE-2026-49852 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.19% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2026-49852?

High: CVSS 8.7 (v4.0, scored by CNA). Remote, no login needed.

Which versions are affected by CVE-2026-49852?

joserfc < 1.6.8.

Is there a fix for CVE-2026-49852?

Yes. Fixed in 1.6.8. Upgrade joserfc to 1.6.8 or later.

How do I check if I'm affected by CVE-2026-49852?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors