# GHSA-rcrv-228c-gprj: Invalid URL generation in bitlyshortener

- Severity: Medium (rating, scored by GitHub)
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2022-01-21T18:39:40.000Z
- Modified: 2024-12-04T05:42:18.698Z

## Description

### 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
* [Release notes](https://github.com/impredicative/bitlyshortener/releases)

(As written by GitHub Advisory Database.)

## Affected

- bitlyshortener (PyPI): before 0.6.0

## References

- <https://github.com/impredicative/bitlyshortener/security/advisories/GHSA-rcrv-228c-gprj> (web)
- <https://github.com/impredicative/bitlyshortener/commit/b307d70bedf745305fa0dd3c5c600d8cb88d09b5> (web)
- <https://github.com/impredicative/bitlyshortener> (package)
- <https://github.com/impredicative/bitlyshortener/releases/tag/0.6.0> (web)

## Sources

- GitHub Advisory Database: [GHSA-rcrv-228c-gprj](https://github.com/advisories/GHSA-rcrv-228c-gprj), CC-BY-4.0, modified 2024-12-04

---

Page: https://cve.day/GHSA-rcrv-228c-gprj · Whole record: https://cve.day/GHSA-rcrv-228c-gprj.json · Rebuilt by cve.day 2026-11-25T22:56:36.447Z
