CVE-2026-68517

Glances: REST API CORS Credentials Guard Uses Exact-Match Instead of Membership Test — Bypassed by Any Multi-Origin Allowlist Containing the Wildcard

Published Aug 17, 2026 CVSS 3.1 · 6.5 Medium EPSS < 1% KEV · Not listed
Description
Glances is an open-source system cross-platform monitoring tool. Prior to 4.5.6, the cors_origins guard in glances/outputs/glances_restful_api.py uses exact list equality instead of wildcard membership, allowing a multi-origin list containing the wildcard to retain cors_credentials and expose authenticated REST API data to an untrusted website visited by a previously authenticated user. This issue is fixed in 4.5.6.

Analysis

AI-generated

Technical impact

Glances uses an exact-match check for the CORS origins guard in its REST API, which allows a list that contains the wildcard '*' to be considered a valid match. The result is that the cors_credentials flag remains enabled and authenticated API data is sent to origins that are not explicitly trusted. An attacker who can host a malicious web page can thus obtain sensitive system information after a user visits that page while still authenticated to the Glances REST API. This flaw falls under the category of improper authorization checks (CWE‑942).

Affected Systems

nicolargo Glances versions earlier than 4.5.6 are affected. Upgrade to 4.5.6 or later to apply the fix.

Risk and Exploitability

The vulnerability has a CVSS score of 6.5, indicating moderate severity, while the EPSS score is not available. The issue is not listed in the CISA KEV catalog. From the description, the most likely attack vector is a user visiting a malicious web page that exploits the bypassed CORS credentials guard; the exploit requires the victim to be logged in to Glances. Because the flaw allows credential leakage, the potential impact is data exposure, but the lack of an active public exploit reduces the current threat, though the possibility remains high if attackers target systems running these vulnerable versions.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update Glances to version 4.5.6 or later.
  • If an upgrade cannot be performed immediately, remove the '*' entry from the cors_origins allowlist to eliminate wildcard membership.
  • Configure the application to disable cors_credentials or restrict it to trusted origins only.
  • Verify that no unauthenticated users can obtain the REST API token and consider adding authentication checks at the API endpoint.

Generated by OpenCVE AI on August 17, 2026 at 18:26 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-fp27-88fp-2phg Glances: REST API CORS Credentials Guard Uses Exact-Match Instead of Membership Test — Bypassed by Any Multi-Origin Allowlist Containing the Wildcard
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Nicolargo
Nicolargo glances
Vendors & Products Nicolargo
Nicolargo glances
Type Values Removed Values Added
Description Glances is an open-source system cross-platform monitoring tool. Prior to 4.5.6, the cors_origins guard in glances/outputs/glances_restful_api.py uses exact list equality instead of wildcard membership, allowing a multi-origin list containing the wildcard to retain cors_credentials and expose authenticated REST API data to an untrusted website visited by a previously authenticated user. This issue is fixed in 4.5.6.
Title Glances: REST API CORS Credentials Guard Uses Exact-Match Instead of Membership Test — Bypassed by Any Multi-Origin Allowlist Containing the Wildcard
Weaknesses CWE-942
References
Metrics cvssV3_1

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

Weaknesses
  • CWE-942

    Permissive Cross-domain Security Policy with Untrusted Domains

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Aug 18, 2026, 2:48 PM
Reserved
Jul 30, 2026, 4:19 PM
Status
Deferred
Published
Aug 17, 2026, 5:16 PM
Modified
Oct 23, 2026, 4:10 PM