GHSA-r82c-j4mq-5xfw: Bitlyshortener Update Bitlyshortener To >=0.5.0 To Vulnerability
HIGHGHSA-r82c-j4mq-5xfw is a HIGH update bitlyshortener to >=0.5.0 to vulnerability (CWE-601: URL Redirection to Untrusted Site ('Open Redirect')) affecting Bitlyshortener libraries in the PyPI ecosystem. The issue involves update bitlyshortener to >=0.5.0 to prevent generating some invalid short urls. Remediation is available by upgrading affected packages to version 0.5.0.
GHSA-r82c-j4mq-5xfw at a Glance
How to Fix GHSA-r82c-j4mq-5xfw
To remediate this vulnerability, upgrade all affected Bitlyshortener 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 bitlyshortener>=0.5.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show bitlyshortener
How to Check if You Are Affected
To determine whether your Python environment is affected by GHSA-r82c-j4mq-5xfw, inspect your installed packages using pip:
pip show bitlyshortener
Analyze the terminal output to locate any version of Bitlyshortener in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.5.0), your application is affected.
Note: The pip show bitlyshortener command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-601: URL Redirection to Untrusted Site ('Open Redirect'), where the web application accepts a user-controlled input that specifies a link to an external site, and uses that link in a redirect. In Bitlyshortener, 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-r82c-j4mq-5xfw Affected Bitlyshortener Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
bitlyshortener
|
PyPI |
< 0.5.0
|
0.5.0
|
References
Frequently Asked Questions
What is GHSA-r82c-j4mq-5xfw?
Which Bitlyshortener versions are affected?
What version fixes GHSA-r82c-j4mq-5xfw?
Is bitlyshortener affected?
What CWE is associated with GHSA-r82c-j4mq-5xfw?
How can I check PyPI dependencies for GHSA-r82c-j4mq-5xfw?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-r82c-j4mq-5xfw",
"modified" : "2020-10-27T19:19:44Z",
"published" : "2020-10-27T19:19:56Z",
"aliases" : [ ],
"summary" : "Update bitlyshortener to >=0.5.0 to prevent generating some invalid short URLs",
"details" : "### Impact\nDue to a sudden upstream breaking change by Bitly, versions of `bitlyshortener` <0.5.0 can generate an invalid short URL when a vanity domain exists.\n\n### Patches\nUpgrading `bitlyshortener` to 0.5.0 or newer will prevent the generation of any such invalid short URLs.\n\n### References\n* [Release notes](https://github.com/impredicative/bitlyshortener/releases)",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "bitlyshortener"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.5.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/impredicative/bitlyshortener/security/advisories/GHSA-r82c-j4mq-5xfw"
}, {
"type" : "WEB",
"url" : "https://github.com/impredicative/bitlyshortener/commit/3d412feb77f3daf6f71536463734c2119a55968d"
}, {
"type" : "WEB",
"url" : "https://github.com/impredicative/bitlyshortener/releases/tag/0.5.0"
}, {
"type" : "WEB",
"url" : "https://pypi.org/project/bitlyshortener"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-601" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2020-10-27T19:19:44Z",
"nvd_published_at" : null
}
}