State leakage in Scriban template context reset
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- —
- Confidentiality · integrity · availability
- Low · Low · High
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA.
Summary
Scriban before 7.6.0 contains a state isolation flaw because TemplateContext.Reset() does not clear the Tags dictionary that holds array.cycle and math.random state. An attacker who supplies templates to a reused context can observe or influence cycle positions and random sequences across renders. Repeated use can accumulate unbounded cycle entries and exhaust memory.
Written with Claude Haiku 5.5 from the sources below · 2026-11-27
Description from the CNA
Scriban before 7.6.0 contains a state isolation vulnerability because TemplateContext.Reset() does not clear the Tags dictionary holding array.cycle and math.random state. Attackers supplying templates to a reused context can observe or influence cycle positions and random sequences across renders, and accumulate unbounded cycle entries to exhaust memory.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
Remediation
Upgrade scriban to version 7.6.0.
Written with Claude Haiku 5.5 from the sources below · 2026-11-27
- 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-98938 Memory exhaustion in Scriban object.to_json enables denial of servicePriority HIGH 77
- TI-2026-98939 Resource exhaustion in Scriban lets template authors exhaust memoryPriority MEDIUM 45
Timeline
- 2026-11-26 Threatist record created from CVE-2026-137511
- 2026-11-27 Alias added: GHSA-6whr-9hg7-mc6x
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-98938 Memory exhaustion in Scriban object.to_json enables denial of service CVSS 4.0HIGH 8.7
- TI-2026-86800 Resource exhaustion in Scriban templates enables denial of service CVSS 4.0HIGH 8.7
Sources
- CVE-2026-137511 · CVE Program
- CVE-2026-137511 · NVD
- FIRST EPSS
- GHSA-6whr-9hg7-mc6x · 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