Exposure of Data Element to Wrong Session Affecting scriban package, versions [,7.0.0)


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-DOTNET-SCRIBAN-15787355
  • published26 Mar 2026
  • disclosed24 Mar 2026
  • creditErdembileg Ariunbold

Introduced: 24 Mar 2026

New CVE NOT AVAILABLE CWE-488  (opens in a new tab)

How to fix?

Upgrade Scriban to version 7.0.0 or higher.

Overview

Scriban is a

Scriban is a fast, powerful, safe and lightweight scripting language and engine for .NET, which was primarily developed for text templating with a compatibility mode for parsing liquid templates.

Today, not only Scriban can be used in text templating scenarios, but also can be integrated as a general scripting engine: For example, Scriban is at the core of the scripting engine for kalk, a command line calculator application for developers.

Affected versions of this package are vulnerable to Exposure of Data Element to Wrong Session through the TemplateContext instance. An attacker can gain unauthorized access to hidden or sensitive object members by reusing a context where a previously permissive member filter was applied, even after the filter has been tightened.

Note: This is only exploitable if the same TemplateContext instance is reused with a more restrictive MemberFilter after a more permissive one was previously set.

References

CVSS Base Scores

version 4.0
version 3.1