CVE-2026-137508

Scriban before 7.6.0 Memory Exhaustion DoS via object.to_json

High published · updated

8.7
CVSS score out of 10 · NVD (vulncheck.com)

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 / packageEcosystem / vendorVersionsFixed inSource
scriban scriban 0 → <7.6.07.6.0 CVE.org

References