Grav is a flat-file CMS. In versions 2.0.19 through 2.0.24 — and in 2.0.0 through 2.0.18 and 1.7.x only where content Twig has been explicitly… (CVE-2026-100671)
Grav CMS versions 2.0.0 through 2.0.24 and 1.7.x (with content Twig explicitly enabled) contain a vulnerability where page content authored by users with page-write permission is processed through a Twig sandbox that allowlists get_cookie(). This function exposes cookies, including session cookies, server-side. The rendered content is cached without user or session context, allowing subsequent visitors to receive cached pages containing administrator session cookies. This enables cookie replay attacks to authenticate as administrators. The vulnerability is fixed in version 2.0.25; 1.7.x is not patched.
AI Analysis
Technical Summary
Grav CMS versions 2.0.0 through 2.0.24 (and 1.7.x with content Twig enabled) render user-authored page content through a Twig sandbox that allowlists the get_cookie() function. This function returns any cookie sent with the current request, including session cookies, which are read server-side bypassing HttpOnly, Secure, and SameSite protections. The rendered output is cached keyed only by page identity and configuration checksum, without session or user context. Consequently, a page published by a user with page-write permission can capture the session cookie of an administrator who views the page next. This cached output is then served to unauthenticated visitors, who can replay the captured cookie to authenticate as that administrator. Since version 2.0.19, content Twig processing is enabled by default on all pages without frontmatter or operator action. The vulnerability is fixed in Grav version 2.0.25; the 1.7.x branch is outside the backport scope.
Potential Impact
An attacker with page-write permission can craft page content that captures the session cookie of an administrator viewing the page. This session cookie is cached and subsequently served to unauthenticated visitors, enabling them to replay the cookie and gain administrator-level access. This results in full confidentiality, integrity, and availability compromise of the Grav CMS instance. The vulnerability has a high CVSS score of 8.0, reflecting its potential for remote exploitation with low attack complexity and high impact.
Mitigation Recommendations
A fixed version, Grav 2.0.25, is available and should be applied to remediate this vulnerability. The 1.7.x branch is not patched for this issue. Until upgrading, avoid enabling content Twig processing for user-authored pages or restrict page-write permissions to fully trusted users. Review and disable the allowlisted get_cookie() function in Twig sandbox if possible. No other vendor advisories indicate alternative mitigations.
Grav is a flat-file CMS. In versions 2.0.19 through 2.0.24 — and in 2.0.0 through 2.0.18 and 1.7.x only where content Twig has been explicitly… (CVE-2026-100671)
Description
Grav CMS versions 2.0.0 through 2.0.24 and 1.7.x (with content Twig explicitly enabled) contain a vulnerability where page content authored by users with page-write permission is processed through a Twig sandbox that allowlists get_cookie(). This function exposes cookies, including session cookies, server-side. The rendered content is cached without user or session context, allowing subsequent visitors to receive cached pages containing administrator session cookies. This enables cookie replay attacks to authenticate as administrators. The vulnerability is fixed in version 2.0.25; 1.7.x is not patched.
CVSS v3.1
Score 8.0high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Grav CMS versions 2.0.0 through 2.0.24 (and 1.7.x with content Twig enabled) render user-authored page content through a Twig sandbox that allowlists the get_cookie() function. This function returns any cookie sent with the current request, including session cookies, which are read server-side bypassing HttpOnly, Secure, and SameSite protections. The rendered output is cached keyed only by page identity and configuration checksum, without session or user context. Consequently, a page published by a user with page-write permission can capture the session cookie of an administrator who views the page next. This cached output is then served to unauthenticated visitors, who can replay the captured cookie to authenticate as that administrator. Since version 2.0.19, content Twig processing is enabled by default on all pages without frontmatter or operator action. The vulnerability is fixed in Grav version 2.0.25; the 1.7.x branch is outside the backport scope.
Potential Impact
An attacker with page-write permission can craft page content that captures the session cookie of an administrator viewing the page. This session cookie is cached and subsequently served to unauthenticated visitors, enabling them to replay the cookie and gain administrator-level access. This results in full confidentiality, integrity, and availability compromise of the Grav CMS instance. The vulnerability has a high CVSS score of 8.0, reflecting its potential for remote exploitation with low attack complexity and high impact.
Mitigation Recommendations
A fixed version, Grav 2.0.25, is available and should be applied to remediate this vulnerability. The 1.7.x branch is not patched for this issue. Until upgrading, avoid enabling content Twig processing for user-authored pages or restrict page-write permissions to fully trusted users. Review and disable the allowlisted get_cookie() function in Twig sandbox if possible. No other vendor advisories indicate alternative mitigations.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-jcv9-gfgx-wjw4
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-100671"]
- Database Specific Severity
- HIGH
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6ab89be0f7a7c54106942052
Added to database: 09/27/2026, 04:30:24 UTC
Last enriched: 09/27/2026, 04:42:57 UTC
Last updated: 09/27/2026, 05:47:33 UTC
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.