Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSubmit crafted Scriban template to renderer
-
ExploitChain object.to_json over escape-heavy string
-
ExecutionAmplify output to multi-gigabyte allocation
-
ImpactExhaust 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
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 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
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
Remote, low-complexity, no-auth DoS when untrusted templates are rendered; availability-only impact so C:N/I:N, A:H, scope unchanged.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.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
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.
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
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 in Scriban before 7.6.0 lets anyone who can supply template source render a roughly 2 KB template that
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-136569
NVD
CVE.org
EPSS
GitHub
Exploit-DB