CVE-2026-84185: Jwcrypto: jwcrypto: general json jws kid binding bypass during jwkset verification

Published Sep 1, 2026
·
Updated

A flaw was found in jwcrypto. When verifying a General JSON Serialization JWS using a JWKSet, the library does not correctly apply the current signature kid header when selecting the verification key. The root cause is located in jwcrypto/jws.py, where the code incorrectly evaluates the joseheader as a dictionary when it is actually a list for General JSON JWS objects. Consequently, the library may iterate through every key in the supplied JWKSet and accept a signature made by a different key than the one identified by the kid header.

An attacker who possesses a valid signing key within the application's trusted JWKSet can exploit this flaw to bypass kid-based authorization bindings. This allows the attacker to perform actions such as impersonating other tenants, accessing unauthorized data, or escalating privileges in applications that rely on the kid claim for security decisions.

Other sources

A flaw was found in the jwcrypto library, which is used for implementing Javascript Object Signing and Encryption (JOSE) standards. The issue occurs when the library verifies a General JSON Serialization JWS using a set of keys. Due to a coding error, the library fails to correctly identify the specific key ID (kid) and may instead accept a signature made by any valid key in the set. This can allow an attacker with a valid key to bypass authorization checks in applications that rely on the key ID to identify specific tenants or users.

MITRE

Affected Software

1 affected component
jwcrypto

Event History

Sep 1, 2026
Data Sourced
via Red Hat·10:33 AM
DescriptionSeverityAffected Software
Sep 3, 2026
CVE Published
via MITRE·08:46 PM
Data Sourced
via MITRE·08:46 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are exposed to this issue?

Applications are exposed when they verify General JSON Serialization JWS objects with a JWKSet and use the signature's kid value to bind authorization, tenancy, identity, or privileges to a particular key.

2

What does an attacker need to exploit the flaw?

The attacker must possess a valid signing key that is already present in the application's trusted JWKSet. Exploitation relies on submitting a General JSON JWS whose signature is accepted under a different trusted key than the key identified by its kid header.

3

What is the practical security impact?

In applications that make security decisions based on kid, the flaw can bypass those key bindings. The described outcomes include impersonating other tenants, accessing unauthorized data, and escalating privileges.

4

Are all JWS verification uses affected?

The issue is described specifically for verification of General JSON Serialization JWS objects using a JWKSet. The provided information does not establish impact for other JWS serialization formats or verification configurations.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203