CVE-2021-29446
JavaScript vulnerability analysis and mitigation

Overview

A padding oracle vulnerability (CVE-2021-29446) was discovered in jose-node-cjs-runtime versions prior to 3.11.4. The vulnerability affects the AESCBCHMAC_SHA2 Algorithm (A128CBC-HS256, A192CBC-HS384, A256CBC-HS512) decryption process, where observable timing differences during padding error occurrence could be exploited (GitHub Advisory).

Technical details

The vulnerability stems from the implementation of AESCBCHMAC_SHA2 Algorithm decryption, where both HMAC tag verification and CBC decryption would always execute. When either operation failed, a JWEDecryptionFailed error would be thrown. However, the timing discrepancy during padding errors could be observed and exploited as a padding oracle (GitHub Advisory). The vulnerability has been assigned a CVSS v3.1 base score of 5.9 (High) with the vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N.

Impact

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

Mitigation and workarounds

The vulnerability has been patched in version 3.11.4 and later. The fix ensures that HMAC tag verification is performed before CBC decryption. Users are advised to upgrade to version 3.11.4 or later (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-55182CRITICAL10
  • JavaScriptJavaScript
  • react-server-dom-webpack
NoYesDec 03, 2025
CVE-2025-66032HIGH8.7
  • JavaScriptJavaScript
  • @anthropic-ai/claude-code
NoYesDec 03, 2025
CVE-2025-66412HIGH8.5
  • JavaScriptJavaScript
  • @angular/compiler
NoYesDec 01, 2025
CVE-2025-66415MEDIUM6.9
  • JavaScriptJavaScript
  • @fastify/reply-from
NoYesDec 01, 2025
CVE-2025-66404MEDIUM6.4
  • JavaScriptJavaScript
  • mcp-server-kubernetes
NoYesDec 03, 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