CVE-2026-137510: Scriban before 7.6.0 Memory Exhaustion via Unguarded String and HTML Builtins
Scriban and Scriban.Signed before 7.6.0 allow template authors to bypass the LimitToString string length limit because the string.literal, string.base64encode, html.escape, html.newlinetobr, html.urlencode, and html.urlescape builtins lack allocation guards. An attacker who can supply a small template can repeatedly call these builtins under the default TemplateContext to force multi-gigabyte allocations and exhaust host memory.
Affected Software
Event History
Frequently Asked Questions
Who is exposed to this issue?
Applications using Scriban or Scriban.Signed before 7.6.0 are exposed if an attacker can supply or control a template processed with the default TemplateContext.
What does an attacker need to trigger the memory exhaustion?
The attacker needs only the ability to provide a small template. They can repeatedly invoke the affected string and HTML builtins to cause multi-gigabyte memory allocations.
Are default settings affected?
Yes. The issue can be triggered under the default TemplateContext because the affected builtins bypass the LimitToString string-length limit.
What can be done if upgrading is not immediately possible?
Do not process attacker-controlled templates, or restrict template authors from using string.literal, string.base64_encode, html.escape, html.newline_to_br, html.url_encode, and html.url_escape. This reduces the ability to trigger the unguarded allocations.