← Back to CVE search

CVE-2026-74786

Scriban

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.

CVSS 6.5EPSS 0.272%Risk 0.67
View source
Published
2026-08-16 14:16:56
Affected versions
<=6.6.0
Type
Library
Last modified
2026-08-17 18:18:15
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H