Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2026-86197— Grav before 2.0.20 Cross-Site Scripting via Assets Sandbox

Quick assessment

Affected
getgrav grav
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Grav 在 2.0.20 之前的版本中,由于 Twig 沙箱策略对 类中的 和 方法进行了白名单授权,但未进行适当的输出转义,从而存在跨站脚本(XSS)漏洞。页面编辑者可以通过注册恶意资源或注入属性来插入任意脚本;这些脚本会被未转义地渲染到文档的 标签中,并对所有访问者(包括管理员)执行。

CVSS 5.1 · Medium

Affected Version Matrix 2

VendorProduct Version RangeStatus
getgrav grav < 2.0.20 affected
2.0.20 unaffected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-86197

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Grav before 2.0.20 Cross-Site Scripting via Assets Sandbox
Source: CVE Program / CVE List V5
Vulnerability Description
Grav before 2.0.20 contains a cross-site scripting vulnerability in the Twig sandbox policy that allowlists addJs and addCss methods on Grav\Common\Assets 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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N
Source: CVE Program / CVE List V5
Vulnerability Type
在Web页面生成时对输入的转义处理不恰当(跨站脚本)
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
getgrav grav 0 ~ 2.0.20 -

II. Public POCs for CVE-2026-86197

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-86197

登录查看更多情报信息。

Vendor Advisories for CVE-2026-86197 (2)

Same Patch Batch · getgrav · 2026-09-05 · 5 CVEs total

CVE-2026-86196 8.7 HIGH Grav API Plugin before 1.0.20 Authentication Bypass via Host Header
CVE-2026-86195 8.7 HIGH grav-plugin-api 1.0.0 through 1.0.19 Privilege Escalation via Dot-Keyed Super Flag
CVE-2026-86193 8.7 HIGH Grav API Plugin Authentication Bypass via Group-Inherited Super
CVE-2026-86194 6.9 MEDIUM Grav Form Plugin before 9.1.22 Cross-Page Form Execution

IV. Related Vulnerabilities

V. Comments for CVE-2026-86197

No comments yet


Leave a comment