{"answers":{"affected":"4 open source packages ship an affected version, including NCalc.Core and NCalcSync. It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-55254 in the wild and no public exploit code.","fix":"Upgrade NCalc.Core to 6.1.1 or later.","what":"CVE-2026-55254 is a medium-severity denial of service vulnerability in ncalc, published on 17 Jul 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-55254 and fix it if it is affected.\n\nWhat it is: CVE-2026-55254 is a medium-severity denial of service vulnerability in ncalc, published on 17 Jul 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2026-55254 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- NCalc.Core (NuGet): affected all versions; fixed in 6.1.1\n- NCalc.Core (NuGet): affected all versions; fixed in 6.1.1\n- NCalcSync (NuGet): affected all versions; fixed in 6.1.1\n- NCalcSync (NuGet): affected all versions; fixed in 6.1.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-2026-55254/ (Markdown: https://insights.sbomify.com/CVE-2026-55254/index.md)","id":"CVE-2026-55254","markdown":"https://insights.sbomify.com/CVE-2026-55254/index.md","name":"CVE-2026-55254","record":{"aliases":["GHSA-3w5p-95mh-gq75"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":".NET expression evaluator","requires_auth":"none","summary":"Attackers can cause denial of service in applications using NCalc by submitting crafted expressions that trigger excessive CPU consumption or infinite loops.","user_interaction":"required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"ncalc","vendor":"ncalc"}],"cvss":{"score":4.8,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:A/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:H","version":"3.1"},"cwes":[{"id":"CWE-770","name":"Allocation of Resources Without Limits or Throttling"},{"id":"CWE-190","name":"Integer Overflow or Wraparound"}],"description":"NCalc is a fast, lightweight expression evaluator for .NET. Prior to 6.1.1, the factorial operator implementation in src/NCalc.Core/Helpers/MathHelper.cs permits specially crafted expressions with extremely large factorial operands, causing excessive CPU consumption or a non-terminating loop due to integer overflow in the factorial calculation logic when applications evaluate untrusted expressions. This issue is fixed in version 6.1.1.","ecosystems":["NuGet"],"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":"NCalc: Denial of Service via Unbounded and Non-Terminating Factorial Evaluation","id":"CVE-2026-55254","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"NuGet","product":null,"products":[],"type":"denial_of_service","year":"2026"},"n_packages":4,"n_references":4,"next":{"headline":"Langflow Authorization Bypass Through User-Controlled Key","id":"CVE-2026-55255"},"packages":[{"ecosystem":"NuGet","fixed":["6.1.1"],"introduced":["0"],"last_affected":[],"package":"NCalc.Core","purl":null,"source":"GHSA-3w5p-95mh-gq75"},{"ecosystem":"NuGet","fixed":["6.1.1"],"introduced":["0"],"last_affected":[],"package":"NCalc.Core","purl":"pkg:nuget/NCalc.Core","source":"GHSA-3w5p-95mh-gq75"},{"ecosystem":"NuGet","fixed":["6.1.1"],"introduced":["0"],"last_affected":[],"package":"NCalcSync","purl":null,"source":"GHSA-3w5p-95mh-gq75"},{"ecosystem":"NuGet","fixed":["6.1.1"],"introduced":["0"],"last_affected":[],"package":"NCalcSync","purl":"pkg:nuget/NCalcSync","source":"GHSA-3w5p-95mh-gq75"}],"prev":{"headline":"LangChain MongoDB: NoSQL Operator Injection in MongoDBSaver.list() leading to cross-tenant data exposure","id":"CVE-2026-55253"},"products":["ncalc"],"published":"2026-07-17","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":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-07-20","vendors":["ncalc"]},"summary":"Attackers can cause denial of service in applications using NCalc by submitting crafted expressions that trigger excessive CPU consumption or infinite loops.","url":"https://insights.sbomify.com/CVE-2026-55254/"}