Skip to main content

Scriban CVE-2026-137509

| EUVDEUVD-2026-136568 HIGH
Uncontrolled Resource Consumption (CWE-400)
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
    Submit crafted Scriban template to rendering endpoint
  2. Delivery
    Define ScriptObject with many large members
  3. Exploit
    Trigger ScriptObject.ToString member concatenation
  4. Execution
    Allocate multi-gigabyte string bypassing LimitToString
  5. Impact
    Exhaust 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.

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

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

Alert me

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

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

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

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.

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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.7%
Top 54% exploitable
Prevalence
Medium
popular .NET templating NuGet library, common but not ubiquitous infrastructure
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.7%
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
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

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

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