一线运维实战手记 · 云计算 · 数据库 · 故障排查
2026年9月6日

CVE-2026-86197 – Grav before 2.0.20 contains a cross-site scripting vulnerability in the Twig sandbox polic

未分类
📑 文章目录

Grav before 2.0.20 contains a cross-site scripting vulnerability in the Twig sandbox policy that allowlists addJs and addCss methods on GravCommonAssets without proper output escaping. Page editors can inject arbitrary script by registering malicious assets or injecting attributes, which are rendered unescaped into document head tags and executed for all visitors including administrators.