Skip to main content

Scriban CVE-2026-137512

| EUVDEUVD-2026-136798 HIGH
Allocation of Resources Without Limits or Throttling (CWE-770)
2026-11-26 VulnCheck
8.7
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Identify endpoint rendering untrusted template/JSON
  2. Delivery
    Craft flat JSON array of ~500k tiny elements
  3. Exploit
    Submit via object.from_json expression
  4. Execution
    Deserialization loop runs without LoopLimit
  5. Persist
    Exhaust CPU and managed heap
  6. Impact
    Repeat to degrade shared service

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Resource allocation 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

Requires the host application to render attacker-influenced Scriban template content, or to pass an attacker-controlled JSON string to the object.from_json builtin (a default builtin available to every template). The application must be relying on LoopLimit to bound per-request work; that control is silently bypassed on the from_json path because JsonElementExtensions.CopyToScriptArray/CopyToScriptObject iterate without StepLoop/EnterLoopScope/CheckAbort. The practical payload is a flat JSON array or object with hundreds of thousands of elements, feasible within the default 1 MB string budget (~500,000 two-byte elements). LIMITING FACTORS: exploitation is impossible if untrusted input never reaches template evaluation or from_json; JsonDocument.Parse MaxDepth of 64 limits nesting (but not element count), and LimitToString (1 MB) bounds string size but still permits ~500,000 elements. Impact is denial of service only - no confidentiality or integrity effect.

Impact

The input CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N/VA:H, score 8.7) describes a network-reachable, low-complexity, unauthenticated availability-only impact with no confidentiality or integrity effect - consistent with CWE-770 uncontrolled resource consumption. This is not in CISA KEV (no KEV signal provided), so there is no confirmed active exploitation; EPSS is not provided, so exploitation probability cannot be quantified from the input. The GHSA advisory includes a complete, self-contained proof-of-concept demonstrating the LoopLimit bypass, which raises practical risk above a theoretical DoS. The vuln.today decision label is 'this_week' (not act_now/emergency), aligning with a serious but non-emergency, availability-only issue. The key caveat tempering the headline score: PR:N/UI:N assumes a host application that renders attacker-influenced templates or passes attacker-controlled JSON to object.from_json - the advisory itself frames the threat model as multi-tenant template-as-a-service, CMS, and email rendering. For deployments that never expose from_json or template content to untrusted input, real-world risk is low despite the high CVSS. Treat as a genuine priority specifically for services that evaluate untrusted Scriban templates or JSON.

Exploit ScenarioDerived

A multi-tenant service (template-as-a-service, CMS, or email renderer) evaluates Scriban templates or JSON arguments influenced by untrusted users and relies on LoopLimit to cap per-request work. An attacker submits a single expression such as '{{ payload | object.from_json }}' where payload is a flat JSON array of ~500,000 one-byte elements under the 1 MB string budget; the deserialization loop materializes every element without any LoopLimit check, consuming large CPU and heap per request. The GHSA advisory supplies full working PoC code (LoopLimit=1 is bypassed and 500,000 elements are materialized), so repeated requests can degrade or exhaust a shared server.

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

Unauthenticated, network-reachable denial of service in Scriban through 7.5.3 (including the Scriban.Signed distribution): the object.from_json builtin deserializes attacker-supplied JSON without participating in the LoopLimit iteration budget, so a single expression can force hundreds of thousands of iterations and allocations even when LoopLimit is configured to 1. Any host that renders attacker-influenced template content or passes attacker-controlled JSON to from_json - the documented template-as-a-service, CMS and email-rendering threat model - can be driven to CPU and managed-heap exhaustion under repeated requests; the payload fits inside the default 1 MB LimitToString budget (roughly 500,000 two-byte elements). Availability-only impact (no confidentiality or integrity effect); the vendor advisory includes a working proof-of-concept template demonstrating LoopLimit=1 being bypassed to materialize 500,000 elements, so publicly available exploit code exists. Active exploitation in the wild is not confirmed (no CISA KEV listing), and a fix is released in 7.6.0.

RemediationAI

