GHSA-r82c-j4mq-5xfw: Bitlyshortener Update Bitlyshortener To >=0.5.0 To Vulnerability

HIGH
CWE-601
Published
Advisory Summary

GHSA-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

CVE Identifier N/A
GHSA Identifier GHSA-r82c-j4mq-5xfw
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-601: URL Redirection to Untrusted Site ('Open Redirect')
Affected Product Bitlyshortener
Package Ecosystem PyPI
Published Date
Last Updated

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.

bitlyshortener fixed: 0.5.0
pip install bitlyshortener>=0.5.0
Verify Direct and Transitive Dependencies

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

### Impact Due 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. ### Patches Upgrading `bitlyshortener` to 0.5.0 or newer will prevent the generation of any such invalid short URLs. ### References * [Release notes](https://github.com/impredicative/bitlyshortener/releases)

GHSA-r82c-j4mq-5xfw Affected Bitlyshortener Versions

1 component(s)
Fixed Versions:
0.5.0
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?
GHSA-r82c-j4mq-5xfw is a security vulnerability in Bitlyshortener involving Update bitlyshortener to >=0.5.0 to prevent generating some invalid short URLs under CWE-601: URL Redirection to Untrusted Site ('Open Redirect').
Which Bitlyshortener versions are affected?
Affected versions include releases prior to 0.5.0 across affected packages: bitlyshortener.
What version fixes GHSA-r82c-j4mq-5xfw?
Upgrading to 0.5.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is bitlyshortener affected?
Yes, bitlyshortener is affected in releases prior to 0.5.0. Upgrade your dependency to 0.5.0 or later.
What CWE is associated with GHSA-r82c-j4mq-5xfw?
GHSA-r82c-j4mq-5xfw is classified under CWE-601: URL Redirection to Untrusted Site ('Open Redirect') (The web application accepts a user-controlled input that specifies a link to an external site, and uses that link in a redirect.).
How can I check PyPI dependencies for GHSA-r82c-j4mq-5xfw?
Run the dependency tree command: 'pip show bitlyshortener'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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
  }
}