Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify endpoint rendering untrusted template/JSON
-
DeliveryCraft flat JSON array of ~500k tiny elements
-
ExploitSubmit via object.from_json expression
-
ExecutionDeserialization loop runs without LoopLimit
-
PersistExhaust CPU and managed heap
-
ImpactRepeat to degrade shared service
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Resource allocation limits
MITRE ATT&CK
1 technique across 1 tactic: Impact The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires the host application to render attacker-influenced Scriban template content, or to pass an attacker-controlled JSON string to the object.from_json builtin (a default builtin available to every template). The application must be relying on LoopLimit to bound per-request work; that control is silently bypassed on the from_json path because JsonElementExtensions.CopyToScriptArray/CopyToScriptObject iterate without StepLoop/EnterLoopScope/CheckAbort. The practical payload is a flat JSON array or object with hundreds of thousands of elements, feasible within the default 1 MB string budget (~500,000 two-byte elements). LIMITING FACTORS: exploitation is impossible if untrusted input never reaches template evaluation or from_json; JsonDocument.Parse MaxDepth of 64 limits nesting (but not element count), and LimitToString (1 MB) bounds string size but still permits ~500,000 elements. Impact is denial of service only - no confidentiality or integrity effect. |
| Impact | The input CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N/VA:H, score 8.7) describes a network-reachable, low-complexity, unauthenticated availability-only impact with no confidentiality or integrity effect - consistent with CWE-770 uncontrolled resource consumption. This is not in CISA KEV (no KEV signal provided), so there is no confirmed active exploitation; EPSS is not provided, so exploitation probability cannot be quantified from the input. The GHSA advisory includes a complete, self-contained proof-of-concept demonstrating the LoopLimit bypass, which raises practical risk above a theoretical DoS. The vuln.today decision label is 'this_week' (not act_now/emergency), aligning with a serious but non-emergency, availability-only issue. The key caveat tempering the headline score: PR:N/UI:N assumes a host application that renders attacker-influenced templates or passes attacker-controlled JSON to object.from_json - the advisory itself frames the threat model as multi-tenant template-as-a-service, CMS, and email rendering. For deployments that never expose from_json or template content to untrusted input, real-world risk is low despite the high CVSS. Treat as a genuine priority specifically for services that evaluate untrusted Scriban templates or JSON. |
| Exploit ScenarioDerived | A multi-tenant service (template-as-a-service, CMS, or email renderer) evaluates Scriban templates or JSON arguments influenced by untrusted users and relies on LoopLimit to cap per-request work. An attacker submits a single expression such as '{{ payload | object.from_json }}' where payload is a flat JSON array of ~500,000 one-byte elements under the 1 MB string budget; the deserialization loop materializes every element without any LoopLimit check, consuming large CPU and heap per request. The GHSA advisory supplies full working PoC code (LoopLimit=1 is bypassed and 500,000 elements are materialized), so repeated requests can degrade or exhaust a shared server. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 26, 2026
Unauthenticated, network-reachable denial of service in Scriban through 7.5.3 (including the Scriban.Signed distribution): the object.from_json builtin deserializes attacker-supplied JSON without participating in the LoopLimit iteration budget, so a single expression can force hundreds of thousands of iterations and allocations even when LoopLimit is configured to 1. Any host that renders attacker-influenced template content or passes attacker-controlled JSON to from_json - the documented template-as-a-service, CMS and email-rendering threat model - can be driven to CPU and managed-heap exhaustion under repeated requests; the payload fits inside the default 1 MB LimitToString budget (roughly 500,000 two-byte elements). Availability-only impact (no confidentiality or integrity effect); the vendor advisory includes a working proof-of-concept template demonstrating LoopLimit=1 being bypassed to materialize 500,000 elements, so publicly available exploit code exists. Active exploitation in the wild is not confirmed (no CISA KEV listing), and a fix is released in 7.6.0.
RemediationAI
Vendor-released patch: upgrade either distribution, Scriban or Scriban.Signed, to 7.6.0 or later (vulnerable: <= 7.5.3; fixed in: 7.6.0 per the NuGet package metadata). In 7.6.0 object.from_json threads the active context through recursive JSON conversion, so every array element and object property is charged against the same nested LoopLimit budget and cancellation is checked before parsing and during conversion; contextless host import APIs keep their previous behavior. Per the advisory, callers accepting untrusted input can, as an interim mitigation only, validate and cap the size or element count of the JSON string passed to object.from_json before rendering - the vendor notes this does not substitute for enforcing the limit inside the engine, and updating is the complete fix. Because the default 1 MB LimitToString budget still admits roughly 500,000 elements, and JsonDocument.Parse's MaxDepth of 64 restricts nesting depth but not element count, size caps must be set far below 1 MB to blunt the attack. Exploitation is impossible where untrusted content never reaches template evaluation or the from_json builtin.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Scriban is a .NET (NuGet) templating engine; the flaw is CWE-770 (allocation of resources without limits or throttling) in the JSON-to-template-object bridge. LoopLimit enforcement in Scriban is opt-in: each iteration site must open a scope with TemplateContext.EnterLoopScope() and call TemplateContext.StepLoop() (with CheckAbort for cancellation). ObjectFunctions.FromJson (src/Scriban/Functions/ObjectFunctions.cs:545) is declared with a TemplateContext parameter but discards it, parsing the string via JsonDocument.Parse and calling doc.RootElement.Clone().ToScriban() (line 551). The extension method JsonElement.ToScriban() (src/Scriban/Runtime/JsonElementExtensions.cs:16) has no TemplateContext parameter, so CopyToScriptArray (lines 39-45) and CopyToScriptObject (lines 30-36) walk every element and property in a plain foreach with no StepLoop, EnterLoopScope or CheckAbort and structurally cannot consult the loop budget. The asymmetry is visible in the reverse direction: object.to_json serialization in the same file does open a loop scope and step it (ObjectFunctions.cs:590,648,660), and generic array builders (ObjectFunctions.ToScriptArray, 494-507) follow the same pattern - indicating an oversight rather than intended behavior, and one untouched by the earlier LoopLimit hardening commit d17bd4b which modified ArrayFunctions.cs, ObjectFunctions.cs, ListAccessor.cs, ScriptArray.cs, ScriptRange.cs and TemplateContext.cs but not JsonElementExtensions.cs. JsonDocument.Parse's default MaxDepth of 64 constrains nesting depth only, not element count, and LimitToString (default 1 MB) bounds string size yet still permits roughly 500,000 entries; nested structures reached recursively through ToScriban() are likewise unguarded. The fix in 7.6.0 threads the active context through the recursive conversion so every element and property draws from the same nested budget and cancellation is checked before parsing and during conversion, while contextless host import APIs retain prior behavior.
Know when Scriban gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Network-reachable via untrusted template/JSON with a single low-complexity expression, no auth or interaction in the stated threat model; availability-only impact so C:N/I:N/A:H, scope unchanged.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
Scriban before 7.6.0 contains a resource exhaustion vulnerability that allows attackers to bypass LoopLimit by supplying large JSON input to object.from_json. Attackers can pass a flat JSON array or object with hundreds of thousands of elements, which JsonElementExtensions materializes without loop checks, exhausting CPU and memory.
Technical POC Analysis
CWE-770 (Allocation of Resources Without Limits or Throttling).
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
Scriban template engine versions through 7.5.3 contain an unauthenticated denial-of-service vulnerability that allows attackers to exhaust server resources via malicious JSON input. Any application rendering user-supplied templates, such as CMS platforms or email generators, is at risk, potentially causing service outages and disrupting business operations.
No vendor-released patch identified at time of analysis. Disable the from_json builtin in Scriban configurations, enforce strict validation of JSON inputs before template rendering, and restrict template execution to trusted sources. Monitor for abnormal CPU and memory usage patterns indicative of resource exhaustion attacks.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
Arbitrary CLR property writes in Scriban (the .NET templating engine) before 7.2.2 allow template code to mutate live ho
Sandbox escape in the Scriban .NET templating engine (all versions before 7.0.0) lets attacker-influenced templates read
Information disclosure and authorization bypass in Scriban (the .NET text templating engine) before 7.0.0 lets attackers
Scriban through 7.5.1 exposes the .NET objects behind imported function values, letting a template author read members s
Memory exhaustion denial of service in the Scriban .NET templating engine through 7.5.3 (both the Scriban and Scriban.Si
Memory exhaustion in Scriban before 7.6.0 lets anyone who can supply template source render a roughly 2 KB template that
Uncontrolled recursion in the Scriban templating engine (NuGet packages Scriban and Scriban.Signed through 7.5.2) lets u
Memory and CPU exhaustion in the Scriban .NET templating engine (NuGet packages Scriban and Scriban.Signed, versions up
Scriban template engine versions 3.0.0 through 7.2.5 expose any application accepting untrusted templates to complete CP
Uncontrolled resource consumption in Scriban's .NET templating engine allows any party who can submit template input to
Remote denial of service in Scriban before 6.6.0 allows unauthenticated attackers to crash the entire .NET hosting proce
Process-terminating stack overflow in Scriban's template parser affects all versions before 7.0.0, allowing any attacker
EUVD-2026-136798
NVD
CVE.org
EPSS
GitHub
Exploit-DB