CVE-2026-137512: Scriban before 7.6.0 LoopLimit Bypass via object.from_json Resource Exhaustion
Scriban before 7.6.0 contains a resource exhaustion vulnerability that allows attackers to bypass LoopLimit by supplying large JSON input to object.fromjson. 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.
Affected Software
Event History
Frequently Asked Questions
Which deployments are exposed to this issue?
Deployments using Scriban versions before 7.6.0 are affected if untrusted input can be supplied to object.from_json. The vulnerable input can be a flat JSON array or object containing hundreds of thousands of elements.
What does an attacker need to exploit it?
An attacker needs the ability to provide large JSON data that is processed by object.from_json. No authentication or user interaction is required according to the supplied severity vector.
What is the practical impact of successful exploitation?
The oversized JSON structure is materialized without LoopLimit checks, which can exhaust CPU and memory. This can cause a denial of service; no confidentiality or integrity impact is indicated.
How can I determine whether an application may be affected?
Check whether the application uses a Scriban release before 7.6.0 and invokes object.from_json on attacker-controlled or otherwise unbounded JSON input. LoopLimit alone does not prevent this condition for the affected JSON parsing path.