{"id":"EUVD-2021-0876","enisaUuid":"70f6a155-8abb-3202-a801-c8f16c56b78b","description":"jose-node-cjs-runtime is an npm package which provides a number of cryptographic functions. In versions prior to 3.11.4 the AES_CBC_HMAC_SHA2 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. But 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 128*b calls to the padding oracle (where b is the number of bytes in the ciphertext block). A patch was released which ensures the HMAC tag is verified before performing CBC decryption. The fixed versions are `\u003e\u003d3.11.4`. Users should upgrade to `^3.11.4`.","datePublished":"Apr 16, 2021, 10:00:15 PM","dateUpdated":"Aug 3, 2024, 10:02:51 PM","baseScore":5.9,"baseScoreVersion":"3.1","baseScoreVector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","references":"https://github.com/panva/jose/security/advisories/GHSA-rvcw-f68w-8h8h\nhttps://www.npmjs.com/package/jose-node-cjs-runtime\n","aliases":"CVE-2021-29446\nGHSA-rvcw-f68w-8h8h\n","assigner":"GitHub_M","epss":1.07,"enisaIdProduct":[{"id":"a38b1608-691a-3f46-9cd3-91ddd8becdcf","product":{"name":"jose-node-cjs-runtime","vendor":{"name":"panva"}},"product_version":"\u003c 3.11.4"}],"enisaIdVendor":[{"id":"0966a032-1a55-3a37-b12e-bf31da65bab8","vendor":{"name":"panva"}}],"enisaIdVulnerability":[{"id":"98d54cc4-c33f-320a-9779-86653be280ad","vulnerability":{"id":"GHSA-rvcw-f68w-8h8h","description":"Padding Oracle Attack due to Observable Timing Discrepancy in jose-node-cjs-runtime","datePublished":"Apr 19, 2021, 3:00:05 PM","dateUpdated":"Mar 17, 2023, 5:49:57 PM","baseScore":null,"references":"https://github.com/panva/jose/security/advisories/GHSA-rvcw-f68w-8h8h\nhttps://nvd.nist.gov/vuln/detail/CVE-2021-29446\nhttps://github.com/panva/jose\nhttps://www.npmjs.com/package/jose-node-cjs-runtime\n","enisa_id":"EUVD-2021-0876\n","aliases":"GHSA-rvcw-f68w-8h8h\nCVE-2021-29446\n","epss":0.0,"dataProcessed":"Nov 22, 2026, 2:06:15 AM","vulnerabilityProduct":[],"vulnerabilityVendor":[]}},{"id":"b5a028bc-379a-3159-9bca-1fc22c03dfff","vulnerability":{"id":"CVE-2021-29446","description":"jose-node-cjs-runtime is an npm package which provides a number of cryptographic functions. In versions prior to 3.11.4 the AES_CBC_HMAC_SHA2 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. But 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 128*b calls to the padding oracle (where b is the number of bytes in the ciphertext block). A patch was released which ensures the HMAC tag is verified before performing CBC decryption. The fixed versions are `\u003e\u003d3.11.4`. Users should upgrade to `^3.11.4`.","datePublished":"Apr 16, 2021, 10:00:15 PM","dateUpdated":"Aug 3, 2024, 10:02:51 PM","status":"PUBLISHED","baseScore":5.9,"baseScoreVersion":"3.1","baseScoreVector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","references":"https://github.com/panva/jose/security/advisories/GHSA-rvcw-f68w-8h8h\nhttps://www.npmjs.com/package/jose-node-cjs-runtime\n","enisa_id":"EUVD-2021-0876\n","assigner":"GitHub_M","epss":1.07,"dataProcessed":"Nov 24, 2026, 7:19:39 AM","vulnerabilityProduct":[{"id":"39c8fe94-abe4-37e4-84ca-bffd89d66e6f","product":{"name":"jose-node-cjs-runtime","vendor":{"name":"panva"}},"product_version":"\u003c 3.11.4"}],"vulnerabilityVendor":[{"id":"38751d21-bdd3-3294-a2c3-d972f6199cd7","vendor":{"name":"panva"}}]}}],"enisaIdAdvisory":[]}