Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSubmit crafted Scriban template to rendering endpoint
-
DeliveryDefine ScriptObject with many large members
-
ExploitTrigger ScriptObject.ToString member concatenation
-
ExecutionAllocate multi-gigabyte string bypassing LimitToString
-
ImpactExhaust process memory causing OOM denial of service
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Resource consumption limits
MITRE ATT&CK
1 technique across 1 tactic: Impact The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires that the host application render Scriban templates authored or supplied by an untrusted party - the attacker must control template source and include a ScriptObject with many/large members that is then rendered (the PoC uses '{{ s = "a" * 1000000; o = {k0:s,...}; o }}'). The bypassed control is LimitToString, so the condition specifically affects hosts that accept untrusted template input and relied on that limit. LIMITING FACTORS: applications that render only trusted first-party templates are effectively not exposed; impact is availability-only (no data disclosure or modification); and setting OnStringLimit = Throw does NOT mitigate it because the oversized allocation occurs before the check. The only complete fix is upgrading Scriban or Scriban.Signed to 7.6.0 or later. |
| Impact | All signals converge on this being a genuine but availability-only (denial-of-service) issue rather than a code-execution emergency. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N) scores 8.7 on the strength of VA:H alone - confidentiality and integrity are N - so the high number reflects easy, unauthenticated reachability of a memory-exhaustion condition, not multi-dimensional impact. The vuln.today decision label is 'this_week' (not act_now/emergency), consistent with a DoS that is not under active exploitation. No KEV listing and no EPSS score were provided, and there is no indication of active exploitation, so this is not confirmed in-the-wild. The one caveat that tempers the PR:N/AV:N reading: the flaw is only reachable when the host application renders attacker-authored Scriban templates (the bypassed control, LimitToString, exists precisely to bound string output from untrusted template input) - deployments that render only trusted, first-party templates are not meaningfully exposed regardless of the network score. A public proof-of-concept is embedded in the GHSA advisory and demonstrably reaches ~2 GB working set, which raises practical risk where untrusted templates are accepted. |
| Exploit ScenarioDerived | An application that renders untrusted, user-supplied Scriban templates (e.g. a reporting or email-templating feature) receives a ~2 KB template that defines a ScriptObject with hundreds of members whose values are large strings. When the object is rendered, ScriptObject.ToString concatenates every member without cumulative length tracking, allocating a multi-gigabyte string before the LimitToString check runs, exhausting process memory and causing OOM/denial of service. A working proof-of-concept is published in the GHSA advisory and shows ~300 MB built internally and a ~2 GB peak working set. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 26, 2026
Memory exhaustion in Scriban before 7.6.0 lets anyone who can supply template source render a roughly 2 KB template that allocates multi-gigabyte strings, because ScriptObject string conversion bypasses the LimitToString budget. The flaw is unauthenticated and network-reachable where a host application renders untrusted templates (CVSS 4.0 score 8.7; independently assessed as CVSS 3.1 AV:N/AC:L/PR:N/UI:N with availability-only impact), and the vendor advisory includes a public proof-of-concept template; that PoC has not been verified as general working exploit code and there is no CISA KEV entry indicating active exploitation. Impact is availability-only - no disclosure or modification of data - and hosts that render exclusively trusted first-party templates are effectively not exposed.
RemediationAI
Vendor-released patch: upgrade Scriban and Scriban.Signed to 7.6.0 or later - this is the only complete fix. In 7.6.0, ScriptObject and enumerable string formatting share the remaining conversion budget with nested values, check the budget on each append, stop visiting members once exhausted, clip over-limit results before the compatibility ellipsis, and make OnStringLimit.Throw raise a ScriptRuntimeException while preserving the default truncation policy. Do not treat existing workarounds as sufficient: setting OnStringLimit = Throw does not mitigate the issue because the oversized allocation occurs before the check, and the pre-7.6.0 outer LimitToString fallback appends an ellipsis instead of truncating. Until upgrades are applied, scope exposure by restricting template authorship to trusted parties - hosts that only render first-party templates are effectively unaffected - and, where untrusted templates must be rendered, treat any object literal with many or large members as hostile input before it reaches rendering, since a few kilobytes of template text is enough to trigger the exhaustion; running rendering in a memory-capped worker process bounds the blast radius but does not remove the bypass. See the advisory at https://github.com/scriban/scriban/security/advisories/GHSA-jhv7-5x5p-vh8w for details and the fixed package metadata.
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 distributed as the NuGet packages Scriban and Scriban.Signed; the affected code classes are CWE-400 (uncontrolled resource consumption) and CWE-770 (allocation of resources without limits or throttling). The root cause is in string conversion of script objects: TemplateContext.ObjectToString (src/Scriban/TemplateContext.Helpers.cs:187-191) dispatches IFormattable values to ToString, and ScriptObject implements IFormattable (ScriptObject.cs:29) with a ToString (ScriptObject.cs:362-402) that concatenates every member without cumulative length tracking. The outer LimitToString check (TemplateContext.Helpers.cs:125-132) only runs after the allocation has already happened, and even then it appends a compatibility "..." ellipsis rather than truncating the oversized result. Because LimitToString is measured in UTF-16 characters while the builder works in bytes/characters internally, no enforcement occurs during building. The vendor's own PoC renders '{{ s = "a" * 1000000; o = {k0:s,...}; o }}' with 300 members on a default TemplateContext and observes a peak working set of about 2030 MB while output is truncated only to 1,048,579 characters, meaning hundreds of megabytes were materialized before any limit check fired. Setting OnStringLimit = Throw does not help because the oversized allocation precedes the throw. Version 7.6.0 reworks this so ScriptObject and enumerable string formatting share the remaining conversion budget with nested values, check on each append, stop visiting members once the budget is exhausted, and clip over-limit results before the ellipsis is appended.
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:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Supplying a template is not a system privilege (PR:N) and triggering needs no special conditions (AC:L); impact is availability-only (A:H), gated by the deployment exposing template rendering to untrusted authors.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
Scriban before 7.6.0 contains a resource exhaustion vulnerability that allows template authors to bypass LimitToString by rendering a ScriptObject with many members. Attackers can supply a small template whose ScriptObject.ToString concatenates large member values without length tracking, allocating multi-gigabyte strings and causing memory exhaustion.
Technical POC Analysis
Tracking note: the advisory page itself records severity High, base score 7.5, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H, and states "No CVE identifier is requested for this advisory." The…
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
Scriban, a templating library embedded in applications, contains a high-severity memory exhaustion flaw (CVE-2026-137509) that allows any party able to submit template content to crash or degrade any application that renders untrusted templates. The impact is availability-only: no data disclosure or modification is possible, but affected services could be taken offline, disrupting employees and customers who depend on them. Leadership should prioritize hosts that render user- or third-party-supplied templates; environments limited to internally authored templates face little real exposure.
No vendor-released patch identified at time of analysis. Interim mitigations: restrict template rendering to trusted first-party sources, enforce host-level memory and execution-time limits on rendering processes, cap accepted template size, and isolate template rendering in sandboxed or containerized workloads with resource quotas; upgrade to Scriban 7.6.0 once available.
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
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
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
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
Process-terminating stack overflow in Scriban's template parser affects all versions before 7.0.0, allowing any attacker
EUVD-2026-136568
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB