Description
Scriban before 7.0.0 (affected versions <= 6.6.0) contains a denial-of-service vulnerability in which the LimitToString safety limit (default 1MB) can be bypassed because ObjectToString resets the per-call length counter (_currentToStringLength) on every top-level call and StringBuilderOutput enforces no cumulative output-size limit. An attacker who can supply a template can render a near-limit string repeatedly in a loop, allocating approximately 1GB of memory and causing an out-of-memory condition that crashes the host application.
Published: 2026-08-16
Score: 7.1 High
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability is an out‑of‑memory denial of service caused by a bypass of Scriban’s built‑in string limit. The library’s default limit of 1 MB is reset on each top‑level call, allowing an attacker controlling template content to generate many large strings. Repeated rendering can consume about 1 GB of memory, leading to an out‑of‑memory exception and application crash. The weakness is a classic unbounded write (CWE‑770) and directly impacts application availability.

Affected Systems

Affected are all environments that use Scriban versions up to and including 6.6.0. The vendor of record is scriban:scriban, and any deployments that expose template rendering capabilities to an attacker are potentially impacted. Versions 7.0.0 and newer are not vulnerable according to the advisory, and no additional partial fixes are documented.

Risk and Exploitability

The CVSS score of 7.1 indicates high severity. An EPSS value is not provided, so the current exploitation probability is unknown, but because the attack requires only the ability to supply a template, the risk remains high for any system that accepts untrusted templates. The issue is not listed in KEV, meaning no confirmed exploitation has been reported yet, yet the straightforward exploitation path and potential for server memory exhaustion give it a significant threat posture.

Generated by OpenCVE AI on August 16, 2026 at 14:39 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update Scriban to version 7.0.0 or later as recommended by the vendor.
  • If an upgrade cannot be performed immediately, isolate the template rendering component in a separate process or sandboxed environment with strict memory limits to contain any potential OOM conditions.
  • Limit the sources from which templates are supplied; only allow trusted, pre‑approved templates and avoid processing user supplied templates from untrusted environments.

Generated by OpenCVE AI on August 16, 2026 at 14:39 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sun, 16 Aug 2026 13:30:00 +0000

Type Values Removed Values Added
Description Scriban before 7.0.0 (affected versions <= 6.6.0) contains a denial-of-service vulnerability in which the LimitToString safety limit (default 1MB) can be bypassed because ObjectToString resets the per-call length counter (_currentToStringLength) on every top-level call and StringBuilderOutput enforces no cumulative output-size limit. An attacker who can supply a template can render a near-limit string repeatedly in a loop, allocating approximately 1GB of memory and causing an out-of-memory condition that crashes the host application.
Title Scriban before 7.0.0 Denial of Service via Unbounded Template Output
Weaknesses CWE-770
References
Metrics cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

cvssV4_0

{'score': 7.1, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-08-16T13:14:11.837Z

Reserved: 2026-08-16T12:56:02.577Z

Link: CVE-2026-74786

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-16T14:16:56.523

Modified: 2026-08-16T14:16:56.523

Link: CVE-2026-74786

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-16T14:45:04Z

Weaknesses
  • CWE-770

    Allocation of Resources Without Limits or Throttling