Patch Ticker
EnglishEN
Elevated

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
8.7
Products
Disclosed together scriban

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)

Show 2 more