Vulnerabilities in pkg:pypi/Glances

PACKAGE
Advisory Identifier: GHSA-gfc2-9qmw-w7vh
Advisory Summary

CVE-2026-34839 is a HIGH (CVSS 6.5) cross-origin information disclosure vulnerability (CWE-942: Permissive Cross-domain Security Policy with Untrusted Domains) affecting Glances libraries in the PyPI ecosystem. The issue involves cross-origin information disclosure via unauthenticated rest api (/api/4) due to permissive cors. Remediation is available by upgrading affected packages to version 4.5.4.

14 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:pypi/Glances

14 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:pypi/Glances. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-gfc2-9qmw-w7vh CVE-2026-34839 HIGH Glances: Cross-Origin Information Disclosure via Unauthenticated REST API (/api/4) due to Permissive CORS
GHSA-7p93-6934-f4q7 CVE-2026-33533 HIGH Glances Vulnerable to Cross-Origin System Information Disclosure via XML-RPC Server CORS Wildcard
GHSA-qhj7-v7h7-q4c7 CVE-2026-33641 HIGH Glances Vulnerable to Command Injection via Dynamic Configuration Values
GHSA-cvwp-r2g2-j824 CVE-2026-32609 HIGH Glances has Incomplete Secrets Redaction: /api/v4/args Endpoint Leaks Password Hash and SNMP Credentials
GHSA-vcv2-q258-wrg7 CVE-2026-32608 HIGH Glances has a Command Injection via Process Names in Action Command Templates
GHSA-wvxv-4j8q-4wjq CVE-2026-32596 HIGH Glances exposes the REST API without authentication
GHSA-vx5f-957p-qpvm CVE-2026-32634 HIGH Glances Central Browser Autodiscovery Leaks Reusable Credentials to Zeroconf-Spoofed Servers
GHSA-r297-p3v4-wp8m CVE-2026-32633 CRITICAL Glances's Browser API Exposes Reusable Downstream Credentials via `/api/4/serverslist`
GHSA-hhcg-r27j-fhv9 CVE-2026-32632 MODERATE Glances's REST/WebUI Lacks Host Validation and Remains Exposed to DNS Rebinding
GHSA-49g7-2ww7-3vf5 CVE-2026-32611 HIGH Glances has a SQL Injection in DuckDB Export via Unparameterized DDL Statements
GHSA-9jfm-9rc6-2hfq CVE-2026-32610 HIGH Glances's Default CORS Configuration Allows Cross-Origin Credential Theft
GHSA-x46r-mf5g-xpr6 CVE-2026-30930 HIGH Glances has SQL Injection via Process Names in TimescaleDB Export
GHSA-gh4x-f7cq-wwx6 CVE-2026-30928 HIGH Glances Exposes Unauthenticated Configuration Secrets
GHSA-r2mj-8wgq-73m6 CVE-2021-23418 MODERATE XML External Entity Reference in Glances

CVE-2026-34839 at a Glance

CVE Identifier CVE-2026-34839
GHSA Identifier GHSA-gfc2-9qmw-w7vh
Severity HIGH
CVSS v3.1 Base Score 6.5
CWE Classification CWE-942: Permissive Cross-domain Security Policy with Untrusted Domains
Affected Product Glances
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 6.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2026-34839

To remediate this vulnerability, upgrade all affected Glances dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

Glances fixed: 4.5.4
pip install Glances>=4.5.4
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show Glances

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2026-34839, inspect your installed packages using pip:

pip show Glances

Analyze the terminal output to locate any version of Glances in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.5.4), your application is affected.

Note: The pip show Glances command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-942: Permissive Cross-domain Security Policy with Untrusted Domains, where the product uses a web-client protection mechanism such as a content security policy (csp) or cross-domain policy file, but the policy includes untrusted domains with which the web client is allowed to communicate. In Glances, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Summary The Glances web server exposes a REST API (`/api/4/*`) that is accessible without authentication and allows cross-origin requests from any origin due to a permissive CORS policy (`Access-Control-Allow-Origin: *`). This allows a malicious website to read sensitive system information from a running Glances instance in the victim’s browser, leading to cross-origin data exfiltration. While a previous advisory exists for XML-RPC CORS issues, this report demonstrates that the REST API (`/api/4/*`) is also affected and exposes significantly more sensitive data. ### Details When Glances is started in web mode (e.g., `glances -w -B 0.0.0.0`), it exposes a REST API endpoint at: http://<host>:61208/api/4/all The server responds with: Access-Control-Allow-Origin: * This allows any origin to perform cross-origin requests and read responses. The `/api/4/all` endpoint returns extensive system information, including: - Process list (`processlist`) - System details (hostname, OS, CPU info) - Memory and disk usage - Network interfaces and IP address - Running services and metrics Because no authentication is required by default, this data is accessible to any web page. ### PoC 1. Start Glances: glances -w -B 0.0.0.0 2. Create a malicious HTML file: ``` <!DOCTYPE html> <html> <body> <script> fetch("http://<victim-ip>:61208/api/4/all") .then(r => r.json()) .then(data => { console.log("DATA:", data); }); </script> </body> </html> ``` 2. Open the file in a browser while Glances is running. 3. Observe that the browser successfully retrieves sensitive system information from the API. This works cross-origin (e.g., from file:// or attacker-controlled domains). ### Impact A remote attacker can host a malicious website that, when visited by a victim running Glances, can: - Read sensitive system information - Enumerate running processes - Identify network configuration and IP addresses - Fingerprint the host system This requires no authentication and no user interaction beyond visiting a web page. This represents a cross-origin information disclosure vulnerability and can aid further attacks such as reconnaissance or targeted exploitation.

