jwcrypto@1.6.0

Implementation of JOSE Web standards

  • latest version

    1.6.1

  • latest non vulnerable version

  • first published

    11 years ago

  • latest version published

    22 days ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the jwcrypto package. This does not include vulnerabilities belonging to this package’s dependencies.

    Fix vulnerabilities automatically

    Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.

    Fix for free
    VulnerabilityVulnerable Version
    • H
    Inefficient Algorithmic Complexity

    Affected versions of this package are vulnerable to Inefficient Algorithmic Complexity in the JWK.import_key() method, whose key_ops duplicate detection rescans the whole array for every element and enforces no size limit, making the check O(n^2) over untrusted parsed JWK data. An attacker can occupy a CPU core for minutes with a sub-megabyte request body, and exhaust a server with a handful of concurrent requests, by submitting a key such as {"kty":"oct","k":"AAAA","key_ops":[...]} carrying roughly 50,000 distinct operations. This requires the application to import attacker-supplied JWK or JWK Sets through import_key() or the related from_json() and import_keyset() entry points, as in dynamic client registration, DPoP, ACME account keys, or federated JWKS endpoints, and relying parties that import keys only from fixed trusted issuers are unexposed.

    How to fix Inefficient Algorithmic Complexity?

    Upgrade jwcrypto to version 1.6.1 or higher.

    [,1.6.1)