Skip to main content
COSMICBYTEZLABS
NewsSecurityHOWTOsToolsTraining
StudyProjectsNewsletterHire MeAbout
Subscribe

Press Enter to search or Esc to close

News
Security
HOWTOs
Tools
Training
Study
Projects
Newsletter
Hire Me
About
RSS Feed
Reading List
Subscribe

Stay in the Loop

Get the latest security alerts, tutorials, and tech insights delivered to your inbox.

Subscribe NowFree forever. No spam.
COSMICBYTEZLABS

Your trusted source for IT intelligence, cybersecurity insights, and hands-on technical guides.

2393+ Articles
159+ Guides

CONTENT

  • Latest News
  • Security Alerts
  • HOWTOs
  • Checklists
  • Projects
  • Exam Prep

RESOURCES

  • Search
  • Browse Tags
  • Newsletter Archive
  • Reading List
  • RSS Feed

COMPANY

  • About Us
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CosmicBytez Labs. All rights reserved.

System Status: Operational
  1. Home
  2. Security
  3. Scriban .NET Template Engine Access-Modifier Bypass — CVE-2026-73061
Scriban .NET Template Engine Access-Modifier Bypass — CVE-2026-73061

Critical Security Alert

This vulnerability is actively being exploited. Immediate action is recommended.

SECURITYCRITICALCVE-2026-73061

Scriban .NET Template Engine Access-Modifier Bypass — CVE-2026-73061

Scriban's TypedObjectAccessor fails to enforce setter visibility, letting template code write private and init-only .NET properties (CVSS 9.8 Critical).

Dylan H.

Security Team

August 17, 2026
4 min read

Affected Products

  • Scriban < 7.2.2

Executive Summary

A critical access-modifier bypass vulnerability has been disclosed in Scriban, a widely used .NET scripting and templating library. Tracked as CVE-2026-73061 (CVSS v3.1: 9.8, CVSS v4.0: 9.3), the flaw exists in Scriban's TypedObjectAccessor component, which fails to enforce setter-visibility rules when template code writes to CLR object properties. Attackers who can supply user-controlled templates can write to private, internal, and init-only .NET object properties, corrupt live host application state, and potentially achieve full confidentiality and integrity compromise. All Scriban versions prior to 7.2.2 are affected.

Vulnerability Details

FieldValue
CVE IDCVE-2026-73061
CVSS v3.1 Score9.8 (Critical)
CVSS v4.0 Score9.3 (Critical)
Vector (v3.1)AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Affected VersionsScriban < 7.2.2
GitHub AdvisoryGHSA-7jvp-hj45-2f2m
PublishedAugust 16, 2026
Fixed VersionScriban 7.2.2

Technical Analysis

Scriban allows .NET applications to expose host objects to template authors for rendering. The TypedObjectAccessor class, responsible for property access, correctly controls read access but fails to enforce visibility restrictions on writes. When a template assigns a value to a property, the accessor does not verify whether the property's setter is public, private, internal, or init-only — it writes unconditionally.

Exploit Scenarios

Mass Assignment: An attacker-controlled template can enumerate and set any public-setter property on a host object, including security-sensitive fields like IsAdmin, Role, or Permissions.

Private/Internal Setter Bypass: Properties explicitly declared with private set or internal set in C# to enforce encapsulation can be overwritten from template code, violating the object's invariants.

Init-Only Bypass: C# 9+ init properties, designed to be immutable after construction, can be set by Scriban template code — defeating the language's immutability guarantees.

Live Object Corruption: Host objects modified during template rendering retain those modifications after rendering completes, meaning a single template execution can permanently alter application state for the duration of the process lifetime.

Attack Vector

Any application that:

  1. Uses Scriban for template rendering, and
  2. Exposes host .NET objects to user-controlled template content (web forms, API bodies, uploaded files, database-stored templates)

...is vulnerable to this attack without patching. The network attack vector with no authentication or user interaction required reflects that web-facing applications rendering user templates are the primary risk surface.

Affected Software

ComponentAffected Versions
Scriban (.NET templating library)All versions < 7.2.2

Note: A related denial-of-service vulnerability (CVE-2026-73062, CVSS 7.5 High) was published the same day, affecting Scriban 3.0.0–7.2.0 via the array multiplication operator. Upgrading to 7.2.2 addresses both.

Mitigation

Upgrade to Scriban 7.2.2 immediately. This is the only documented remediation — no workarounds are available for the root cause.

Interim Measures (If Upgrade Is Not Immediately Possible)

  1. Restrict template authorship — prevent end users from supplying arbitrary template content if at all possible. Shift to a curated, pre-approved template library.
  2. Sandbox exposed objects — expose only Data Transfer Objects (DTOs) with no sensitive properties to Scriban, rather than live domain/entity objects.
  3. Audit template inputs — log all user-supplied template content for anomalous property assignment patterns.
  4. Monitor object state post-render — add integrity assertions on sensitive objects after template rendering in high-risk code paths.

Detection

  • Review all code paths where user-supplied strings are passed to Template.Parse() or Template.Render() with host object bindings
  • Watch for unexpected property mutations on objects passed to Scriban rendering calls
  • Audit NuGet dependency trees for Scriban packages below version 7.2.2

References

  • GitHub Advisory GHSA-7jvp-hj45-2f2m
  • NVD — CVE-2026-73061
  • Scriban on NuGet
  • TheHackerWire — Scriban Critical Access-Modifier Bypass
#CVE#Scriban#dotNET#Template Injection#Access Control#Mass Assignment

Related Articles

CVE-2026-73043: SiYuan RCE via Template Calculation Operator

Critical RCE in SiYuan note-taking app. Unsanitized Go templates allow script injection for all versions before v3.7.4.

2 min read

CVE-2026-14206: HT Contact Form WordPress Plugin Exposes Visitor PII to Unauthenticated Attackers

The HT Contact Form plugin before 2.9.3 allows any unauthenticated user to read saved form drafts containing visitor names, emails, and physical addresses via a completely unprotected API endpoint.

4 min read

CVE-2026-9558: Critical SSTI in Mautic Enables Authenticated RCE

A Server-Side Template Injection flaw in Mautic's Twig-based theme engine allows authenticated users with theme upload permissions to execute arbitrary...

3 min read
Back to all Security Alerts