jose@1.26.0 vulnerabilities

JWA, JWS, JWE, JWT, JWK, JWKS for Node.js, Browser, Cloudflare Workers, Deno, Bun, and other Web-interoperable runtimes

  • latest version

    5.9.6

  • latest non vulnerable version

  • first published

    10 years ago

  • latest version published

    1 months ago

  • licenses detected

  • Direct Vulnerabilities

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

    How to fix?

    Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.

    Fix for free
    VulnerabilityVulnerable Version
    • M
    Resource Exhaustion

    jose is an Universal 'JSON Web Almost Everything' - JWA, JWS, JWE, JWT, JWK with no dependencies

    Affected versions of this package are vulnerable to Resource Exhaustion due to the JWE decryption interfaces' support for decompressing plaintext after its decryption. An attacker can cause the application to consume an unreasonable amount of CPU time or memory by sending malicious JWE payloads with compressed plaintext.

    Note:

    This is only exploitable if the application uses JWE decryption from untrusted sources and runs in a Node.js environment.

    How to fix Resource Exhaustion?

    Upgrade jose to version 2.0.7, 4.15.5 or higher.

    <2.0.7>=3.0.0 <4.15.5
    • M
    Denial of Service (DoS)

    jose is an Universal 'JSON Web Almost Everything' - JWA, JWS, JWE, JWT, JWK with no dependencies

    Affected versions of this package are vulnerable to Denial of Service (DoS) by allowing an attacker to intentionally pick an extremely high PBES2 Count value which will initiate a CPU-bound computation that may take an unreasonable amount of time to finish.

    Note: The impact is limited only to users utilizing the JWE decryption APIs with symmetric secrets to decrypt JWEs from untrusted parties who do not limit the accepted JWE Key Management Algorithms (alg Header Parameter) using the keyManagementAlgorithms (or algorithms in v1.x) decryption option or through other means.

    How to fix Denial of Service (DoS)?

    Upgrade jose to version 1.28.2, 2.0.6, 3.20.4, 4.9.2 or higher.

    <1.28.2>=2.0.0 <2.0.6>=3.0.0 <3.20.4>=4.0.0 <4.9.2
    • M
    Timing Attack

    jose is an Universal 'JSON Web Almost Everything' - JWA, JWS, JWE, JWT, JWK with no dependencies

    Affected versions of this package are vulnerable to Timing Attack. A difference in task execution timing may be observed in the AES_CBC_HMAC_SHA2 Algorithm when a padding error occurs during decryption, which may allow a malicious actor to decrypt data without the key.

    How to fix Timing Attack?

    Upgrade jose to version 1.28.1, 2.0.5, 3.11.4 or higher.

    <1.28.1>=2.0.0 <2.0.5>=3.0.0 <3.11.4