{"answers":{"affected":"2 open source packages ship an affected version, including jsonwebtoken. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-25537 exists.","fix":"Upgrade jsonwebtoken to 10.3.0 or later.","what":"CVE-2026-25537 is a medium-severity authentication bypass vulnerability in Keats jsonwebtoken, published on 4 Feb 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-25537 and fix it if it is affected.\n\nWhat it is: CVE-2026-25537 is a medium-severity authentication bypass vulnerability in Keats jsonwebtoken, published on 4 Feb 2026. 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-2026-25537 exists.\n\nAffected packages and fixed versions:\n- jsonwebtoken (crates.io): affected all versions; fixed in 10.3.0\n- jsonwebtoken (crates.io): affected all versions; fixed in 10.3.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-2026-25537/ (Markdown: https://insights.sbomify.com/CVE-2026-25537/index.md)","id":"CVE-2026-25537","markdown":"https://insights.sbomify.com/CVE-2026-25537/index.md","name":"CVE-2026-25537","record":{"aliases":["DEBIAN-CVE-2026-25537","GHSA-h395-gr6q-cpjc","MINI-38hc-f2v8-hmc9","MINI-8f84-f7h5-3vmc","MINI-g969-x52j-vcq4","UBUNTU-CVE-2026-25537"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["security_bypass"],"network_reachable":"yes","non_default_config":true,"product_category":"Rust JWT library","requires_auth":"none","summary":"Attackers can bypass time-based validation checks by providing malformed claims, leading to potential authentication and authorization bypasses in applications using this Rust library.","user_interaction":"not_required","vuln_class":"auth_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"jsonwebtoken","vendor":"keats"}],"cvss":{"score":5.5,"severity":"medium","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:P","version":"4.0"},"cwes":[{"id":"CWE-843","name":"Access of Resource Using Incompatible Type"}],"description":"jsonwebtoken is a JWT lib in rust. Prior to version 10.3.0, there is a Type Confusion vulnerability in jsonwebtoken, specifically, in its claim validation logic. When a standard claim (such as nbf or exp) is provided with an incorrect JSON type (Like a String instead of a Number), the library’s internal parsing mechanism marks the claim as “FailedToParse”. Crucially, the validation logic treats this “FailedToParse” state identically to “NotPresent”. This means that if a check is enabled (like: validate_nbf = true), but the claim is not explicitly marked as required in required_spec_claims, the library will skip the validation check entirely for the malformed claim, treating it as if it were not there. This allows attackers to bypass critical time-based security restrictions (like “Not Before” checks) and commit potential authentication and authorization bypasses. This issue has been patched in version 10.3.0.","ecosystems":["crates.io"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"jsonwebtoken has Type Confusion that leads to potential authorization bypass","id":"CVE-2026-25537","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"crates.io","product":null,"products":[],"type":"auth_bypass","year":"2026"},"n_packages":2,"n_references":2,"next":{"headline":"Devtron Attributes API Unauthorized Access Leading to API Token Signing Key Leakage","id":"CVE-2026-25538"},"packages":[{"ecosystem":"crates.io","fixed":["10.3.0"],"introduced":["0"],"last_affected":[],"package":"jsonwebtoken","purl":null,"source":"GHSA-h395-gr6q-cpjc"},{"ecosystem":"crates.io","fixed":["10.3.0"],"introduced":["0"],"last_affected":[],"package":"jsonwebtoken","purl":"pkg:cargo/jsonwebtoken","source":"GHSA-h395-gr6q-cpjc"}],"prev":{"headline":"@modelcontextprotocol/sdk has cross-client data leak via shared server/transport instance reuse","id":"CVE-2026-25536"},"products":["jsonwebtoken"],"published":"2026-02-04","related":[],"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":"yes","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-02-05","vendors":["Keats"]},"summary":"Attackers can bypass time-based validation checks by providing malformed claims, leading to potential authentication and authorization bypasses in applications using this Rust library.","url":"https://insights.sbomify.com/CVE-2026-25537/"}