Medium

Invalid URL generation in bitlyshortener

  • Disclosed: 21.01.2022
  • Updated: 11.10.2026 12:18

Impact

Due to a sudden upstream breaking change by Bitly, versions of bitlyshortener <0.6.0 generate invalid short URLs. All users are affected and must update immediately.

Patches

Upgrading bitlyshortener to 0.6.0 or newer will prevent the generation such invalid short URLs.

Workarounds

A workaround is to replace "https://j.mp/" in each generated short URL with "https://bit.ly/".

References

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Python (PyPI) bitlyshortener < 0.6.0 0.6.0

References

CVSS score -
Weakness (CWE)
-
Platform
Python (PyPI)
Package
bitlyshortener
Disclosed
21.01.2022
Updated
11.10.2026 12:18

Sources and licenses

OSV / GitHub Advisory Database - GHSA-rcrv-228c-gprj - CC BY 4.0

Vulnerability history: bitlyshortener

All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.

Total entries
3
First → latest
10.2020 11.2022
Without a fix
1
Exploited in attacks
0

Severity breakdown

  • High 1
  • Medium 1
  • Low 1

Disclosures per year

  1. 2020: 1
  2. 2021: 0
  3. 2022: 2
  4. 2023: 0
  5. 2024: 0
  6. 2025: 0
  7. 2026: 0
  1. Low ghsa-ggrh-grj3-vfvw <= 0.6.3 no fix
  2. Invalid URL generation in bitlyshortener this entry
    Medium ghsa-rcrv-228c-gprj < 0.6.0 0.6.0

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.