Skip to main content

Scriban EUVDEUVD-2026-136799

| CVE-2026-137511 HIGH
Sensitive Information in Resource Not Removed Before Reuse (CWE-226)
2026-11-26 VulnCheck
7.2
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain template-submission access to reused context
  2. Delivery
    Submit template with array.cycle or math.random
  3. Exploit
    State persists in Tags across Reset()
  4. Execution
    Observe or continue prior render's cycle/random state
  5. Persist
    Flood distinct cycle groups to grow Tags
  6. Impact
    Exhaust 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.5% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

scriban 0 <7.6.0

Affected Packages

euvd scriban fix: 7.6.0

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

Vendor (VulnCheck) PRIMARY 7.2 HIGH
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
vuln.today AI 7.6 HIGH

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.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:H
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Nov 26, 2026 - 17:02 EUVD
CVE Published
Nov 26, 2026 - 16:00 cve.org
HIGH 7.2

DescriptionCVE.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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.5%
Top 62% exploitable
Prevalence
Medium
popular .NET templating NuGet library, but .NET-specific and reuse-pattern-gated footprint
Data Quality
4 sources
Confidence: Medium

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.5%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

37
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +36
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

CVE-2026-73061 CRITICAL
9.3 Aug 16

Arbitrary CLR property writes in Scriban (the .NET templating engine) before 7.2.2 allow template code to mutate live ho

CVE-2026-74790 CRITICAL
9.3 Aug 16

Sandbox escape in the Scriban .NET templating engine (all versions before 7.0.0) lets attacker-influenced templates read

CVE-2026-74791 CRITICAL
9.2 Aug 16

Information disclosure and authorization bypass in Scriban (the .NET text templating engine) before 7.0.0 lets attackers

CVE-2026-124438 CRITICAL
9.1 Nov 08

Scriban through 7.5.1 exposes the .NET objects behind imported function values, letting a template author read members s

CVE-2026-137508 HIGH
8.7 Nov 26

Memory exhaustion denial of service in the Scriban .NET templating engine through 7.5.3 (both the Scriban and Scriban.Si

CVE-2026-137509 HIGH
8.7 Nov 26

Memory exhaustion in Scriban before 7.6.0 lets anyone who can supply template source render a roughly 2 KB template that

CVE-2026-137512 HIGH
8.7 Nov 26

Unauthenticated, network-reachable denial of service in Scriban through 7.5.3 (including the Scriban.Signed distribution

CVE-2026-124439 HIGH
8.7 Nov 08

Uncontrolled recursion in the Scriban templating engine (NuGet packages Scriban and Scriban.Signed through 7.5.2) lets u

CVE-2026-124437 HIGH
8.7 Nov 08

Memory and CPU exhaustion in the Scriban .NET templating engine (NuGet packages Scriban and Scriban.Signed, versions up

CVE-2026-73060 HIGH
8.7 Aug 16

Scriban template engine versions 3.0.0 through 7.2.5 expose any application accepting untrusted templates to complete CP

CVE-2026-74789 HIGH
8.7 Aug 16

Uncontrolled resource consumption in Scriban's .NET templating engine allows any party who can submit template input to

CVE-2026-74795 HIGH
8.7 Aug 16

Remote denial of service in Scriban before 6.6.0 allows unauthenticated attackers to crash the entire .NET hosting proce

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy