{"answers":{"affected":"4 open source packages ship an affected version, including Scriban and Scriban.Signed.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-74786 exists.","fix":"Upgrade Scriban to 7.0.0 or later.","what":"CVE-2026-74786 is a high-severity denial of service vulnerability in scriban, published on 16 Aug 2026. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-74786 and fix it if it is affected.\n\nWhat it is: CVE-2026-74786 is a high-severity denial of service vulnerability in scriban, published on 16 Aug 2026. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-74786 exists.\n\nAffected packages and fixed versions:\n- Scriban (NuGet): affected all versions; fixed in 7.0.0\n- Scriban (NuGet): affected all versions; fixed in 7.0.0\n- Scriban.Signed (NuGet): affected all versions; fixed in 7.0.0\n- Scriban.Signed (NuGet): affected all versions; fixed in 7.0.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-74786/ (Markdown: https://insights.sbomify.com/CVE-2026-74786/index.md)","id":"CVE-2026-74786","markdown":"https://insights.sbomify.com/CVE-2026-74786/index.md","name":"CVE-2026-74786","record":{"aliases":["GHSA-m2p3-hwv5-xpqw","GHSA-w7vg-5328-m33q"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Scriban template library","requires_auth":"low_privilege","summary":"An attacker can cause a denial of service by supplying a malicious template that bypasses output limits, leading to memory exhaustion and application crashes.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"VulnCheck","cpe":[],"cvss":{"score":7.1,"severity":"high","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-770","name":"Allocation of Resources Without Limits or Throttling"}],"description":"Scriban before 7.0.0 (affected versions \u003c= 6.6.0) contains a denial-of-service vulnerability in which the LimitToString safety limit (default 1MB) can be bypassed because ObjectToString resets the per-call length counter (_currentToStringLength) on every top-level call and StringBuilderOutput enforces no cumulative output-size limit. An attacker who can supply a template can render a near-limit string repeatedly in a loop, allocating approximately 1GB of memory and causing an out-of-memory condition that crashes the host application.","ecosystems":["NuGet"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":false,"headline":"Scriban before 7.0.0 Denial of Service via Unbounded Template Output","id":"CVE-2026-74786","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"NuGet","product":null,"products":[],"type":"denial_of_service","year":"2026"},"n_packages":4,"n_references":2,"next":{"headline":"Scriban before 7.0.0 Uncontrolled Recursion via object.to_json","id":"CVE-2026-74787"},"packages":[{"ecosystem":"NuGet","fixed":["7.0.0"],"introduced":["0"],"last_affected":[],"package":"Scriban","purl":null,"source":"GHSA-m2p3-hwv5-xpqw"},{"ecosystem":"NuGet","fixed":["7.0.0"],"introduced":["0"],"last_affected":[],"package":"Scriban","purl":"pkg:nuget/Scriban","source":"GHSA-m2p3-hwv5-xpqw"},{"ecosystem":"NuGet","fixed":["7.0.0"],"introduced":["0"],"last_affected":[],"package":"Scriban.Signed","purl":null,"source":"GHSA-m2p3-hwv5-xpqw"},{"ecosystem":"NuGet","fixed":["7.0.0"],"introduced":["0"],"last_affected":[],"package":"Scriban.Signed","purl":"pkg:nuget/Scriban.Signed","source":"GHSA-m2p3-hwv5-xpqw"}],"prev":{"headline":"Scriban before 7.0.0 Denial of Service via Unbounded Resource Consumption","id":"CVE-2026-74785"},"products":["scriban"],"published":"2026-08-16","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":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-08-17","vendors":["scriban"]},"summary":"An attacker can cause a denial of service by supplying a malicious template that bypasses output limits, leading to memory exhaustion and application crashes.","url":"https://insights.sbomify.com/CVE-2026-74786/"}