CyberRota Analysis
AI-GeneratedThe jwcrypto library in Java is vulnerable due to a coding error that allows it to incorrectly verify JSON Web Signatures (JWS) by accepting signatures from any valid key in a set, rather than the intended key identified by the key ID (kid). This flaw can enable attackers with valid keys to bypass authorization checks, potentially compromising tenant or user-specific access controls in applications that depend on this library. Organizations using the jwcrypto library for JOSE standards should prioritize addressing this vulnerability to mitigate the risk of unauthorized access.
Original NVD Description
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.