high8.7
CVE-2026-137510
Scriban and Scriban.Signed before 7.6.0 allow template authors to bypass the LimitToString string length limit because the string.literal, string.base64_encode…
Impact
Scriban and Scriban.Signed before 7.6.0 allow template authors to bypass the LimitToString string length limit because the string.literal, string.base64_encode, html.escape, html.newline_to_br, html.url_encode, and html.url_escape 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.
An attacker can exploit this over the network, without logging in, without any action by a user. If it succeeds: high risk of outages.
Affected products (Scriban)
| Product | Affected versions |
|---|---|
| Scriban | before 7.6.0 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/scriban/scriban/security/advisories/GHSA-28wr-xhqr-9mf4
- https://github.com/scriban/scriban/security/advisories/GHSA-wmmr-qjc6-rp53
- https://www.vulncheck.com/advisories/scriban-before-7.6.0-memory-exhaustion-via-unguarded-string-and-html-builtins
- https://github.com/advisories/GHSA-5cfh-jv7m-w7qx
- https://nvd.nist.gov/vuln/detail/CVE-2026-137510