Skip to main content

Scriban CVE-2026-137508

| EUVDEUVD-2026-136569 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
    Submit crafted Scriban template to renderer
  2. Exploit
    Chain object.to_json over escape-heavy string
  3. Execution
    Amplify output to multi-gigabyte allocation
  4. Impact
    Exhaust process memory causing denial of 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

The application must render untrusted, attacker-authored Scriban templates that are permitted to call object.to_json - the description identifies the actor as a 'template author' who bypasses the LimitToString cap by serializing into an unbounded MemoryStream. No authentication is required per PR:N and no user interaction per UI:N, but this holds ONLY where template input is untrusted; the decisive limiting factor is deployment design. If templates are static/trusted, pre-vetted, or object.to_json is not reachable by untrusted input, the flaw is not exploitable. Affected versions are Scriban and Scriban.Signed <= 7.5.3; fixed in 7.6.0, which enforces LimitToString incrementally and throws on over-limit serialization.

Impact

The CVSS 4.0 score of 8.7 (High) is driven entirely by availability impact: AV:N/AC:L/AT:N/PR:N/UI:N with VC:N/VI:N/VA:H - a remotely reachable, low-complexity, no-authentication denial of service with no confidentiality or integrity consequence. The vuln.today Decision label is 'this_week', not act_now/emergency, which is consistent with a serious but non-catastrophic DoS. No EPSS score and no CISA KEV entry are present in the input, so there is no signal of active or widespread exploitation; this is not confirmed actively exploited. However, the GHSA advisory embeds a complete, self-contained proof-of-concept with observed results (an ~85-byte template producing a ~3.4 GB heap peak), so exploitability is well demonstrated even though it is not catalogued as a structured 'POC: Publicly available (confirmed)' field. The single most important caveat the raw CVSS does not capture: PR:N/UI:N holds only for applications that render untrusted, attacker-supplied Scriban templates. The description explicitly frames the actor as a 'template author,' so in deployments where templates are trusted/static the real-world risk is effectively nil regardless of the 8.7 rating. Net: a genuine, easy-to-trigger DoS for any service exposing Scriban template authoring to untrusted users, but a low-priority theoretical issue for closed template sets - triage should hinge on whether your application accepts untrusted templates.

Exploit ScenarioDerived

An attacker who can submit Scriban templates to a vulnerable .NET application sends a tiny (~85-byte) template that repeatedly pipes an escape-heavy string through object.to_json, re-escaping backslashes and control characters on each pass to amplify a ~1 MB input into multi-gigabyte output. Because AC:L/PR:N/UI:N applies, no special skill, authentication, or victim interaction is needed where untrusted templates are accepted. The GHSA advisory includes a working proof-of-concept that observed a ~3.4 GB heap peak, making the technique readily reproducible.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.8% 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 denial of service in the Scriban .NET templating engine through 7.5.3 (both the Scriban and Scriban.Signed NuGet packages) lets a template author bypass the LimitToString string-length cap by calling object.to_json, which serializes into an unbounded MemoryStream. Repeated serialization re-escapes backslashes and control characters, so a roughly 85-byte template with a 1 MB newline string ballooned to 257,000,592 output characters and about 3.4 GB of heap in the vendor's own proof of concept, which is documented publicly in the GHSA advisory; repeatable renders exhaust process memory. The CVSS 4.0 score of 8.7 (High) is driven entirely by availability impact (VA:H with no confidentiality or integrity effect) and, per the assessed vector, the flaw is only reachable where an application renders untrusted, attacker-authored templates that are permitted to call object.to_json; static or pre-vetted templates remove the exposure. Exploitation is not confirmed in the wild - no CISA KEV listing - and the issue is fixed in 7.6.0.

RemediationAI

Upgrade to Scriban 7.6.0 or later - the advisory states the fix for either distribution, Scriban or Scriban.Signed, is 7.6.0, where object.to_json checks LimitToString incrementally using the UTF-16 character length of the JSON output (including escape sequences), bounds individual string and property-name inputs before reserving escape buffers, flushes to a bounded stream, and throws on an over-limit operation instead of returning truncated JSON. Patch details are in GHSA-vqm7-rm7v-qq3f (https://github.com/scriban/scriban/security/advisories/GHSA-vqm7-rm7v-qq3f) and the VulnCheck advisory (https://www.vulncheck.com/advisories/scriban-before-7.6.0-memory-exhaustion-dos-via-object-to-json). Where upgrading cannot be done immediately, the decisive exposure factor is deployment design rather than template content: the flaw is only reachable when the application renders untrusted, attacker-authored templates that are permitted to call object.to_json, so restricting rendering to static or pre-vetted templates, or preventing untrusted template input from reaching object.to_json, removes the trigger - at the cost of giving up dynamic, user-supplied templating, and with the caveat that it is a scoping control rather than a code fix and does nothing for templates that are already untrusted by design. Prioritization falls in the this_week band per the vuln.today decision label; there is no KEV-confirmed active exploitation, but a working proof-of-concept template is published in the vendor advisory.

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 language and engine, distributed on NuGet as Scriban and the strong-named Scriban.Signed. The root cause class is CWE-770 (allocation of resources without limits or throttling), tracked by the vendor additionally as CWE-400; ObjectFunctions.ToJson (src/Scriban/Functions/ObjectFunctions.cs lines 576-596) and its WriteValue helper (lines 598-680) write JSON output into an unbounded MemoryStream and never consult context.LimitToString, so the only ceiling is .NET's own JSON length cap. Because each serialization pass escapes existing backslashes and control characters again, output grows super-linearly across passes: in the advisory's reproduction (default TemplateContext with a pushed ScriptObject, no host objects), nine successive s = s | object.to_json passes against a 1,000,000-character newline string produced 257,000,592 characters with a 3377 MB peak working set in about 2.7 seconds, and a tenth pass only failed on the .NET JSON length error after the same ~3.4 GB had already been allocated. The 7.6.0 fix enforces LimitToString incrementally against the UTF-16 character length of the JSON output including escape sequences, bounds individual string and property-name inputs before reserving escape buffers, flushes tokens to a bounded stream, and throws instead of returning truncated invalid JSON; ScriptObject serialization follows the same guarded traversal. CPE data identifies cpe:2.3:a:scriban:scriban for the affected codebase.

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

Remote, low-complexity, no-auth DoS when untrusted templates are rendered; 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 memory exhaustion vulnerability in object.to_json that allows template authors to bypass the LimitToString string length limit by serializing into an unbounded MemoryStream. Attackers can repeatedly apply object.to_json to escape-heavy strings in a tiny template, amplifying output to multi-gigabyte heap allocations and causing denial of service.

Technical POC Analysis

Evidence base: GHSA-vqm7-rm7v-qq3f only.

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

A high-severity memory exhaustion vulnerability in the Scriban .NET templating engine (versions through 7.5.3) can allow an attacker who supplies template content to crash or severely degrade any application that renders untrusted templates. The flaw is purely a denial-of-service risk, affecting system availability but not data confidentiality or integrity; leadership should care because service outages and resource exhaustion can disrupt business operations and customer-facing services.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis; interim mitigations include restricting rendering to static or pre-vetted templates, disabling or blocking the object.to_json function, applying process memory limits and request throttling, and monitoring for abnormal memory usage.

Threat Intelligence Overview

EPSS Score
0.8%
Top 47% exploitable
Prevalence
Medium
popular .NET templating library distributed via NuGet, common but not universal
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.8%
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-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

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