Intel

AIKIDO-2026-477016

Scriban is vulnerable to Sandbox Bypass

Sandbox BypassCVE-2026-74790 Published 4 days ago

93

Critical Risk

This Affects:

DOTNETScriban
0.0.0 - 6.6.0
Fixed in 7.0.0
Are you affected? Scan for Free

TL;DR

TemplateContext.GetMemberAccessor() caches TypedObjectAccessor instances by Type only, even though each accessor is built from the current MemberFilter and MemberRenamer. Reusing a TemplateContext after tightening MemberFilter still serves the older permissive accessor, so templates can read or write members that the updated filter was meant to hide. Applications that pool contexts across requests or tenants can therefore bypass sandbox exposure policies. The fix resets the typed accessor cache when MemberFilter changes.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and reuse a TemplateContext while relying on MemberFilter to hide members.

Background info

Scriban is vulnerable to Sandbox Bypass in versions 0.0.0 - 6.6.0.

How to fix this

Upgrade the Scriban library to the patch version.