CVE-2026-34839 Affected Glances Versions

1 component(s)
Fixed Versions:
4.5.4
Product / Package Ecosystem Affected Versions Fixed Version
Glances
PyPI
< 4.5.4
4.5.4

References

Frequently Asked Questions

What is CVE-2026-34839?
CVE-2026-34839 is a security vulnerability in Glances involving Cross-Origin Information Disclosure via Unauthenticated REST API (/api/4) due to Permissive CORS under CWE-942: Permissive Cross-domain Security Policy with Untrusted Domains.
Which Glances versions are affected?
Affected versions include releases prior to 4.5.4 across affected packages: Glances.
What version fixes CVE-2026-34839?
Upgrading to 4.5.4 (or the latest patched release for your respective branch) resolves the vulnerability.
Is Glances affected?
Yes, Glances is affected in releases prior to 4.5.4. Upgrade your dependency to 4.5.4 or later.
What is the CVSS score of CVE-2026-34839?
CVE-2026-34839 has a CVSS v3.1 base score of 6.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2026-34839?
CVE-2026-34839 is classified under CWE-942: Permissive Cross-domain Security Policy with Untrusted Domains (The product uses a web-client protection mechanism such as a Content Security Policy (CSP) or cross-domain policy file, but the policy includes untrusted domains with which the web client is allowed to communicate.).
How can I check PyPI dependencies for CVE-2026-34839?
Run the dependency tree command: 'pip show Glances'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-gfc2-9qmw-w7vh",
  "modified" : "2026-05-04T20:08:23Z",
  "published" : "2026-04-21T15:14:40Z",
  "aliases" : [ "CVE-2026-34839" ],
  "summary" : "Glances: Cross-Origin Information Disclosure via Unauthenticated REST API (/api/4) due to Permissive CORS",
  "details" : "### Summary\nThe Glances web server exposes a REST API (`/api/4/*`) that is accessible without authentication and allows cross-origin requests from any origin due to a permissive CORS policy (`Access-Control-Allow-Origin: *`).\n\nThis allows a malicious website to read sensitive system information from a running Glances instance in the victim’s browser, leading to cross-origin data exfiltration.\n\nWhile a previous advisory exists for XML-RPC CORS issues, this report demonstrates that the REST API (`/api/4/*`) is also affected and exposes significantly more sensitive data.\n\n### Details\nWhen Glances is started in web mode (e.g., `glances -w -B 0.0.0.0`), it exposes a REST API endpoint at:\nhttp://<host>:61208/api/4/all\nThe server responds with:\nAccess-Control-Allow-Origin: *\n\nThis allows any origin to perform cross-origin requests and read responses.\n\nThe `/api/4/all` endpoint returns extensive system information, including:\n- Process list (`processlist`)\n- System details (hostname, OS, CPU info)\n- Memory and disk usage\n- Network interfaces and IP address\n- Running services and metrics\nBecause no authentication is required by default, this data is accessible to any web page.\n\n### PoC\n1. Start Glances:\nglances -w -B 0.0.0.0\n\n2. Create a malicious HTML file:\n\n```\n<!DOCTYPE html>\n<html>\n<body>\n<script>\nfetch(\"http://<victim-ip>:61208/api/4/all\")\n  .then(r => r.json())\n  .then(data => {\n    console.log(\"DATA:\", data);\n  });\n</script>\n</body>\n</html>\n```\n2. Open the file in a browser while Glances is running.\n3. Observe that the browser successfully retrieves sensitive system information from the API.\nThis works cross-origin (e.g., from file:// or attacker-controlled domains).\n\n### Impact\nA remote attacker can host a malicious website that, when visited by a victim running Glances, can:\n\n- Read sensitive system information\n- Enumerate running processes\n- Identify network configuration and IP addresses\n- Fingerprint the host system\n\nThis requires no authentication and no user interaction beyond visiting a web page. This represents a cross-origin information disclosure vulnerability and can aid further attacks such as reconnaissance or targeted exploitation.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "Glances"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "4.5.4"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/nicolargo/glances/security/advisories/GHSA-gfc2-9qmw-w7vh"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-34839"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/nicolargo/glances/commit/fdfb977b1d91b5e410bc06c4e19f8bedb0005ce9"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/nicolargo/glances"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-200", "CWE-306", "CWE-942" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-04-21T15:14:40Z",
    "nvd_published_at" : "2026-04-21T00:16:27Z"
  }
}