Skip to main content

Scriban EUVDEUVD-2026-119562

| CVE-2026-124438 CRITICAL
Information Exposure (CWE-200)
2026-11-08 VulnCheck GHSA-fr78-j433-79gx
9.1
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Submit attacker-controlled Scriban template
  2. Delivery
    Call array.map on imported delegate member
  3. Exploit
    Resolve .NET delegate Target/Method via reflection accessor
  4. Execution
    Read captured secrets and service properties
  5. Impact
    Overwrite public fields persisting in host

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V14 - Data Protection Data exposure prevention
MITRE ATT&CK

2 techniques across 2 tactics: Collection, Discovery

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Attacker prerequisite: the application must render attacker-controlled Scriban template text (PR:N - the attacker only submits a template, no authentication to Scriban itself). The high-impact read/write variant additionally requires a host-side condition outside the attacker's control: the host must have called ScriptObject.Import(name, Delegate) with an instance-method delegate (new Func<...>(service.Method)) or a lambda that captures locals - only those create a non-null delegate Target holding state. This host condition is what drives AC:H/AT:P and limits realistic impact. Where no stateful delegate is imported, only variant B applies on every host: a template reaches System.Type/Assembly/MethodInfo objects through builtins (e.g. string.upcase, date.now), disclosing install paths and exact runtime version - information disclosure only, no write. No code-execution path was found (methods on reflected objects are not callable through the accessor). The only complete fix per the vendor is upgrading to 7.5.2.

Impact

Signals point to a genuine priority but with an important nuance about which variant you face. The vuln.today decision label is act_now and VulnCheck plus the vendor GHSA both treat this as high impact; a detailed proof-of-concept is published in the advisory. However, the severity signals conflict: the input CVSS 4.0 vector scores 9.1, while the vendor's own CVSS 3.1 self-assessment in the GHSA is only 7.4 (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N). The gap is driven entirely by AC/AT: the high-impact read-and-write variant requires the host to have imported a stateful delegate via ScriptObject.Import(name, Delegate) - an instance-method delegate or a capturing lambda - which is a host configuration outside the attacker's control (hence AC:H / AT:P). The vendor explicitly notes that if that configuration is considered the norm, AC:L yields 9.1, which explains the 4.0 score. No EPSS score and no CISA KEV entry are present in the input, so there is no evidence of active or widespread exploitation - exploitation status is a published PoC only, not in-the-wild use. Net: treat as act_now for any .NET service that renders attacker-influenced Scriban templates AND imports instance/closure delegates (real C:H/I:H exposure of secrets with persistent write-back); for hosts that expose no stateful delegates, only the information-disclosure variant B applies (reflection/assembly-path leak, ~5.3), which is lower urgency.

Exploit ScenarioDerived

An application lets untrusted users (or tenants) submit Scriban templates and has imported a service or lambda delegate, e.g. so.Import("greet", new Func<...>(service.Method)). An attacker submits a template using array.map on the delegate's 'target' member to reach the bound service instance or captured closure via reflection, then reads a captured secret (connection string, API key) and overwrites public properties/fields, with the change persisting in the live host after Render. A full working proof-of-concept for both the read/write and reflection-leak paths is published in the vendor GHSA advisory.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.4% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Nov 08, 2026

Scriban through 7.5.1 exposes the .NET objects behind imported function values, letting a template author read members such as Target, Method and ReturnType off a function via array.map instead of invoking it. Where the host imported an instance-method delegate or a closure-capturing lambda, the template can read and then overwrite the reachable public properties, fields and captured locals - connection strings, API keys, auth flags, service state - and those writes persist in the host after Render returns; hosts that import no stateful delegate are limited to disclosure of assembly paths and exact runtime version, with no code-execution path found. Scoring differs by standard: the CNA assigned CVSS 4.0 9.1, while the assessed CVSS 3.1 vector is 7.4 (AV:N/AC:H/PR:N/UI:N/C:H/I:H) because the read/write variant hinges on a host-side import pattern outside the attacker's control; a working proof-of-concept template is published in the vendor advisory, no confirmed active exploitation appears in the available data, and the vuln.today priority is act_now.

RemediationAI

