Scriban LoopLimit bypass in object.from_json exhausts resources
CVE-2026-137512 and 4 more
Programs that build pages from templates can be stalled.
- CVE
- CVE-2026-137512 and 4 more
- Score
- CVSS 8.7 · CVE-2026-137512
- Public date
- 2026-11-07
- First seen
Mitigation
Update to Scriban 7.6.0 or later. Until then, cap the size of JSON passed to object.from_json, do not render untrusted templates, and remove string.literal from the builtins exposed to them.
Summary
In the Scriban template engine, object.from_json converts JSON without the LoopLimit check, so an attacker can exhaust CPU and memory. Versions before 7.6.0 are affected. The same release also fixes memory exhaustion in string and HTML builtins, a bypass in object string conversion, and state left over in reused contexts.
Exploit code is public
Affected when
- Apps that render templates with Scriban
- CVE-2026-137512 untrusted template or JSON argument passed to object.from_json
- CVE-2026-137510 untrusted template calls string.literal, html.escape and other builtins
- CVE-2026-137509 rendering a ScriptObject with many members as a string
- CVE-2026-137508 untrusted template calls object.to_json
- CVE-2026-137511 TemplateContext reused and Reset() called
3 other Incidents of this product in the last 30 days
Incidents by product: scriban
Other recent Incidents of scriban
5 CVEs (every link below opens in a new tab)
Read the advisory · github.com (opens in a new tab)
Each of the 5 CVEs (every link below opens in a new tab)
- CVE-2026-137512Lets JSON input bypass the loop limit and exhaust CPU and memory. CVSS 8.7 CVE-2026-137512 advisory · CVE-2026-137512 write-up
- CVE-2026-137510Lets string and HTML builtins allocate gigabytes and exhaust memory. CVSS 8.7 CVE-2026-137510 advisory 1 · CVE-2026-137510 advisory 2 · CVE-2026-137510 write-up
- CVE-2026-137509Lets object string conversion exceed length limits and exhaust memory. CVSS 8.7 CVE-2026-137509 advisory · CVE-2026-137509 write-up
Show 2 more
- CVE-2026-137508Lets object.to_json inflate output and exhaust memory. CVSS 8.7 CVE-2026-137508 advisory · CVE-2026-137508 write-up
- CVE-2026-137511Leaves earlier render state in reused contexts, so memory keeps growing. CVSS 7.6 CVE-2026-137511 advisory 1 · CVE-2026-137511 advisory 2 · CVE-2026-137511 write-up