Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-102946 Overview
CVE-2026-102946 is an authentication bypass vulnerability [CWE-290] in joserfc, a Python library implementing JSON Object Signing and Encryption (JOSE) standards. Versions prior to 1.7.4 allow attackers to bypass JSON Web Signature (JWS) verification by submitting a General JSON Serialization payload with an empty signatures array. The verify_general_json() function treats this condition as a successful verification because no signature check fails during the zero-iteration loop. Relying applications may accept arbitrary attacker-controlled payloads as authentic.
Critical Impact
Attackers without any signing key can forge authenticated JWS payloads, undermining the integrity guarantees that JOSE-based authentication and authorization systems depend on.
Affected Products
- joserfc Python library versions prior to 1.7.4
- Applications using joserfc.jws.deserialize_json() on the General JSON Serialization path
- Downstream services relying on joserfc for JWS-based authentication or integrity verification
Discovery Timeline
- 2026-10-15 - CVE-2026-102946 published to NVD
- 2026-10-15 - Last updated in NVD database
Technical Details for CVE-2026-102946
Vulnerability Analysis
The flaw resides in the General JSON Serialization verification path of joserfc. When deserialize_json() is invoked, it delegates to verify_general_json(), which iterates over the signatures array to validate each signature against registered keys. If the array is empty, the loop body never executes, and the function returns success by default. The caller interprets this as a verified payload, even though no cryptographic verification occurred.
The issue is scoped to the General JSON Serialization code path. Compact JWS, JWT decoding, Flattened JSON serialization, and JSON Web Encryption (JWE) processing use different verification logic and are not affected.
Root Cause
The root cause is an improper authentication pattern [CWE-290] where verification success is inferred from the absence of failures rather than from the presence of at least one valid signature. The implementation lacks a precondition that requires the signatures array to be non-empty before accepting the payload as authenticated.
Attack Vector
An unauthenticated remote attacker crafts a JWS General JSON Serialization object containing an arbitrary payload and an empty signatures array. The attacker submits this object to any endpoint that uses joserfc.jws.deserialize_json() to validate tokens. The library returns the payload as verified, and downstream authorization logic treats the attacker-chosen claims as trusted.
# Patch from src/joserfc/_rfc7515/json.py
# Source: https://github.com/authlib/joserfc/commit/f409f8f058225d7686acab6546c94593e4c1bfbe
def verify_general_json(obj: GeneralJSONSignature, registry: JWSRegistry, find_key: FindKey) -> bool:
payload_segment = obj.segments["payload"]
+ if not obj.signatures:
+ return False
+
for index, signature in enumerate(obj.signatures):
member = obj.members[index]
if not verify_signature(member, signature, payload_segment, registry, find_key):
The fix adds an explicit check that returns False when the signatures array is empty, preventing the empty-loop bypass. Source: GitHub Commit f409f8f.
Detect Identity Attacks the Moment Authentication Fails
Singularity™ Identity surfaces credential misuse, lateral movement, and privilege escalation in real time, so you can contain the breach before it spreads.
Stop Identity AttacksDetection Methods for CVE-2026-102946
Indicators of Compromise
- Incoming JWS General JSON Serialization payloads containing an empty signatures: [] array
- Successful authentication or authorization events associated with JWS tokens that lack any signature material
- Application logs showing deserialize_json() returning verified payloads with no corresponding key resolution events
Detection Strategies
- Inspect HTTP request bodies and token payloads for JSON structures matching the General JSON Serialization schema with signatures arrays of length zero.
- Instrument joserfc.jws.deserialize_json() call sites with logging that records the number of signatures validated per request.
- Correlate authentication events with the version of joserfc installed on each service to identify vulnerable deployments.
Monitoring Recommendations
- Enable dependency inventory scanning across Python environments to flag any joserfc package below version 1.7.4.
- Alert on anomalous authentication flows where privileged actions occur without preceding key-lookup or signature-validation telemetry.
- Monitor Software Bill of Materials (SBOM) feeds and GitHub Security Advisory updates for joserfc to catch regression or related issues.
How to Mitigate CVE-2026-102946
Immediate Actions Required
- Upgrade joserfc to version 1.7.4 or later in all production and development environments.
- Audit all code paths that invoke joserfc.jws.deserialize_json() and confirm callers do not rely solely on the library return value for trust decisions.
- Rotate any secrets or session material that may have been issued based on JWS tokens accepted while the vulnerable version was deployed.
Patch Information
The maintainers released the fix in joserfc 1.7.4. The patch adds an explicit empty-signatures check in verify_general_json(). See GitHub Security Advisory GHSA-4pp3-559j-c5c2 for full advisory details.
Workarounds
- Reject any JWS General JSON Serialization input at the application boundary whose signatures array is empty or missing before invoking joserfc.
- Route verification through the compact JWS or JWT decoding APIs, which are not affected by this vulnerability.
- Enforce schema validation on inbound JOSE payloads to require at least one signature entry containing both protected and signature fields.
# Upgrade joserfc to the patched release
pip install --upgrade 'joserfc>=1.7.4'
# Verify installed version
python -c "import joserfc; print(joserfc.__version__)"
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

