{"answers":{"affected":"2 open source packages ship an affected version, including jsonwebtoken. It affects 1 product.","exploited":"There is no known exploitation of CVE-2015-9235 in the wild and no public exploit code.","fix":"Upgrade jsonwebtoken to 4.2.2 or later.","what":"CVE-2015-9235 is a critical vulnerability in HackerOne jsonwebtoken node module, published on 29 May 2018. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2015-9235 and fix it if it is affected.\n\nWhat it is: CVE-2015-9235 is a critical vulnerability in HackerOne jsonwebtoken node module, published on 29 May 2018. 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-2015-9235 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- jsonwebtoken (npm): affected all versions; fixed in 4.2.2\n- jsonwebtoken (npm): affected all versions; fixed in 4.2.2\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-2015-9235/ (Markdown: https://insights.sbomify.com/CVE-2015-9235/index.md)","id":"CVE-2015-9235","markdown":"https://insights.sbomify.com/CVE-2015-9235/index.md","name":"CVE-2015-9235","record":{"aliases":["CLSA-2026-1774657373","GHSA-c7hr-j4mj-j2w6","ROOT-APP-NPM-CVE-2015-9235"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"Node.js JWT library","requires_auth":"none","summary":"Attackers can bypass JWT signature verification by switching algorithm types, allowing unauthorized access in applications using the jsonwebtoken library.","user_interaction":"not_required","vuln_class":"security_feature_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"hackerone","cpe":[{"product":"jsonwebtoken","vendor":"auth0"}],"cvss":{"score":9.8,"severity":"critical","source":"nvd","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.0"},"cwes":[{"id":"CWE-327","name":"Use of a Broken or Risky Cryptographic Algorithm"},{"id":"CWE-20","name":"Improper Input Validation"}],"description":"In jsonwebtoken node module before 4.2.2 it is possible for an attacker to bypass verification when a token digitally signed with an asymmetric key (RS/ES family) of algorithms but instead the attacker send a token digitally signed with a symmetric algorithm (HS* family).","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":"2022-01-13","github_poc":4,"max_poc_stars":287,"metasploit":0,"nuclei":0,"refs":[{"date":"2025-01-27T14:23:31Z","kind":"github_poc","ref":"https://github.com/z-bool/Venom-JWT","stars":287,"title":"针对JWT渗透开发的漏洞验证/密钥爆破工具，针对CVE-2015-9235/空白密钥/未验证签名攻击/CVE-2016-10555/CVE-2018-0114/CVE-2020-28042的结果生成用于FUZZ，也可使用字典/字符枚举(包括JJWT)的方式进行爆破(JWT Crack)"},{"date":"2023-09-10T11:27:23Z","kind":"github_poc","ref":"https://github.com/Nxvh1337/CVE-2015-9235_JWT_key_confusion","stars":3,"title":"automate CVE-2015-9235 exploitation"},{"date":"2022-01-13T23:09:13Z","kind":"github_poc","ref":"https://github.com/aalex954/jwt-key-confusion-poc","stars":2,"title":"JWT Key Confusion PoC (CVE-2015-9235) Written for the Hack the Box challenge - Under Construction"},{"date":"2026-03-11T01:05:00Z","kind":"github_poc","ref":"https://github.com/tierChampion/POC_CVE-2015-9235","stars":0,"title":"Demo of the algorithm confusion attack on various JWT libraries"}],"tier":"poc_unverified"},"has_fix":true,"headline":"Verification Bypass in jsonwebtoken","id":"CVE-2015-9235","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"security_feature_bypass","year":"2015"},"n_packages":2,"n_references":4,"next":{"headline":"Incorrect handling of CORS preflight request headers in hapi","id":"CVE-2015-9236"},"packages":[{"ecosystem":"npm","fixed":["4.2.2"],"introduced":["0"],"last_affected":[],"package":"jsonwebtoken","purl":null,"source":"GHSA-c7hr-j4mj-j2w6"},{"ecosystem":"npm","fixed":["4.2.2"],"introduced":["0"],"last_affected":[],"package":"jsonwebtoken","purl":"pkg:npm/jsonwebtoken","source":"GHSA-c7hr-j4mj-j2w6"}],"prev":{"headline":"SQL injection in n/a","id":"CVE-2015-9234"},"products":["jsonwebtoken node module"],"published":"2018-05-29","related":[{"cvss_score":6.4,"headline":"jsonwebtoken vulnerable to signature validation bypass due to insecure default algorithm in jwt.verify()","id":"CVE-2022-23540","kev_date_added":null,"published":"2022-12-22"},{"cvss_score":5.9,"headline":"jsonwebtoken unrestricted key type could lead to legacy keys usage","id":"CVE-2022-23539","kev_date_added":null,"published":"2022-12-22"},{"cvss_score":5,"headline":"jsonwebtoken's insecure implementation of key retrieval function could lead to Forgeable Public/Private Tokens from RSA to HMAC","id":"CVE-2022-23541","kev_date_added":null,"published":"2022-12-22"}],"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)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-09-16","vendors":["HackerOne"]},"summary":"Attackers can bypass JWT signature verification by switching algorithm types, allowing unauthorized access in applications using the jsonwebtoken library.","url":"https://insights.sbomify.com/CVE-2015-9235/"}