Intel

AIKIDO-2026-10700

thrift is vulnerable to Uncontrolled Recursion

Uncontrolled RecursionCVE-2026-41636

75

High Risk

This Affects:

JSthrift
0.2.1 - 0.22.0
Fixed in 0.23.0
Are you affected? Scan for Free

TL;DR

The Node.js library exposes deserialization helpers that call skip() while advancing over unknown Thrift fields. For hostile messages, that path could recurse without an effective bound tied to untrusted structure. Processing such input could exhaust the JavaScript call stack and terminate the process handling the connection. The corrected behavior constrains that traversal so depth cannot grow without bound for attacker-controlled payloads.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

thrift is vulnerable to Uncontrolled Recursion in versions 0.2.1 - 0.22.0.

How to fix this

Upgrade the thrift library to the patch version.