Vulnerabilities in pkg:pypi/Glances
PACKAGECVE-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.
pkg:pypi/Glances
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
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).
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.
pip install Glances>=4.5.4
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
CVE-2026-34839 Affected Glances Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
Glances
|
PyPI |
< 4.5.4
|
4.5.4
|
References
Frequently Asked Questions
What is CVE-2026-34839?
Which Glances versions are affected?
What version fixes CVE-2026-34839?
Is Glances affected?
What is the CVSS score of CVE-2026-34839?
What CWE is associated with CVE-2026-34839?
How can I check PyPI dependencies for CVE-2026-34839?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}