CVE-2026-22251: Configparser Unscoped Global Key

Fetching an API key from a global or unscoped configuration section could leak credentials if the target server URL changes dynamically. Ensure that API credentials are tied directly to their respective endpoint URLs to prevent accidental credential leakage.

Provally CuratedPublic repositoryMediumMedium confidenceVerifiedApache-2.0Python
greprules fetch cve-2026-22251-configparser-unscoped-global-key --engine opengrep

Description

Fetching an API key from a global or unscoped configuration section could leak credentials if the target server URL changes dynamically. Ensure that API credentials are tied directly to their respective endpoint URLs to prevent accidental credential leakage.