{"id":"CVE-2026-71291","aliases":["CVE-2026-71291"],"related":[],"kind":"vulnerability","state":"published","title":"Bolt CMS Server-Side Template Injection via Unsandboxed allow_twig Field Rendering","summary":"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 with no sandboxing.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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 with no sandboxing.","source":"cvelist"},{"lang":"es","text":"Bolt CMS renderiza los valores de los campos de contenido a través del entorno completo a nivel de aplicación de Twig sin ninguna SandboxExtension registrada en ninguna parte del código base. En src/Entity/Field.php, getTwigValue() llama a shouldBeRenderedAsTwig(), que restringe la renderización solo al indicador allow_twig de la definición del campo y a una expresión regular que verifica ’{{’, ’{%’ o ’{#’; cuando es verdadero, el valor del campo en bruto se compila y renderiza a través de ’self::getTwig()  ->  createTemplate($value)  ->  render([’record’ => $this  ->  getContent()])’ sin sandboxing. El propio paquete de Bolt config/bolt/contenttypes.yaml establece ’allow_twig: true’ en el campo de contenido del tipo de contenido predeterminado ’pages’ de forma predeterminada. Cualquier usuario con acceso de edición a ese tipo de contenido (un rol de editor estándar, no solo un administrador) puede inyectar una carga útil de Twig como ’{{ [’id’]|map(’passthru’)|join }}’ que ejecuta comandos arbitrarios del sistema operativo cuando el contenido se guarda y se renderiza, logrando ejecución remota de código como el usuario del servidor web.","source":"nvd"}],"published":"2026-08-05T12:38:41.070Z","modified":"2026-10-23T21:10:00.157Z","severity":{"scorer":"TuranSec","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},"severities":[{"scorer":"TuranSec","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"}],"cwes":["CWE-1336"],"affected":[{"ranges":[{"type":"custom","introduced":"0","lastAffected":"6.1","status":"affected"}],"vendor":"bolt","product":"core","source":"cvelist"}],"references":[{"url":"https://github.com/bolt/core","tags":["third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://github.com/bolt/core/blob/6.1/src/Entity/Field.php","tags":["third-party-advisory"],"sources":["cvelist","nvd"]}],"credits":["Saidakbarxon Maxsudxonov"],"assigner":"TuranSec","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-08-05T15:46:43.858Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-71291","url":"https://www.cve.org/CVERecord?id=CVE-2026-71291","licence":"CVE Terms of Use","modified":"2026-08-10T11:47:24.089Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-71291","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-71291","licence":"Public domain","modified":"2026-10-23T21:10:00.157Z"}],"updatedAt":"2026-11-25T22:59:31.109Z","epss":{"score":0.00305,"percentile":0.25111,"date":"2026-12-01T12:00:22.000Z"}}