CVE-2026-137508
Scriban before 7.6.0 Memory Exhaustion DoS via object.to_json
8.7
Description
Scriban before 7.6.0 contains a memory exhaustion vulnerability in object.to_json that allows template authors to bypass the LimitToString string length limit by serializing into an unbounded MemoryStream. Attackers can repeatedly apply object.to_json to escape-heavy strings in a tiny template, amplifying output to multi-gigabyte heap allocations and causing denial of service.
Affected products and versions
| Product / package | Ecosystem / vendor | Versions | Fixed in | Source |
|---|---|---|---|---|
| scriban | scriban | 0 → <7.6.0 | 7.6.0 | CVE.org |