Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain template-submission access to reused context
-
DeliverySubmit template with array.cycle or math.random
-
ExploitState persists in Tags across Reset()
-
ExecutionObserve or continue prior render's cycle/random state
-
PersistFlood distinct cycle groups to grow Tags
-
ImpactExhaust process memory and deny rendering service
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V14 - Data Protection Sensitive info in resource not removed before reuse
|
| Exploitation Conditions | Three concrete conditions must all hold: (1) the host application reuses a single Scriban TemplateContext across more than one render and calls TemplateContext.Reset() between renders (the documented reuse pattern Reset() exists to support) - a fresh-context-per-render application is NOT affected; (2) the rendered templates invoke the built-in functions array.cycle (per-cycle-group position counter) or math.random (stored System.Random instance), the specific state written into the uncleared Tags dictionary; and (3) the attacker can supply template content to that reused context (a privileged capability, reflected as PR:L). Limiting factors: exploitation is impossible against the non-reusing (new-context-per-render) deployment mode; the confidentiality impact is bounded to cycle-position/random-sequence predictability (System.Random is non-cryptographic, so no direct secret disclosure); and the most damaging effect, memory exhaustion via unbounded cycle-group accumulation, requires sustained attacker template submission to the long-lived reused context. |
| Impact | The input CVSS 4.0 base score is 7.2 (High), driven mainly by VA:H (availability) with only VC:L/VI:L; the vector is AV:N/AC:L/AT:N/PR:L/UI:N, so exploitation is network-reachable, low-complexity, requires no user interaction, but needs low privileges (PR:L) - the ability to submit template content to a reused context, which the advisory characterizes as 'privileged-but-common' in multi-tenant/user-template scenarios. No KEV listing is present and no EPSS score was provided in the input, so widespread-exploitation probability cannot be quantified; treat exploitation likelihood as unknown rather than low. The vuln.today decision label is 'this_week' (not act_now/emergency), consistent with a real-but-not-critical priority. A key qualifier: this is NOT a remote-unauthenticated-against-default-config issue - it only manifests when an application reuses one TemplateContext across renders via Reset() AND renders array.cycle or math.random AND lets an attacker supply template content, so real-world risk is gated by that specific deployment pattern. The confidentiality angle is weak by the advisory's own statement (System.Random is non-cryptographic; this is a predictability/isolation defect, not secret disclosure), so the genuinely serious signal is the unbounded Tags growth enabling memory-exhaustion denial of service (VA:H). Net: a legitimately exploitable High-severity issue for affected deployment patterns, but not a drop-everything emergency given PR:L, the non-default reuse prerequisite, and absence of KEV/EPSS evidence. |
| Exploit ScenarioDerived | A multi-tenant service that reuses a single pooled Scriban TemplateContext and calls Reset() between tenant renders accepts attacker-supplied templates. The attacker submits templates using array.cycle (and/or math.random) to observe and continue cycle/random state left by a prior tenant's render, breaking per-render isolation; by repeatedly submitting templates with many distinct cycle-group strings, the attacker accumulates unbounded Tags entries that Reset() never reclaims, progressively exhausting process memory until the rendering service is denied. The advisory includes a demonstrated proof-of-concept showing the cycle counter surviving Reset() (first=one, second=two), though it demonstrates state leakage rather than a weaponized exploit. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 26, 2026
Scriban's template engine through 7.5.3 leaks render state between runs because TemplateContext.Reset() never clears the Tags dictionary, so array.cycle position counters and the stored math.random System.Random instance survive into subsequent renders on a pooled context. The result is cross-render predictability and a monotonic, never-reclaimed accumulation of attacker-keyed cycle-group entries that can eventually exhaust the hosting process; the assessed vector (CVSS:3.1/AV:N/AC:L/PR:L/UI:N, C:L/I:L/A:H) reflects network reachability and low complexity but a privileged requirement, since the attacker must be able to submit template content to a reused context. Only applications that pool a TemplateContext and call Reset() between renders are exposed - a fresh-context-per-render deployment is not affected - and a public proof-of-concept reproduction is included in the upstream advisory but is not verified as working exploit code; there is no KEV listing or indication of active exploitation. Fixed in 7.6.0 of both the Scriban and Scriban.Signed packages.
RemediationAI
Vendor-released patch: upgrade Scriban and Scriban.Signed to 7.6.0 or later. Per the upstream remediation notes, 7.6.0 makes TemplateContext.Reset() discard built-in cycle positions and the random generator without clearing host-owned Tags, which both restores per-render isolation of array.cycle and math.random and reclaims attacker-controlled cycle-group strings so the unbounded memory growth stops; see https://github.com/scriban/scriban/security/advisories/GHSA-vhvh-mqjm-8vpg and https://github.com/scriban/scriban/security/advisories/GHSA-8637-5q5q-hxvw. If an upgrade cannot be shipped immediately, the applicable compensating control stated by the vendor is to stop reusing contexts: construct a fresh TemplateContext for each independent render instead of pooling one and calling Reset(), at the cost of per-render allocation and the performance benefit the pooling pattern was introduced to provide. Deployments that already allocate a new context per render are not exposed and need no workaround. Note that System.Random remains a non-cryptographic generator even after the fix, so template random output should not be relied on for secrets; applications rendering untrusted templates should also cap total cycle-group diversity per context to bound memory if reuse cannot be eliminated.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Scriban is a .NET text-templating engine shipped as the NuGet packages Scriban and Scriban.Signed (same source, equally affected). The defect class is CWE-226 (Sensitive Information in Resource Not Removed Before Reuse): TemplateContext is documented as reusable on a thread after Reset(), and Reset() at src/Scriban/TemplateContext.cs:1026 clears the output, global, culture and source-file stacks, CachedTemplates, the member accessors and output-limit tracking - but never touches Tags. The Tags dictionary is instantiated exactly once in the constructor (TemplateContext.cs:205) with a getter-only property whose contents stay mutable, and no code path in src/Scriban/ calls Tags.Clear, Tags.Remove or reassigns it. Two built-in functions write render-specific state there: array.cycle keeps a per-group position counter under a CycleKey whose equality is only the group string (ArrayFunctions.cs:195-209, :1220-1224), so identical cycle expressions in different renders collide deterministically; math.random stores a System.Random instance under the constant key "random" (MathFunctions.cs:28, :384-391). Because Tags is never reclaimed, each distinct attacker-authored cycle group permanently adds an entry to a long-lived context. System.Random is a non-cryptographic PRNG, so the confidentiality exposure is limited to state predictability and output correctness across renders rather than recovery of secrets or code execution; the trigger conditions are exactly as described above and the vulnerable construct has been present since at least tag 7.0.1.
Know when Scriban gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N
Attacker must hold privileged template-submission access to the reused context (PR:L) over the network (AV:N, AC:L); impact is low state-leakage (C:L) and state-influence (I:L) with high availability loss (A:H) from unbounded Tags memory exhaustion.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
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.
Technical POC Analysis
Source note: two upstream advisories are supplied (GHSA-vhvh-mqjm-8vpg and GHSA-8637-5q5q-hxvw), both of which state "No CVE identifier is requested." The CVE-2026-137511 identifier and CVSS 7.2 scor…
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
CVE-2026-137511 is a high-severity vulnerability in Scriban's template engine (through version 7.5.3) that can lead to resource exhaustion and cross-render state leakage in applications that pool TemplateContext objects. Organizations using Scriban in this pattern face potential denial-of-service and integrity risks, affecting service availability and data predictability for end users. Leadership should prioritize remediation because a public proof-of-concept (not verified as working exploit code) exists, though no active exploitation has been reported.
No vendor-released patch identified at time of analysis. Interim mitigations: avoid pooling TemplateContext and instead create a fresh context per render; if pooling is required, subclass TemplateContext to override Reset() and explicitly clear the Tags dictionary; monitor for memory exhaustion and anomalous cycle-group accumulation; restrict template submission to trusted users.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Arbitrary CLR property writes in Scriban (the .NET templating engine) before 7.2.2 allow template code to mutate live ho
Sandbox escape in the Scriban .NET templating engine (all versions before 7.0.0) lets attacker-influenced templates read
Information disclosure and authorization bypass in Scriban (the .NET text templating engine) before 7.0.0 lets attackers
Scriban through 7.5.1 exposes the .NET objects behind imported function values, letting a template author read members s
Memory exhaustion denial of service in the Scriban .NET templating engine through 7.5.3 (both the Scriban and Scriban.Si
Memory exhaustion in Scriban before 7.6.0 lets anyone who can supply template source render a roughly 2 KB template that
Unauthenticated, network-reachable denial of service in Scriban through 7.5.3 (including the Scriban.Signed distribution
Uncontrolled recursion in the Scriban templating engine (NuGet packages Scriban and Scriban.Signed through 7.5.2) lets u
Memory and CPU exhaustion in the Scriban .NET templating engine (NuGet packages Scriban and Scriban.Signed, versions up
Scriban template engine versions 3.0.0 through 7.2.5 expose any application accepting untrusted templates to complete CP
Uncontrolled resource consumption in Scriban's .NET templating engine allows any party who can submit template input to
Remote denial of service in Scriban before 6.6.0 allows unauthenticated attackers to crash the entire .NET hosting proce
EUVD-2026-136799
NVD
CVE.org
EPSS
GitHub
Exploit-DB