Intel

AIKIDO-2026-462043

cbor2 is vulnerable to Uncontrolled Recursion

GHSA-ffh5-vwcq-7ccwPublished 3 days ago
November 17, 2026

65

CVE Score

Medium

Uncontrolled Recursion

Are you affected? Scan for Free

TL;DR

cbor2.loads() can produce a cyclic CBORTag, and encoding that object with cbor2.dumps() can recursively overflow the native stack and terminate the process with SIGSEGV. The issue remains reproducible in the target release according to the advisory. The supplied release diff addresses tag hashing, comparison, and representation, but does not describe an encoder-side guard.

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 pass a cyclic CBORTag produced from untrusted CBOR to cbor2.dumps().

Package

Versions

6.2.0 - 6.2.1

Fixed in 6.3.0

Background info

cbor2 is vulnerable to Uncontrolled Recursion in versions 6.2.0 - 6.2.1.

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