Read the docs

Memory exhaustion in Scriban via unguarded string and HTML builtins

Priority MEDIUM 40CWE-400Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Attack requirements
None
Impact type
Denial of service
Confidentiality · integrity · availability
None · None · High
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-400.

Summary

Scriban before 7.6.0 allows template authors to bypass the LimitToString string length limit because several string and HTML builtins lack allocation guards (CWE-400). An attacker who can supply a small template can force multi-gigabyte allocations under the default TemplateContext and exhaust host memory.

Written with Claude Haiku 5.5 from the sources below · 2026-11-27

Description from the CNA

Scriban and Scriban.Signed before 7.6.0 allow template authors to bypass the LimitToString string length limit because the string.literal, string.base64_encode, html.escape, html.newline_to_br, html.url_encode, and html.url_escape builtins lack allocation guards. An attacker who can supply a small template can repeatedly call these builtins under the default TemplateContext to force multi-gigabyte allocations and exhaust host memory.

Why it matters now

EPSS 0.00992 61st percentileScored 2026-11-30
Fix Fixed scriban (scriban): 7.6.0

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
scribanscribanbefore 7.6.07.6.0Patch availableCNA
scribanscribanbefore 7.6.07.6.0Patch availableCNA
  • scriban Vendorscriban Affected before 7.6.0 Fixed in 7.6.0 Patch available CNA
  • scriban Vendorscriban Affected before 7.6.0 Fixed in 7.6.0 Patch available CNA

Remediation

Upgrade Scriban to version 7.6.0.

Written with Claude Haiku 5.5 from the sources below · 2026-11-27

  • Fix · CNA scriban (scriban) Fixed in 7.6.0
  • Fix · CNA scriban (scriban) Fixed in 7.6.0

Fixed in the same release

Records fixed by the same vendor advisory or release, as the CNA lists them.

  • Release ·

    scriban 7.6.0

    5 records Highest priority Priority HIGH 2 HIGH, 2 MEDIUM, 1 LOW

    Other records, highest priority first

    • TI-2026-98942 Resource exhaustion in Scriban lets attackers bypass LoopLimitPriority HIGH 77
    • TI-2026-98938 Memory exhaustion in Scriban object.to_json enables denial of servicePriority HIGH 77
    • TI-2026-98939 Resource exhaustion in Scriban lets template authors exhaust memoryPriority MEDIUM 45

Timeline

  1. 2026-11-26 Threatist record created from CVE-2026-137510
  2. 2026-11-27 Alias added: GHSA-5cfh-jv7m-w7qx

References

  • TI-2026-52554 Scriban before 7.0.0 MemberFilter Bypass via TemplateContext Cache CVSS 4.0CRITICAL 9.3
  • TI-2026-51270 Scriban before 7.2.2 Arbitrary Property Write via TypedObjectAccessor CVSS 4.0CRITICAL 9.3
  • TI-2026-52555 Scriban before 7.0.0 Authorization Bypass via Stale Include Cache CVSS 4.0CRITICAL 9.2
  • TI-2026-98942 Resource exhaustion in Scriban lets attackers bypass LoopLimit CVSS 4.0HIGH 8.7
  • TI-2026-98938 Memory exhaustion in Scriban object.to_json enables denial of service CVSS 4.0HIGH 8.7
  • TI-2026-86800 Resource exhaustion in Scriban templates enables denial of service CVSS 4.0HIGH 8.7
See all 22 →

Sources