CVE-2026-137510: Scriban before 7.6.0 Memory Exhaustion via Unguarded String and HTML Builtins

Published Nov 26, 2026
·
Updated

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

2 affected components
nuget/scriban<7.6.0
nuget/Scriban.Signed<7.6.0

Event History

Nov 26, 2026
CVE Published
via MITRE·04:00 PM
Data Sourced
via MITRE·04:00 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·04:18 PM
DescriptionSeverityWeakness
Event
via NVD·04:18 PM

Frequently Asked Questions

1

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.

2

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.

3

Are default settings affected?

Yes. The issue can be triggered under the default TemplateContext because the affected builtins bypass the LimitToString string-length limit.

4

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203