CVE-2021-29443
JavaScript vulnerability analysis and mitigation

Overview

jose is an npm library providing cryptographic operations, where versions prior to 1.28.1, 2.0.5, and 3.11.4 contained a vulnerability in the AESCBCHMAC_SHA2 Algorithm (A128CBC-HS256, A192CBC-HS384, A256CBC-HS512) decryption process. The vulnerability was discovered in April 2021 and assigned CVE-2021-29443 (GitHub Advisory).

Technical details

The vulnerability stems from the implementation of AESCBCHMAC_SHA2 Algorithm decryption, which would execute both HMAC tag verification and CBC decryption operations regardless of their order. If either operation failed, a JWEDecryptionFailed error would be thrown. This implementation created an observable timing difference when padding errors occurred during ciphertext decryption. The vulnerability has a CVSS v3.1 base score of 5.9 (Medium) with a vector string of CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N (GitHub Advisory).

Impact

An adversary could potentially exploit this vulnerability to decrypt data without knowing the decryption key by utilizing the padding oracle. The attack would require approximately 128*b calls to the padding oracle, where b represents the number of bytes in the ciphertext block (GitHub Advisory).

Mitigation and workarounds

All major release versions have received patches that ensure HMAC tag verification is performed before CBC decryption. Users should upgrade to the following fixed versions: v1.x users should upgrade to ^1.28.1, v2.x users to ^2.0.5, and v3.x users to ^3.11.4 (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-66456CRITICAL9.1
  • JavaScriptJavaScript
  • elysia
NoYesDec 09, 2025
CVE-2025-66457HIGH7.5
  • JavaScriptJavaScript
  • elysia
NoYesDec 09, 2025
CVE-2025-65849MEDIUM6.9
  • JavaScriptJavaScript
  • altcha
NoNoDec 08, 2025
CVE-2025-66202MEDIUM6.5
  • JavaScriptJavaScript
  • astro
NoYesDec 09, 2025
CVE-2025-14284MEDIUM5.1
  • JavaScriptJavaScript
  • @tiptap/extension-link
NoYesDec 09, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management