{"answers":{"affected":"2 open source packages ship an affected version, including Newtonsoft.Json. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-21907 exists.","fix":"Upgrade Newtonsoft.Json to 13.0.1 or later.","what":"CVE-2024-21907 is a high-severity denial of service vulnerability in newtonsoft:json.net, published on 3 Jan 2024. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-21907 and fix it if it is affected.\n\nWhat it is: CVE-2024-21907 is a high-severity denial of service vulnerability in newtonsoft:json.net, published on 3 Jan 2024. 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-2024-21907 exists.\n\nAffected packages and fixed versions:\n- Newtonsoft.Json (NuGet): affected all versions; fixed in 13.0.1\n- Newtonsoft.Json (NuGet): affected all versions; fixed in 13.0.1\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-2024-21907/ (Markdown: https://insights.sbomify.com/CVE-2024-21907/index.md)","id":"CVE-2024-21907","markdown":"https://insights.sbomify.com/CVE-2024-21907/index.md","name":"CVE-2024-21907","record":{"aliases":["ECHO-b343-99af-a20d","GHSA-5crp-9r3c-p9vr","UBUNTU-CVE-2024-21907"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"JSON serialization library","requires_auth":"none","summary":"Remote attackers can cause a denial of service via stack overflow in Newtonsoft.Json by sending crafted data to the deserialization method.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"VulnCheck","cpe":[{"product":"json.net","vendor":"newtonsoft"}],"cvss":{"score":7.5,"severity":"high","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},"cwes":[{"id":"CWE-755","name":"Improper Handling of Exceptional Conditions"}],"description":"Newtonsoft.Json before version 13.0.1 is affected by a mishandling of exceptional conditions vulnerability. Crafted data that is passed to the JsonConvert.DeserializeObject method may trigger a StackOverflow exception resulting in denial of service. Depending on the usage of the library, an unauthenticated and remote attacker may be able to cause the denial of service condition.","ecosystems":["NuGet"],"exploits":{"exploitdb":0,"first_seen":"2026-05-18","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2026-05-18T00:56:52Z","kind":"github_poc","ref":"https://github.com/iSecurityTW/seal-security-nuget-demo-net7","stars":0,"title":".NET 7 fork of seal-security-nuget-demo: same CVE-2024-21907 exploit story, retargeted for customers locked to .NET SDK 7."}],"tier":"weaponised"},"has_fix":true,"headline":"Improper Handling of Exceptional Conditions in Newtonsoft.Json","id":"CVE-2024-21907","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"NuGet","product":null,"products":[],"type":"denial_of_service","year":"2024"},"n_packages":2,"n_references":8,"next":{"headline":"Cross-site scripting vulnerability in TinyMCE","id":"CVE-2024-21908"},"packages":[{"ecosystem":"NuGet","fixed":["13.0.1"],"introduced":["0"],"last_affected":[],"package":"Newtonsoft.Json","purl":null,"source":"GHSA-5crp-9r3c-p9vr"},{"ecosystem":"NuGet","fixed":["13.0.1"],"introduced":["0"],"last_affected":[],"package":"Newtonsoft.Json","purl":"pkg:nuget/Newtonsoft.Json","source":"GHSA-5crp-9r3c-p9vr"}],"prev":{"headline":"QTS, QuTS hero","id":"CVE-2024-21906"},"products":["newtonsoft:json.net"],"published":"2024-01-03","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)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-07-14","vendors":["newtonsoft"]},"summary":"Remote attackers can cause a denial of service via stack overflow in Newtonsoft.Json by sending crafted data to the deserialization method.","url":"https://insights.sbomify.com/CVE-2024-21907/"}