CVE-2026-58656
Deferred Deferred - Pending Action

Grav API Plugin JWT Token Authentication Bypass

Vulnerability report for CVE-2026-58656, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-07-08

Last updated on: 2026-07-08

Assigner: VulnCheck

Description

Grav API plugin before v1.0.0-rc.16 accepts JWT tokens via the ?token= URL query parameter and responds with Access-Control-Allow-Origin: *, allowing unauthenticated attackers to make fully authenticated cross-origin API requests from any malicious website. Attackers who obtain a leaked JWT token from access logs, proxy logs, browser history, or Referrer headers can create persistent backdoor super-admin accounts and exfiltrate sensitive configuration and user data.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-07-08
Last Modified
2026-07-08
Generated
2026-07-08
AI Q&A
2026-07-08
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
getgrav grav_api_plugin to 1.0.0-rc.16 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-598 The web application uses the HTTP GET method to process a request and includes sensitive information in the query string of that request.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Compliance Impact

This vulnerability allows attackers to create persistent super-admin backdoor accounts and exfiltrate sensitive configuration and user data by exploiting leaked JWT tokens and permissive CORS policies.

Such unauthorized access and data exfiltration can lead to violations of data protection regulations like GDPR and HIPAA, which require strict controls over access to personal and sensitive data.

The exposure of sensitive user data and configuration information due to this vulnerability could result in non-compliance with these standards, potentially leading to legal and financial consequences.

Executive Summary

CVE-2026-58656 is a high-severity vulnerability in the Grav CMS API plugin versions before v1.0.0-rc.16. The plugin accepts JWT tokens via the URL query parameter (?token=) and responds with a permissive CORS header (Access-Control-Allow-Origin: *). This combination allows unauthenticated attackers to perform fully authenticated cross-origin API requests from any malicious website.

Attackers who obtain leaked JWT tokens from sources like access logs, proxy logs, browser history, or Referrer headers can exploit this flaw to create persistent super-admin backdoor accounts and exfiltrate sensitive configuration and user data.

The root cause is insecure token handling in the JwtAuthenticator.php file and overly permissive CORS headers that allow cross-origin responses to be read by any website.

Impact Analysis

This vulnerability can have severe impacts including unauthorized creation of persistent super-admin backdoor accounts, which grants attackers full administrative control over the Grav CMS instance.

Attackers can exfiltrate sensitive configuration and user data without needing direct server access.

Because the vulnerability allows fully authenticated cross-origin API requests from any malicious website, it significantly increases the attack surface and risk of data breaches.

Detection Guidance

Detection of this vulnerability involves identifying the presence of JWT tokens passed via the ?token= URL query parameter and checking for the Access-Control-Allow-Origin header set to * in API responses.

You can inspect network traffic or logs for URLs containing the ?token= parameter to find potential token leakage.

Additionally, checking HTTP response headers for Access-Control-Allow-Origin: * can help confirm the permissive CORS policy.

  • Use curl to check CORS headers: curl -I https://your-grav-site/api/endpoint
  • Search web server or proxy logs for URLs containing ?token= to detect leaked JWT tokens.
  • Use network monitoring tools (e.g., Wireshark or tcpdump) to capture and analyze HTTP requests with JWT tokens in query parameters.
Mitigation Strategies

Immediate mitigation steps include upgrading the Grav API plugin to version 1.0.0-rc.16 or later, where this vulnerability is fixed.

If upgrading is not immediately possible, restrict or disable the acceptance of JWT tokens via the URL query parameter (?token=) to prevent token leakage.

Also, configure the server to avoid setting Access-Control-Allow-Origin to *, instead specify trusted origins to limit cross-origin requests.

Review and rotate any potentially leaked JWT tokens to invalidate compromised credentials.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-58656. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart