Skip to main content

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)

0
High
Published: 09/26/2026 (09/26/2026, 15:31:19 UTC)
Source: GCVE Database

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

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

Affected software

GitHub Actionsmore threats →ai
getgrav/grav
pkg:github/getgrav/grav
Affected versions
<2.0.25

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/27/2026, 04:42:57 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses