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.
Published: 2026-08-17
Score: 6.5 Medium
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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

Mon, 17 Aug 2026 18:45:00 +0000

Type Values Removed Values Added
First Time appeared Nicolargo
Nicolargo glances
Vendors & Products Nicolargo
Nicolargo glances

Mon, 17 Aug 2026 17:15:00 +0000

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'}


Subscriptions

Nicolargo Glances
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-17T17:03:23.346Z

Reserved: 2026-07-30T16:19:08.082Z

Link: CVE-2026-68517

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-17T17:16:40.173

Modified: 2026-08-17T17:16:40.173

Link: CVE-2026-68517

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-17T18:30:04Z

Weaknesses
  • CWE-942

    Permissive Cross-domain Security Policy with Untrusted Domains