CVE-2026-130746

Grav before 2.2.18 Session Hijacking via Shared-Cacheable Media Responses

Published Nov 18, 2026 CVSS 4.0 · 7.7 High EPSS n/a KEV · Not listed
Description
Grav before 1.7.53.7 and 2.x before 2.2.18 serves page media files, and rendered pages when lazy sessions are enabled, with the visitor's session cookie and a shared-cacheable Cache-Control header. When a shared cache such as Apache mod_cache stores Set-Cookie responses, an attacker can lure a user signed in through the front-end login to open a media URL with a unique query string, then request that URL to receive the cached session cookie and take over the session.

Analysis

AI-generated

Technical impact

Grav before 1.7.53.7 and 2.x before 2.2.18 returns media files and rendered pages to visitors with the visitor's session cookie and a shared‑cacheable Cache‑Control header. It is inferred that the responses also include a Set‑Cookie header because they carry a session cookie. If a shared cache such as Apache mod_cache stores these Set‑Cookie responses, an attacker can lure a logged‑in user to request a media URL with a unique query string, causing the response to be cached, and then retrieve the cached session cookie to hijack the session. This flaw is categorized as CWE‑524 and can result in unauthorized access to the victim’s authenticated session.

Affected Systems

The vulnerable software is Grav CMS from the getgrav organization. Versions prior to 1.7.53.7 and prior to 2.2.18 are affected. No specific patches are listed; institutions must check for versions 1.7.53.7 or 2.2.18 and later.

Risk and Exploitability

The CVSS score of 7.7 indicates a high severity vulnerability. EPSS data is unavailable, and the vulnerability is not in the CISA KEV catalog. The attack vector is inferred to involve a shared caching layer that stores Set‑Cookie responses, based on the description that media responses contain the visitor’s session cookie. By luring a logged‑in user to visit a crafted media URL, an attacker can cause the response to be cached and then retrieve the cached session cookie, gaining control of the victim’s session. The risk to affected systems is significant due to the vulnerability’s severity and the feasibility of the exploitation path.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Grav to version 2.2.18 or newer (or 1.7.53.7 or newer for older branches).
  • Configure the web server or caching layer to prevent caching of responses that contain a Set‑Cookie header – for example, set Cache‑Control: no‑store or disable caching for media URLs.
  • If an upgrade is not immediately possible, disable lazy sessions in Grav’s configuration to stop the CMS from sending cached Set‑Cookie responses.

Generated by OpenCVE AI on November 18, 2026 at 19:49 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Description Grav before 1.7.53.7 and 2.x before 2.2.18 serves page media files, and rendered pages when lazy sessions are enabled, with the visitor's session cookie and a shared-cacheable Cache-Control header. When a shared cache such as Apache mod_cache stores Set-Cookie responses, an attacker can lure a user signed in through the front-end login to open a media URL with a unique query string, then request that URL to receive the cached session cookie and take over the session.
Title Grav before 2.2.18 Session Hijacking via Shared-Cacheable Media Responses
First Time appeared Getgrav
Getgrav grav
Weaknesses CWE-524
CPEs cpe:2.3:a:getgrav:grav:*:*:*:*:*:*:*:*
Vendors & Products Getgrav
Getgrav grav
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 7.7, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-524

    Use of Cache Containing Sensitive Information

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 18, 2026, 11:34 AM
Reserved
Nov 17, 2026, 3:40 PM
Status
Deferred
Published
Nov 18, 2026, 12:17 PM
Modified
Nov 18, 2026, 12:17 PM