Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. Glances
  4. ›
  5. CVE-2026-68520

CVE-2026-68520: Glances: as_dict_secure() Value-Level Bypass Leaks Credentials in URL Values via /api/4/config

August 17, 2026

Glances provides as_dict_secure() explicitly designed for unauthenticated API access, with a docstring stating it returns “a sanitised copy of the configuration dict” where “Sensitive keys in remaining sections are replaced by ‘********’”. However, the implementation only checks KEY names against a regex pattern and never inspects VALUE content. The documented [ip] config section supports public_api (URL), public_username (login), and public_password (password). While public_password is correctly masked, both public_api (when containing embedded credentials like https://user:pass@host/) and public_username are returned in full to unauthenticated users via GET /api/4/config.

References

  • github.com/advisories/GHSA-4h34-v6r8-mmjc
  • github.com/nicolargo/glances/commit/8d0f8276c2abd2e9d400bd6c84bdfba0dfcab065
  • github.com/nicolargo/glances/releases/tag/v4.5.6
  • github.com/nicolargo/glances/security/advisories/GHSA-4h34-v6r8-mmjc
  • nvd.nist.gov/vuln/detail/CVE-2026-68520

Code Behaviors & Features

Detect and mitigate CVE-2026-68520 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 4.5.6

Fixed versions

  • 4.5.6

Solution

Upgrade to version 4.5.6 or above.

Impact 5.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-200: Exposure of Sensitive Information to an Unauthorized Actor

Source file

pypi/Glances/CVE-2026-68520.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:00 +0000.