Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-86535 Overview
CVE-2026-86535 affects the Apache Thrift NodeJS bindings when using TJSONProtocol. The vulnerability combines two weaknesses: an infinite loop condition [CWE-835] and prototype pollution of JavaScript object attributes. Remote attackers can send crafted JSON payloads that cause the Thrift NodeJS parser to enter an unreachable exit condition, exhausting CPU resources on the service. The flaw affects all Apache Thrift releases prior to version 0.25.0. The Apache Thrift project released 0.25.0 to address the issue.
Critical Impact
Unauthenticated network attackers can trigger a denial-of-service condition against any NodeJS service that deserializes untrusted Thrift messages with TJSONProtocol.
Affected Products
- Apache Thrift NodeJS bindings prior to 0.25.0
- Services using TJSONProtocol for message serialization
- Any NodeJS application exposing Thrift endpoints to untrusted input
Discovery Timeline
- 2026-10-02 - CVE-2026-86535 published to the National Vulnerability Database (NVD)
- 2026-10-02 - Last updated in NVD database
Technical Details for CVE-2026-86535
Vulnerability Analysis
The vulnerability resides in the Apache Thrift NodeJS implementation of the JSON transport protocol, TJSONProtocol. Thrift is a cross-language framework for defining and serializing data types and services. The NodeJS bindings expose a parser that reads JSON-encoded Thrift messages from clients. A specifically crafted payload drives the parser into a loop whose exit condition is never satisfied. The parser consumes CPU indefinitely while handling the single request. Concurrent requests compound the resource exhaustion and lead to full service unavailability.
The advisory also identifies prototype pollution in the same code path. Attacker-controlled keys modify properties on Object.prototype, which affects every object in the NodeJS runtime. This secondary condition can alter application logic, bypass access checks, or set the stage for further exploitation chained with other defects.
Root Cause
The root cause is improper validation of input during JSON deserialization in TJSONProtocol. The parser lacks a bounded termination condition when processing malformed structures, which is classified as [CWE-835] Loop with Unreachable Exit Condition. The second root cause is unsafe assignment of object properties from parsed JSON keys without filtering reserved names such as __proto__ or constructor.
Attack Vector
The attack vector is network-based and requires no authentication or user interaction. An attacker sends a crafted Thrift JSON message to any endpoint that deserializes input using the vulnerable NodeJS bindings. The server-side parser hangs on the malformed payload, pinning a CPU core. Repeated requests exhaust process threads and deny service to legitimate clients. See the Apache Mailing List Thread for the project announcement.
Detection Methods for CVE-2026-86535
Indicators of Compromise
- Sustained 100% CPU utilization on NodeJS processes handling Thrift traffic
- Unresponsive Thrift service endpoints with no corresponding error logs
- Inbound Thrift JSON payloads containing __proto__, constructor, or prototype keys
- Elevated request latency and connection timeouts on Thrift RPC services
Detection Strategies
- Inventory NodeJS dependencies for thrift package versions below 0.25.0 using npm ls thrift
- Inspect application code for use of TJSONProtocol combined with untrusted input
- Deploy network monitoring to flag Thrift JSON messages with prototype pollution key names
- Correlate CPU spikes with inbound Thrift request bursts in observability data
Monitoring Recommendations
- Enable process-level CPU and event-loop lag metrics for NodeJS Thrift services
- Log and alert on request handlers that exceed expected deserialization durations
- Capture Thrift payload samples at the application gateway for retrospective analysis
- Track outbound property writes to Object.prototype using NodeJS runtime instrumentation
How to Mitigate CVE-2026-86535
Immediate Actions Required
- Upgrade the thrift NodeJS package to version 0.25.0 or later across all services
- Audit all exposed Thrift endpoints and restrict them to authenticated clients where feasible
- Place rate limiting and request timeouts in front of Thrift RPC services
- Validate NodeJS process health checks terminate hung workers automatically
Patch Information
The Apache Thrift project released version 0.25.0 to fix both the infinite loop and prototype pollution conditions in the NodeJS bindings. Users are directed to upgrade. Refer to the Apache Thrift announcement thread for release details.
Workarounds
- Replace TJSONProtocol with TBinaryProtocol or TCompactProtocol where client compatibility permits
- Reject Thrift messages exceeding a conservative size threshold at the ingress layer
- Filter inbound JSON payloads for reserved keys such as __proto__ and constructor
- Isolate Thrift NodeJS workers behind a reverse proxy that enforces strict request timeouts
# Upgrade the vulnerable NodeJS dependency
npm install thrift@0.25.0 --save
npm ls thrift
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

