CVE-2021-29443: Padding Oracle Attack due to Observable Timing Discrepancy in jose

Published Apr 16, 2021
·
Updated

jose is an npm library providing a number of cryptographic operations. In vulnerable versions AESCBCHMACSHA2 Algorithm (A128CBC-HS256, A192CBC-HS384, A256CBC-HS512) decryption would always execute both HMAC tag verification and CBC decryption, if either failed JWEDecryptionFailed would be thrown. A possibly observable difference in timing when padding error would occur while decrypting the ciphertext makes a padding oracle and an adversary might be able to make use of that oracle to decrypt data without knowing the decryption key by issuing on average 128b calls to the padding oracle (where b is the number of bytes in the ciphertext block). All major release versions have had a patch released which ensures the HMAC tag is verified before performing CBC decryption. The fixed versions are ^1.28.1 || ^2.0.5 || >=3.11.4. Users should upgrade their v1.x dependency to ^1.28.1, their v2.x dependency to ^2.0.5, and their v3.x dependency to ^3.11.4. Thanks to Jason from Microsoft Vulnerability Research (MSVR) for bringing this up and Eva Sarafianou (@esarafianou) for helping to score this advisory.

Affected Software

6 affected components
Jose Project Jose Node.js>=1.0.0<1.28.1
Jose Project Jose Node.js>=2.0.0<2.0.5
Jose Project Jose Node.js>=3.0.0<3.11.4
panva Jose Node.js>=1.0.0<1.28.1
panva Jose Node.js>=2.0.0<2.0.5
panva Jose Node.js>=3.0.0<3.11.4

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade npm/jose to a version that resolves this vulnerability.

    Fixed in ^1.28.1
  2. Upgrade

    Upgrade npm/jose to a version that resolves this vulnerability.

    Fixed in ^2.0.5
  3. Upgrade

    Upgrade npm/jose to a version that resolves this vulnerability.

    Fixed in >=3.11.4

Event History

Apr 16, 2021
CVE Published
via MITRE·05:35 PM
Data Sourced
via MITRE·05:35 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·06:15 PM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2021-29443?

CVE-2021-29443 has a severity rating that indicates it poses significant security risks due to improper HMAC tag verification and CBC decryption.

2

How do I fix CVE-2021-29443?

To fix CVE-2021-29443, you should upgrade the 'jose' library to version 1.28.2 or later for version 1.x, or version 2.0.6 or later for version 2.x, or version 3.11.5 or later for version 3.x.

3

What software is affected by CVE-2021-29443?

CVE-2021-29443 affects all versions of the 'jose' library from version 1.0.0 to 1.28.1, version 2.0.0 to 2.0.5, and version 3.0.0 to 3.11.4.

4

What type of vulnerability is CVE-2021-29443?

CVE-2021-29443 is a cryptographic vulnerability that allows improper handling of HMAC tag verification in AES encryption.

5

Does CVE-2021-29443 affect node.js applications?

Yes, CVE-2021-29443 impacts node.js applications that utilize the affected versions of the 'jose' library.

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