CVE-2026-73061

9.8

scriban · scriban

The Scriban template engine contains an access-modifier bypass vulnerability in TypedObjectAccessor, allowing unauthenticated attackers to perform unauthorized writes to CLR object properties.

Executive summary

A critical access-modifier bypass in the Scriban template engine allows unauthenticated remote attackers to modify protected object properties, potentially leading to full system compromise.

Vulnerability

The vulnerability exists in the TypedObjectAccessor component, where template code can write to CLR object properties without proper setter-visibility checks. This allows an unauthenticated attacker to manipulate private, internal, or init-only setters, effectively performing mass assignment on sensitive host objects.

Business impact

Successful exploitation allows an attacker to permanently alter the state of live host objects after template rendering. Given the CVSS score of 9.8, this vulnerability poses a severe risk to data integrity and system security, potentially enabling arbitrary code execution or privilege escalation within the application environment.

Remediation

Immediate Action: Update the scriban package to version 7.2.2 or later via your package manager (e.g., NuGet).

Proactive Monitoring: Review application logs for unusual template rendering behavior or unexpected modifications to internal object states.

Compensating Controls: Implement strict input validation for templates and, where possible, utilize sandboxing configurations that restrict the scope of accessible object properties.

Exploitation status

Public Exploit Available: No

Analyst recommendation

This is a critical vulnerability that requires immediate attention. Organizations utilizing the Scriban template engine should prioritize upgrading to version 7.2.2 to close this access-modifier bypass. Failure to patch may allow remote attackers to gain unauthorized control over application logic and object data.

More scriban CVEs