{"answers":{"affected":"6 open source packages ship an affected version, including jose. It affects 1 product.","exploited":"There is no known exploitation of CVE-2021-29443 in the wild and no public exploit code.","fix":"Upgrade jose to a fixed version for your release line: 1.28.1, 2.0.5 or 3.11.4.","what":"CVE-2021-29443 is a medium-severity vulnerability in panva jose, published on 16 Apr 2021. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2021-29443 and fix it if it is affected.\n\nWhat it is: CVE-2021-29443 is a medium-severity vulnerability in panva jose, published on 16 Apr 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2021-29443 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- jose (npm): affected from 1.0.0; fixed in 1.28.1\n- jose (npm): affected from 1.0.0; fixed in 1.28.1\n- jose (npm): affected from 2.0.0; fixed in 2.0.5\n- jose (npm): affected from 2.0.0; fixed in 2.0.5\n- jose (npm): affected from 3.0.0; fixed in 3.11.4\n- jose (npm): affected from 3.0.0; fixed in 3.11.4\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2021-29443/ (Markdown: https://insights.sbomify.com/CVE-2021-29443/index.md)","id":"CVE-2021-29443","markdown":"https://insights.sbomify.com/CVE-2021-29443/index.md","name":"CVE-2021-29443","record":{"aliases":["GHSA-58f5-hfqc-jgch"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"JavaScript crypto library","requires_auth":"none","summary":"An attacker can decrypt data without the key by exploiting timing discrepancies in the jose library's AES-CBC-HMAC decryption process.","user_interaction":"not_required","vuln_class":"other"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"jose","vendor":"panva"}],"cvss":{"score":5.9,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-203","name":"Observable Discrepancy"}],"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=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.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Padding Oracle Attack due to Observable Timing Discrepancy in jose","id":"CVE-2021-29443","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"other","year":"2021"},"n_packages":6,"n_references":2,"next":{"headline":"Padding Oracle Attack due to Observable Timing Discrepancy in jose-browser-runtime","id":"CVE-2021-29444"},"packages":[{"ecosystem":"npm","fixed":["1.28.1"],"introduced":["1.0.0"],"last_affected":[],"package":"jose","purl":null,"source":"GHSA-58f5-hfqc-jgch"},{"ecosystem":"npm","fixed":["1.28.1"],"introduced":["1.0.0"],"last_affected":[],"package":"jose","purl":"pkg:npm/jose","source":"GHSA-58f5-hfqc-jgch"},{"ecosystem":"npm","fixed":["2.0.5"],"introduced":["2.0.0"],"last_affected":[],"package":"jose","purl":null,"source":"GHSA-58f5-hfqc-jgch"},{"ecosystem":"npm","fixed":["2.0.5"],"introduced":["2.0.0"],"last_affected":[],"package":"jose","purl":"pkg:npm/jose","source":"GHSA-58f5-hfqc-jgch"},{"ecosystem":"npm","fixed":["3.11.4"],"introduced":["3.0.0"],"last_affected":[],"package":"jose","purl":null,"source":"GHSA-58f5-hfqc-jgch"},{"ecosystem":"npm","fixed":["3.11.4"],"introduced":["3.0.0"],"last_affected":[],"package":"jose","purl":"pkg:npm/jose","source":"GHSA-58f5-hfqc-jgch"}],"prev":{"headline":"Authentication bypass","id":"CVE-2021-29442"},"products":["jose"],"published":"2021-04-16","related":[{"cvss_score":5.3,"headline":"JOSE vulnerable to resource exhaustion via specifically crafted JWE","id":"CVE-2022-36083","kev_date_added":null,"published":"2022-09-07"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-03","vendors":["panva"]},"summary":"An attacker can decrypt data without the key by exploiting timing discrepancies in the jose library's AES-CBC-HMAC decryption process.","url":"https://insights.sbomify.com/CVE-2021-29443/"}