Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

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

Quick assessment

Affected
authlib joserfc
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Authlib joserfc是Authlib组织开源的一个 Python 库,全面实现了 JOSE(JSON Object Signing and Encryption)系列标准,包括 JWS、JWE、JWK、JWT 等 RFC 规范,用于安全地处理 JSON 数据的签名与加密。 Authlib joserfc 1.6.8之前版本存在安全漏洞,该漏洞源于HMAC签名验证时未拒绝零长度密钥输入,导致调用者提供的验证密钥为空字符串或None时接受攻击者伪造的HMAC签名令牌。

AI Predicted 9.1 Difficulty: Easy EPSS 0.19% · P8

Possible ATT&CK Techniques 1 AI

T1190 · Exploit Public-Facing Application

Affected Version Matrix 1

VendorProduct Version RangeStatus
authlib joserfc < 1.6.8 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-49852

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
joserfc: HS256/HS384/HS512 verify accepts empty/nil HMAC key (cross-language sibling of CVE-2026-45363)
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
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
Source: CVE Program / CVE List V5
Vulnerability Type
认证机制不恰当
Source: CVE Program / CVE List V5
Vulnerability Title
Authlib joserfc 信任管理问题漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Authlib joserfc是Authlib组织开源的一个 Python 库,全面实现了 JOSE(JSON Object Signing and Encryption)系列标准,包括 JWS、JWE、JWK、JWT 等 RFC 规范,用于安全地处理 JSON 数据的签名与加密。 Authlib joserfc 1.6.8之前版本存在安全漏洞,该漏洞源于HMAC签名验证时未拒绝零长度密钥输入,导致调用者提供的验证密钥为空字符串或None时接受攻击者伪造的HMAC签名令牌。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
authlib joserfc < 1.6.8 -

II. Public POCs for CVE-2026-49852

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-49852

请登录查看更多情报信息。

Patches & Fixes for CVE-2026-49852 (2)

Vendor Advisories for CVE-2026-49852 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2026-49852

No comments yet


Leave a comment