Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain access to request logs or Referer data
-
DeliveryLocate leaked ?token= JWT in log/proxy/CDN
-
ExploitReplay token against Grav API route
-
ExecutionAuthenticate as admin via captured token
-
ImpactCreate admin account or alter/delete content
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V4 - API and Web Service Sensitive data in POST not GET
|
| Exploitation Conditions | Exploitation requires that a valid Grav API JWT actually be transmitted in the ?token= URL query parameter (the JwtAuthenticator::extractBearerToken fallback) and that the attacker can then read it from one of the leak channels named in the advisory: web server access logs, the Referer header, browser history, or upstream proxy/CDN logs. What limits exploitation is that the attacker cannot forge a token - they must capture a genuine, unexpired admin token, so the practical prerequisite is access to a logging surface (server logs, proxy/CDN telemetry, or a third-party site receiving the Referer). Deployments that only ever send tokens in the Authorization header, or that strip query strings from logs, are not exposed even on vulnerable plugin versions. |
| Impact | The official CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:N/UI:N/VC:H) rates this 8.2 High, and the key nuance is AT:P - attack requirements are present, meaning exploitation is not a single self-contained request but depends on a valid admin token first being emitted in a URL and then captured from a log, Referer chain, proxy, or CDN the attacker can read. That preconditioned nature is why this is a real but not wormable issue: EPSS and automatable signals are not provided in the input, there is no KEV listing and no public POC, so this reads as an opportunistic credential-leakage weakness rather than a mass-exploited RCE. Note a discrepancy worth flagging: the vendor vector scores only confidentiality (VC:H, VI:N/VA:N), yet the description states a leaked token permits creating admin accounts, modifying system settings, and deleting pages - those are integrity and availability impacts, so the confidentiality-only scoring understates downstream consequences once a token is abused. Priority should be driven by whether the deployment logs query strings or sits behind logging proxies/CDNs, which is common. |
| Exploit ScenarioDerived | An admin or automation client calls a Grav API route as https://site/api/…?token=<JWT>; that full URL is recorded in the site's Nginx access log and forwarded in the Referer header and CDN logs. An attacker with read access to any of those log stores (or a shared upstream proxy) lifts the still-valid token and replays it against the API to create a new admin account or dump configuration. No public POC is identified, and success depends on the attacker being able to observe a leaked token, consistent with the AT:P attack-requirement flag. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 17, 2026
Sensitive token exposure in the Grav CMS API plugin (getgrav/grav-plugin-api) before 1.0.0-rc.16 allows attackers to hijack valid admin sessions after JWT access tokens leak from URLs. Because JwtAuthenticator::extractBearerToken accepts tokens via the ?token= query string on every API route, those tokens are written verbatim into web server access logs, Referer headers, browser history, and upstream proxy/CDN logs, and any captured token grants full admin API access. There is no public exploit identified at time of analysis and it is not listed in CISA KEV, but the CVSS 4.0 score of 8.2 reflects the high value of the leaked admin credentials.
RemediationAI
Vendor-released patch: upgrade the Grav API plugin to 1.0.0-rc.16 or later, which removes the ?token= query-parameter fallback so tokens are only accepted in the Authorization header (see GHSA-4hpj-wmpw-ghwq). Until the plugin is updated, stop passing tokens in URLs and send them exclusively via the Authorization: Bearer header from all API clients; where you cannot update immediately, block or strip the token query parameter at a reverse proxy or WAF for API routes (trade-off: any tooling that relies on URL tokens will break), and configure web servers, proxies, and CDNs to omit query strings from access logs to limit further leakage (trade-off: reduced request-debugging visibility). Because previously used tokens may already sit in historical logs, browser history, and CDN caches, rotate and revoke all existing API access tokens after patching rather than assuming the upgrade alone contains the exposure.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Grav is a flat-file PHP CMS, and its optional API plugin exposes REST-style routes protected by JWT bearer authentication. The flaw is a CWE-598 (sensitive information transmitted in a query string) issue: rather than requiring the token only in the Authorization: Bearer HTTP header, the plugin's JwtAuthenticator::extractBearerToken method falls back to reading the credential from the ?token= URL query parameter. URL query strings are one of the most commonly logged and forwarded parts of an HTTP request, so a secret placed there propagates far beyond the intended TLS-protected request/response pair. The affected package per NVD CPE is cpe:2.3:a:getgrav:grav (the grav-plugin-api component), and only the plugin's token-handling path is at fault, not the JWT signing itself.
Know when Grav gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
AC:H because a valid token must first leak into a log/Referer/proxy the attacker can read; PR:N since the captured token needs no prior privilege, and C:H/I:H reflect full admin read plus account/settings/page modification.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
The Grav API plugin (getgrav/grav-plugin-api) before 1.0.0-rc.16 accepts JWT access tokens through the ?token= URL query parameter on every API route (JwtAuthenticator::extractBearerToken fallback). Because tokens are embedded in URLs, they are logged verbatim in web server access logs, leaked via the Referer header, stored in browser history, and captured by upstream proxy and CDN logs, exposing valid admin access tokens. A leaked token grants unauthorized API access, including reading configuration and user data, creating admin accounts, modifying system settings, and deleting pages.
Executive ViewAI
Grav CMS API plugin versions before 1.0.0-rc.16 exposes administrative authentication tokens in web server logs, browser caches, and proxy records through insecure query string handling. No public exploit identified at time of analysis, though any staff member with access to logs can extract leaked tokens for full administrative API access. This represents critical risk to organizations running this plugin version.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Disable query string token parameters (?token=) on all API routes via web server configuration; (2) Enforce HTTP Authorization header-based Bearer token authentication only; (3) Restrict API access to specific IP ranges; (4) Audit web server, CDN, and proxy logs for leaked tokens or unauthorized API activity; (5) Rotate all JWT tokens and administrator API credentials; (6) Monitor official Grav plugin repository for patch release and upgrade immediately upon availability.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Related Vulnerabilities in Grav API Plugin Authorization and Credential Exposure
View all 4Server-side template injection (SSTI) in Grav (getgrav/grav) prior to 1.8.0-beta.27 allows an authenticated attacker hol
Broken access control in Grav CMS (CWE-285) before 1.8.0-beta.27 lets an authenticated editor-level user escalate their
A Remote Code Execution (RCE) vulnerability in Grav CMS v1.7.48 allows an authenticated admin to upload a malicious plug
Grav is a file-based Web platform. Rated critical severity (CVSS 9.9), this vulnerability is remotely exploitable, low a
GravCMS 1.10.7 allows unauthenticated remote attackers to write arbitrary YAML configuration files, leading to full serv
Remote code execution in Grav CMS 2.0.4 (fixed in 2.0.7) lets an authenticated user holding the admin.pages or api.pages
Remote code execution in Grav CMS before 2.0.15 allows attackers holding page-edit or blueprint-config privileges to wri
Vertical privilege escalation in Grav CMS before 2.0.14 lets a delegated administrator holding only the admin.users perm
Stored cross-site scripting in Grav CMS before 2.0.15 lets authenticated editors smuggle JavaScript event handlers past
Server-side request forgery (SSRF) in Grav CMS versions prior to 1.7.49.5 allows remote authenticated attackers to make
Grav is a file-based Web platform. Prior to 1.8.0-beta.27, Grav CMS is vulnerable to a Server-Side Template Injection (S
Remote code execution in Grav CMS before 2.0.13 allows authenticated low-privilege users to plant and execute arbitrary
EUVD-2026-45086
GHSA-cx27-6j8x-h4h6
NVD
CVE.org
EPSS
VulDB
Exploit-DB