Intel

AIKIDO-2026-187352

cbor2 is vulnerable to Uncontrolled Resource Consumption

GHSA-p6xp-9h6j-r278Published 3 days ago
November 17, 2026

75

CVE Score

High

Uncontrolled Resource Consumption

Are you affected? Scan for Free

TL;DR

CBOR maps are decoded into Python dictionaries, where bignum keys can have distinct values but identical Python hash values. Inserting many colliding keys makes dictionary construction take quadratic time and can exhaust CPU resources with a comparatively small CBOR payload. Applications that decode untrusted CBOR data are affected.

How do I fix this?

Upgrade the cbor2 library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and decode untrusted CBOR data with cbor2.loads().

Package

Versions

1.0.0 - 6.1.5

Fixed in 6.2.0

Background info

cbor2 is vulnerable to Uncontrolled Resource Consumption in versions 1.0.0 - 6.1.5.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea