GHSA-63rq-p8fp-524q: Sopel modules.weather Potential API Key Leak Vulnerability
MODERATEGHSA-63rq-p8fp-524q is a MODERATE potential api key leak vulnerability (CWE-200: Exposure of Sensitive Information to an Unauthorized Actor) affecting Sopel modules.weather libraries in the PyPI ecosystem. The issue involves potential api key leak. Remediation is available by upgrading affected packages to version 1.2.4.
GHSA-63rq-p8fp-524q at a Glance
How to Fix GHSA-63rq-p8fp-524q
To remediate this vulnerability, upgrade all affected Sopel modules.weather 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 sopel-modules.weather>=1.2.4
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show sopel-modules.weather
How to Check if You Are Affected
To determine whether your Python environment is affected by GHSA-63rq-p8fp-524q, inspect your installed packages using pip:
pip show sopel-modules.weather
Analyze the terminal output to locate any version of Sopel modules.weather in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.2.4), your application is affected.
Note: The pip show sopel-modules.weather command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor, where the product exposes sensitive information to an actor that is not explicitly authorized to have access to that information. In Sopel modules.weather, 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
GHSA-63rq-p8fp-524q Affected Sopel modules.weather Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
sopel-modules.weather
|
PyPI |
< 1.2.4
|
1.2.4
|
References
Frequently Asked Questions
What is GHSA-63rq-p8fp-524q?
Which Sopel modules.weather versions are affected?
What version fixes GHSA-63rq-p8fp-524q?
Is sopel-modules.weather affected?
What CWE is associated with GHSA-63rq-p8fp-524q?
How can I check PyPI dependencies for GHSA-63rq-p8fp-524q?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-63rq-p8fp-524q",
"modified" : "2021-04-12T18:44:12Z",
"published" : "2021-04-13T15:12:06Z",
"aliases" : [ ],
"summary" : "Potential API key leak",
"details" : "If a user is actively blackholing the location or weather APIs, or those APIs become otherwise unavailable, it is possible for the API keys to get leaked to the active IRC channel.\n\nThis is patched in v1.2.4",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "sopel-modules.weather"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.2.4"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/sopel-irc/sopel-weather/security/advisories/GHSA-63rq-p8fp-524q"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-200" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2021-04-12T18:44:12Z",
"nvd_published_at" : null
}
}