๐Ÿ” CVE Alert

CVE-2026-71291

HIGH 8.8

Bolt CMS Server-Side Template Injection via Unsandboxed allow_twig Field Rendering

CVSS Score
8.8
EPSS Score
0.0%
EPSS Percentile
0th

Bolt CMS renders content field values through Twig's full application-level Environment with no SandboxExtension registered anywhere in the codebase. In src/Entity/Field.php, getTwigValue() calls shouldBeRenderedAsTwig(), which gates rendering only on the field definition's allow_twig flag and a regex checking for `{{`, `{%`, or `{#`; when true, the raw field value is compiled and rendered via `self::getTwig()->createTemplate($value)->render(['record' => $this->getContent()])` with no sandboxing. Bolt's own bundled config/bolt/contenttypes.yaml sets `allow_twig: true` on the default "pages" contenttype's content field out of the box. Any user with edit access to that content type (a standard editor role, not just an administrator) can inject a Twig payload such as `{{ ['id']|map('passthru')|join }}` that executes arbitrary OS commands when the content is saved and rendered, achieving remote code execution as the web server user.

CWE CWE-1336
Vendor bolt
Product core
Published Aug 5, 2026
Stay Ahead of the Next One

Get instant alerts for bolt core

Be the first to know when new high vulnerabilities affecting bolt core are published โ€” delivered to Slack, Telegram or Discord.

Get Free Alerts โ†’ Free ยท No credit card ยท 60 sec setup

CVSS v3 Breakdown

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability

Affected Versions

bolt / core
0 โ‰ค 6.1

References

NVD โ†— CVE.org โ†— EPSS Data โ†—
github.com: https://github.com/bolt/core github.com: https://github.com/bolt/core/blob/6.1/src/Entity/Field.php

Credits

Saidakbarxon Maxsudxonov