Upgrade to Scriban 7.5.2 (and Scriban.Signed 7.5.2) - the vendor states upgrading is the only complete fix, per https://github.com/scriban/scriban/security/advisories/GHSA-hvr4-4p37-494f. If the upgrade cannot be staged immediately, the highest-value compensating control follows directly from the trigger condition: stop calling ScriptObject.Import(name, Delegate) with instance-method delegates or lambdas that capture secrets, and import only static members via Import(object)/Import(Type), which never create a non-null delegate Target and therefore eliminate the read/write variant - the trade-off is that instance services must be wrapped behind stateless static functions. For the residual variant B exposure (assembly paths and runtime version via Method/ReturnType on any builtin), restrict who can submit template text, and be aware that untrusted templates can still fingerprint the host runtime. Hosts that intend to adopt the upstream design fix should return an empty accessor (e.g. NullAccessor) for IScriptCustomFunction instances so function values expose no members, or at minimum hide Target, Method, ReturnType and Tag from template member access, and should audit other builtins that read a member by name from raw items (array.map, array.sort/filter-style member arguments) for the same raw-object path; disabling array.map's member argument closes the known read path but breaks legitimate member-based mapping and filtering in existing templates.

Affected VersionsENISA

scriban 0 <7.5.2

Affected Packages

euvd scriban fix: 7.5.2

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 whose safe-runtime contract states that templates can only reach builtin functions plus the objects and members the application explicitly exposes. The flaw sits in TemplateContext.GetMemberAccessor (src/Scriban/TemplateContext.cs, ~L994), which hands back a reflection TypedObjectAccessor for the custom-function wrapper objects themselves, so their public members become template-visible: DelegateCustomFunction.Target (src/Scriban/Runtime/DelegateCustomFunction.cs, ~L39) is the delegate target - the service instance for an instance-method delegate, or the compiler-generated display class holding captured locals for a lambda; DynamicCustomFunction.Method (~L34, a public readonly MethodInfo), ReturnType (~L178, a System.Type) and Tag (~L183) are likewise reachable. Calling a member on a function variable normally invokes the function, but array.map (src/Scriban/Functions/ArrayFunctions.cs, ~L646) reads the named member on each raw item, so [@fn] | array.map "target" yields the underlying .NET object, after which ordinary reflected-object rules apply - public getters readable, public setters and fields writable, recursively across everything reachable. This maps to CWE-200 (exposure of internal information) with a secondary CWE-915 object-manipulation/mass-assignment component tracked in the GHSA. Only ScriptObject.Import(name, Delegate) (ScriptObjectExtensions.cs, ~L390) produces a function with a non-null Target; Import(object) and Import(Type) import static methods and therefore never expose an instance - that distinction is exactly what the assessment encodes as AC:H/AT:P, and it also bounds the realistic impact, since the Method/ReturnType path works on every builtin but yields only System.Type, Assembly and MethodInfo objects (install paths, runtime version, type enumeration), and methods on those reflected objects are not callable through the accessor. Prerequisites: the application must render attacker-controlled template text (PR:N, no authentication to Scriban), plus, for the write variant, a host that imports instance-method delegates or capturing lambdas.

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 9.1 CRITICAL
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
vuln.today AI 7.4 HIGH

AV:N/PR:N/UI:N because the attacker only submits a template; AC:H because the read/write impact depends on the host importing a stateful delegate; C:H/I:H for secret disclosure plus persistent write-back; A:N.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
4.0 AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
High
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Nov 08, 2026 - 14:01 EUVD
CVE Published
Nov 08, 2026 - 13:15 cve.org
CRITICAL 9.1

DescriptionCVE.org

Scriban before 7.5.2 contains an information disclosure and object manipulation vulnerability that allows template authors to access .NET internals of function values through reflection member accessors. Attackers can use array.map to read Target, Method, or ReturnType on imported delegates, exposing and overwriting service properties, captured closure secrets, and assembly paths.

Technical POC Analysis

CWE-200 (with CWE-915 for the write primitive).

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

CVE-2026-124438 is a critical vulnerability in the Scriban template engine (through 7.5.1) that allows template authors to read and modify sensitive .NET objects exposed via imported functions, potentially leaking or altering credentials and service state. This affects any application using Scriban to render user-supplied templates that import stateful delegates, posing a risk to data confidentiality and system integrity. Leadership should prioritize remediation because the flaw can be exploited by authenticated users with template authoring privileges, and a public proof-of-concept exists.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.4%
Top 70% exploitable
Prevalence
Medium
popular .NET templating library, common in .NET apps 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 CRITICAL
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
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
No
Human Impact
High

Priority Score

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

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

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