{"id":"EUVD-2021-0764","enisaUuid":"c647ba97-f14f-3728-be27-34faa78afb34","description":"jose is an npm library providing a number of cryptographic operations. In vulnerable versions 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. 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). 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 || \u003e\u003d3.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.","datePublished":"Apr 16, 2021, 5:35:12 PM","dateUpdated":"Aug 3, 2024, 10:02:52 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-58f5-hfqc-jgch\nhttps://www.npmjs.com/package/jose\n","aliases":"CVE-2021-29443\nGHSA-58f5-hfqc-jgch\n","assigner":"GitHub_M","epss":1.17,"enisaIdProduct":[{"id":"2dcea878-39d2-3d2f-855d-765b1d1050e9","product":{"name":"jose","vendor":{"name":"appsup-dart"}},"product_version":"\u003c 1.28.1"},{"id":"5bb00667-62dd-3291-814f-fdc6f8eda60f","product":{"name":"jose","vendor":{"name":"appsup-dart"}},"product_version":"3.0.0, \u003c 3.11.4"},{"id":"c8a205e3-6f47-36a4-86ba-85cb1070e724","product":{"name":"jose","vendor":{"name":"appsup-dart"}},"product_version":"2.0.0, \u003c 2.0.5"}],"enisaIdVendor":[{"id":"de948db6-4696-3c55-96b2-873f24e859fa","vendor":{"name":"panva"}}],"enisaIdVulnerability":[{"id":"67c45a17-96de-355d-9dc6-349f1411a81a","vulnerability":{"id":"GHSA-58f5-hfqc-jgch","description":"Padding Oracle Attack due to Observable Timing Discrepancy in jose","datePublished":"Apr 19, 2021, 2:57:22 PM","dateUpdated":"Apr 16, 2021, 11:01:38 PM","baseScore":null,"references":"https://github.com/panva/jose/security/advisories/GHSA-58f5-hfqc-jgch\nhttps://nvd.nist.gov/vuln/detail/CVE-2021-29443\nhttps://www.npmjs.com/package/jose\n","enisa_id":"EUVD-2021-0764\n","aliases":"CVE-2021-29443\nGHSA-58f5-hfqc-jgch\n","epss":0.0,"dataProcessed":"Nov 22, 2026, 2:06:15 AM","vulnerabilityProduct":[],"vulnerabilityVendor":[]}},{"id":"a155b2bd-f515-3542-b7ae-7b9cb6f4e897","vulnerability":{"id":"CVE-2021-29443","description":"jose is an npm library providing a number of cryptographic operations. In vulnerable versions 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. 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). 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 || \u003e\u003d3.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.","datePublished":"Apr 16, 2021, 5:35:12 PM","dateUpdated":"Aug 3, 2024, 10:02:52 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-58f5-hfqc-jgch\nhttps://www.npmjs.com/package/jose\n","enisa_id":"EUVD-2021-0764\n","assigner":"GitHub_M","epss":1.17,"dataProcessed":"Nov 23, 2026, 7:17:25 AM","vulnerabilityProduct":[{"id":"79005a02-52a4-3414-85fb-786b60ee1286","product":{"name":"jose","vendor":{"name":"appsup-dart"}},"product_version":"3.0.0, \u003c 3.11.4"},{"id":"c39f48c3-9b03-371a-8d2f-99e064ff7d3c","product":{"name":"jose","vendor":{"name":"appsup-dart"}},"product_version":"\u003c 1.28.1"},{"id":"c8313f70-a1ce-39a6-bf21-1b192af7f76b","product":{"name":"jose","vendor":{"name":"appsup-dart"}},"product_version":"2.0.0, \u003c 2.0.5"}],"vulnerabilityVendor":[{"id":"f055d536-b9a3-3094-b651-7c12eb27884f","vendor":{"name":"panva"}}]}}],"enisaIdAdvisory":[]}