Vendor-released patch: upgrade either distribution, Scriban or Scriban.Signed, to 7.6.0 or later (vulnerable: <= 7.5.3; fixed in: 7.6.0 per the NuGet package metadata). In 7.6.0 object.from_json threads the active context through recursive JSON conversion, so every array element and object property is charged against the same nested LoopLimit budget and cancellation is checked before parsing and during conversion; contextless host import APIs keep their previous behavior. Per the advisory, callers accepting untrusted input can, as an interim mitigation only, validate and cap the size or element count of the JSON string passed to object.from_json before rendering - the vendor notes this does not substitute for enforcing the limit inside the engine, and updating is the complete fix. Because the default 1 MB LimitToString budget still admits roughly 500,000 elements, and JsonDocument.Parse's MaxDepth of 64 restricts nesting depth but not element count, size caps must be set far below 1 MB to blunt the attack. Exploitation is impossible where untrusted content never reaches template evaluation or the from_json builtin.

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 (NuGet) templating engine; the flaw is CWE-770 (allocation of resources without limits or throttling) in the JSON-to-template-object bridge. LoopLimit enforcement in Scriban is opt-in: each iteration site must open a scope with TemplateContext.EnterLoopScope() and call TemplateContext.StepLoop() (with CheckAbort for cancellation). ObjectFunctions.FromJson (src/Scriban/Functions/ObjectFunctions.cs:545) is declared with a TemplateContext parameter but discards it, parsing the string via JsonDocument.Parse and calling doc.RootElement.Clone().ToScriban() (line 551). The extension method JsonElement.ToScriban() (src/Scriban/Runtime/JsonElementExtensions.cs:16) has no TemplateContext parameter, so CopyToScriptArray (lines 39-45) and CopyToScriptObject (lines 30-36) walk every element and property in a plain foreach with no StepLoop, EnterLoopScope or CheckAbort and structurally cannot consult the loop budget. The asymmetry is visible in the reverse direction: object.to_json serialization in the same file does open a loop scope and step it (ObjectFunctions.cs:590,648,660), and generic array builders (ObjectFunctions.ToScriptArray, 494-507) follow the same pattern - indicating an oversight rather than intended behavior, and one untouched by the earlier LoopLimit hardening commit d17bd4b which modified ArrayFunctions.cs, ObjectFunctions.cs, ListAccessor.cs, ScriptArray.cs, ScriptRange.cs and TemplateContext.cs but not JsonElementExtensions.cs. JsonDocument.Parse's default MaxDepth of 64 constrains nesting depth only, not element count, and LimitToString (default 1 MB) bounds string size yet still permits roughly 500,000 entries; nested structures reached recursively through ToScriban() are likewise unguarded. The fix in 7.6.0 threads the active context through the recursive conversion so every element and property draws from the same nested budget and cancellation is checked before parsing and during conversion, while contextless host import APIs retain prior behavior.

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 8.7 HIGH
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
vuln.today AI 7.5 HIGH

Network-reachable via untrusted template/JSON with a single low-complexity expression, no auth or interaction in the stated threat model; availability-only impact so C:N/I:N/A:H, scope unchanged.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/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
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
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 8.7

DescriptionCVE.org

Scriban before 7.6.0 contains a resource exhaustion vulnerability that allows attackers to bypass LoopLimit by supplying large JSON input to object.from_json. Attackers can pass a flat JSON array or object with hundreds of thousands of elements, which JsonElementExtensions materializes without loop checks, exhausting CPU and memory.

Technical POC Analysis

CWE-770 (Allocation of Resources Without Limits or Throttling).

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

Scriban template engine versions through 7.5.3 contain an unauthenticated denial-of-service vulnerability that allows attackers to exhaust server resources via malicious JSON input. Any application rendering user-supplied templates, such as CMS platforms or email generators, is at risk, potentially causing service outages and disrupting business operations.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Disable the from_json builtin in Scriban configurations, enforce strict validation of JSON inputs before template rendering, and restrict template execution to trusted sources. Monitor for abnormal CPU and memory usage patterns indicative of resource exhaustion attacks.

Threat Intelligence Overview

EPSS Score
0.5%
Top 61% exploitable
Prevalence
Medium
popular .NET/NuGet templating library, common but not ubiquitous in production
Data Quality
5 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
Yes
Human Impact
High

Priority Score

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

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

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

CVE-2026-74792 HIGH
8.7 Aug 16

Process-terminating stack overflow in Scriban's template parser affects all versions before 7.0.0, allowing any attacker

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