Memory exhaustion in Scriban object.to_json enables denial of service
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-770.
Summary
Scriban before 7.6.0 contains a memory exhaustion flaw in object.to_json. Because CWE-770 means no allocation limit is enforced, template authors can bypass the LimitToString string length limit by serializing into an unbounded MemoryStream. An attacker with the ability to author templates can repeatedly apply object.to_json to escape-heavy strings in a tiny template, producing multi-gigabyte heap allocations and a denial of service.
Written with Claude Haiku 5.5 from the sources below · 2026-11-30
Description from the CNA
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
Scriban users should upgrade to version 7.6.0, which fixes the issue.
Written with Claude Haiku 5.5 from the sources below · 2026-11-30
- Fix · CNA scriban (scriban) Fixed in 7.6.0
- Fix · CNA scriban (scriban) Fixed in 7.6.0
Fixed in the same release
Records fixed by the same vendor advisory or release, as the CNA lists them.
- Release ·
scriban 7.6.0
5 records Highest priority Priority HIGH 2 HIGH, 2 MEDIUM, 1 LOW
Other records, highest priority first
- TI-2026-98942 Resource exhaustion in Scriban lets attackers bypass LoopLimitPriority HIGH 77
- TI-2026-98939 Resource exhaustion in Scriban lets template authors exhaust memoryPriority MEDIUM 45
- TI-2026-98940 Memory exhaustion in Scriban via unguarded string and HTML builtinsPriority MEDIUM 40
Timeline
- 2026-11-26 Threatist record created from CVE-2026-137508
- 2026-11-27 Alias added: GHSA-g3jp-j3xh-3wgj
- 2026-11-30 CISA SSVC decision points changed
References
More scriban vulnerabilities
- TI-2026-52554 Scriban before 7.0.0 MemberFilter Bypass via TemplateContext Cache CVSS 4.0CRITICAL 9.3
- TI-2026-51270 Scriban before 7.2.2 Arbitrary Property Write via TypedObjectAccessor CVSS 4.0CRITICAL 9.3
- TI-2026-52555 Scriban before 7.0.0 Authorization Bypass via Stale Include Cache CVSS 4.0CRITICAL 9.2
- TI-2026-98942 Resource exhaustion in Scriban lets attackers bypass LoopLimit CVSS 4.0HIGH 8.7
- TI-2026-86800 Resource exhaustion in Scriban templates enables denial of service CVSS 4.0HIGH 8.7
- TI-2026-52558 Scriban before 6.6.0 Denial of Service via Infinite Recursion CVSS 4.0HIGH 8.7
Sources
- CVE-2026-137508 · CVE Program
- CVE-2026-137508 · NVD
- FIRST EPSS
- GHSA-g3jp-j3xh-3wgj · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences