# GHSA-r82c-j4mq-5xfw: Update bitlyshortener to >=0.5.0 to prevent generating some invalid short URLs

- Severity: High (rating, scored by GitHub)
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2020-10-27T19:19:56.000Z
- Modified: 2024-12-02T05:51:37.842Z
- Weaknesses: CWE-601

## Description

### 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)

(As written by GitHub Advisory Database.)

## Affected

- bitlyshortener (PyPI): before 0.5.0

## References

- <https://github.com/impredicative/bitlyshortener/security/advisories/GHSA-r82c-j4mq-5xfw> (web)
- <https://github.com/impredicative/bitlyshortener/commit/3d412feb77f3daf6f71536463734c2119a55968d> (web)
- <https://github.com/impredicative/bitlyshortener/releases/tag/0.5.0> (web)
- <https://pypi.org/project/bitlyshortener> (web)

## Sources

- GitHub Advisory Database: [GHSA-r82c-j4mq-5xfw](https://github.com/advisories/GHSA-r82c-j4mq-5xfw), CC-BY-4.0, modified 2024-12-02

---

Page: https://cve.day/GHSA-r82c-j4mq-5xfw · Whole record: https://cve.day/GHSA-r82c-j4mq-5xfw.json · Rebuilt by cve.day 2026-11-25T22:56:36.426Z
