{"answers":{"affected":"2 open source packages ship an affected version, including node-jose. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2018-0114 exists.","fix":"Upgrade node-jose to 0.11.0 or later.","what":"CVE-2018-0114 is a high-severity vulnerability in Node-jose Library, published on 4 Jan 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-2018-0114 and fix it if it is affected.\n\nWhat it is: CVE-2018-0114 is a high-severity vulnerability in Node-jose Library, published on 4 Jan 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2018-0114 exists.\n\nAffected packages and fixed versions:\n- node-jose (npm): affected all versions; fixed in 0.11.0\n- node-jose (npm): affected all versions; fixed in 0.11.0\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-2018-0114/ (Markdown: https://insights.sbomify.com/CVE-2018-0114/index.md)","id":"CVE-2018-0114","markdown":"https://insights.sbomify.com/CVE-2018-0114/index.md","name":"CVE-2018-0114","record":{"aliases":["GHSA-jfxm-w8g2-4rcv"],"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":"An attacker can forge valid JSON Web Signatures by embedding their own public key in the token header, bypassing signature verification.","user_interaction":"not_required","vuln_class":"security_feature_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"cisco","cpe":[{"product":"node-jose","vendor":"cisco"}],"cvss":{"score":7.5,"severity":"high","source":"nvd","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-347","name":"Improper Verification of Cryptographic Signature"}],"description":"A vulnerability in the Cisco node-jose open source library before 0.11.0 could allow an unauthenticated, remote attacker to re-sign tokens using a key that is embedded within the token. The vulnerability is due to node-jose following the JSON Web Signature (JWS) standard for JSON Web Tokens (JWTs). This standard specifies that a JSON Web Key (JWK) representing a public key can be embedded within the header of a JWS. This public key is then trusted for verification. An attacker could exploit this by forging valid JWS objects by removing the original signature, adding a new public key to the header, and then signing the object using the (attacker-owned) private key associated with the public key embedded in that JWS header.","ecosystems":["npm"],"exploits":{"exploitdb":1,"first_seen":"2018-03-20","github_poc":14,"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":"2018-03-20T20:37:29Z","kind":"github_poc","ref":"https://github.com/zi0Black/POC-CVE-2018-0114","stars":26,"title":"This repository contains the POC of an exploit for node-jose \u003c 0.11.0"},{"date":"2021-09-03T13:11:28Z","kind":"github_poc","ref":"https://github.com/j4k0m/CVE-2018-0114","stars":4,"title":"Exploitation of a vulnerability in Cisco's node-jose, a JavaScript library created to manage JWT."},{"date":"2021-05-11T11:29:15Z","kind":"github_poc","ref":"https://github.com/scumdestroy/CVE-2018-0114","stars":3,"title":"Exploit  for Node-jose \u003c 0.11.0 written in Ruby"},{"date":"2021-01-03T21:12:10Z","kind":"github_poc","ref":"https://github.com/Eremiel/CVE-2018-0114","stars":2,"title":"python2.7 script for JWT generation"},{"date":"2020-12-20T09:29:35Z","kind":"github_poc","ref":"https://github.com/adityathebe/POC-CVE-2018-0114","stars":1,"title":"POC for CVE-2018-0114 written in Go"},{"date":"2026-01-16T20:34:16Z","kind":"github_poc","ref":"https://github.com/fevra-dev/ClaimJumper","stars":1,"title":"Professional JWT security testing toolkit. Analyze, crack, forge, and exploit JSON Web Tokens with 15+ vulnerability checks, 100k secret wordlist, and CVE-specific attacks (CVE-2022-21449, CVE-2018-0114)."},{"date":"2018-03-20","kind":"exploitdb","ref":"44324","stars":null,"title":"Cisco node-jos \u003c 0.11.0 - Re-sign Tokens"}],"tier":"weaponised"},"has_fix":true,"headline":"Cisco node-jose improper validation of JWT signature","id":"CVE-2018-0114","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"security_feature_bypass","year":"2018"},"n_packages":2,"n_references":5,"next":{"headline":"Command injection in Cisco StarOS","id":"CVE-2018-0115"},"packages":[{"ecosystem":"npm","fixed":["0.11.0"],"introduced":["0"],"last_affected":[],"package":"node-jose","purl":null,"source":"GHSA-jfxm-w8g2-4rcv"},{"ecosystem":"npm","fixed":["0.11.0"],"introduced":["0"],"last_affected":[],"package":"node-jose","purl":"pkg:npm/node-jose","source":"GHSA-jfxm-w8g2-4rcv"}],"prev":{"headline":"Command injection in Cisco UCS Central","id":"CVE-2018-0113"},"products":["Node-jose Library"],"published":"2018-01-04","related":[{"cvss_score":7.5,"headline":"Improper calculations in ECC implementation can trigger a Denial-of-Service (DoS)","id":"CVE-2023-25653","kev_date_added":null,"published":"2023-02-16"},{"cvss_score":5.9,"headline":"Invalid Curve Attack in node-jose","id":"CVE-2017-16007","kev_date_added":null,"published":"2018-06-04"}],"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":"attribution","licence":"GPL-2.0-or-later","name":"Exploit-DB"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-12-02","vendors":["n/a"]},"summary":"An attacker can forge valid JSON Web Signatures by embedding their own public key in the token header, bypassing signature verification.","url":"https://insights.sbomify.com/CVE-2018-0114/"}