PyPI: cbor2

SFTY-20231022-31568

Safety legacy ID: pyup.io-61961

Cbor2 5.4.0 fixes bounds checks in C decoder. https://github.com/agronholm/cbor2/pull/113

Created at: Nov 5, 2025Updated at: Nov 5, 2025

Overview

Cbor2 5.4.0 fixes bounds checks in C decoder. https://github.com/agronholm/cbor2/pull/113

Advisory

Cbor2 5.4.0 fixes bounds checks in C decoder. https://github.com/agronholm/cbor2/pull/113

Affected Package

Affecting cbor2 package, versions<5.4.0

Also affects

---

How to Fix

Upgradecbor2to5.4.0or higher.

Mitigation and Workarounds

---

Vulnerable Functions

Functions linked to known vulnerabilities.

Vulnerable function data is available for Enterprise customers

Book a call with us to see Safety in action.

Safety

Verified by Safety

Our Cybersecurity Intelligence Team reviewed this vulnerability. We combine public data with our own research to find issues not yet reported to public sources.

Learn more