Skip to main content
Vulnerability Database/CVE-2026-94646

CVE-2026-94646: Apache Thrift Node.js Vulnerability

CVE-2026-94646 is a prototype pollution vulnerability in Apache Thrift Node.js bindings that also involves uncaught exceptions and improper input validation. This post explains its impact, affected versions, and mitigation steps.

Published:

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-94646 Overview

CVE-2026-94646 affects the Apache Thrift Node.js bindings in versions before 0.25.0. The vulnerability combines three defects: an uncaught exception, improper validation of specified input quantities, and prototype pollution [CWE-248]. A remote, unauthenticated attacker can send crafted Thrift messages over the network to disrupt availability of the Node.js process. Apache published fixes in Thrift 0.25.0 and recommends immediate upgrade.

Critical Impact

Remote attackers can trigger process termination and manipulate JavaScript object prototypes without authentication or user interaction, impacting the availability of applications using Apache Thrift Node.js bindings.

Affected Products

  • Apache Thrift Node.js bindings versions prior to 0.25.0
  • Node.js applications using Apache Thrift for RPC communication
  • Downstream services exposing Thrift endpoints over the network

Discovery Timeline

  • 2026-10-02 - CVE-2026-94646 published to NVD
  • 2026-10-02 - Last updated in NVD database

Technical Details for CVE-2026-94646

Vulnerability Analysis

The flaw resides in the Apache Thrift Node.js binding deserialization logic. When processing untrusted Thrift messages, the library fails to validate quantities declared in the input against actual payload bounds. Malformed length fields cause the parser to throw an uncaught exception, terminating the Node.js event loop.

The same input path also fails to sanitize object keys during message-to-object mapping. Attackers can inject properties into Object.prototype, affecting every object in the Node.js runtime. This prototype pollution can alter application control flow, bypass security checks, or amplify the denial-of-service impact.

The CWE-248 classification captures the uncaught exception behavior, which is the primary driver of the high availability impact reflected in the CVSS v4.0 vector.

Root Cause

The root cause is missing input validation in the Thrift Node.js deserializer. Length and type fields in Thrift wire protocol frames are consumed without range or bounds checks. When unexpected values appear, the parser raises exceptions that propagate to the top of the event loop. Separately, the object construction routine assigns incoming field names directly as object properties without filtering reserved names such as __proto__, constructor, or prototype.

Attack Vector

Exploitation requires network access to a Thrift endpoint. The attacker sends a crafted Thrift message with malformed length fields or protocol-reserved property names. No authentication, user interaction, or elevated privileges are needed. A successful request crashes the Node.js worker or pollutes prototypes used by subsequent requests, which can affect every downstream handler sharing the runtime.

See the Apache Mailing List Discussion and Apache Mailing List Thread for technical details.

Detection Methods for CVE-2026-94646

Indicators of Compromise

  • Node.js process crashes or restarts coinciding with inbound Thrift traffic
  • Thrift protocol frames containing field names matching __proto__, constructor, or prototype
  • Unexpected uncaughtException entries in Node.js application logs referencing the Thrift parser
  • Anomalous property values appearing on standard JavaScript objects at runtime

Detection Strategies

  • Inspect Thrift server logs for parser exceptions and unusual deserialization errors
  • Monitor process supervisors (systemd, PM2, Kubernetes) for repeated restart events on Thrift workers
  • Deploy runtime application self-protection (RASP) rules that flag writes to Object.prototype
  • Correlate inbound network sessions on Thrift ports with service availability metrics

Monitoring Recommendations

  • Enable verbose logging on the Thrift parser to capture malformed frame events
  • Alert on process.on('uncaughtException') handlers firing in production
  • Track request latency and error rates on Thrift RPC endpoints for sudden deviations
  • Ingest Node.js and reverse-proxy logs into a centralized data lake for cross-service correlation

How to Mitigate CVE-2026-94646

Immediate Actions Required

  • Upgrade Apache Thrift Node.js bindings to version 0.25.0 or later
  • Audit all Node.js services using Thrift for exposed network listeners
  • Restrict access to Thrift ports using network segmentation and firewall rules until patching completes
  • Deploy a reverse proxy or API gateway that validates message size and structure in front of Thrift services

Patch Information

Apache Software Foundation released Thrift 0.25.0 to address CVE-2026-94646. The patch adds input validation to the Node.js deserializer and filters prototype-reserved property names during object construction. Upgrade via the package manager and redeploy affected services. Consult the Apache Mailing List Thread for release notes.

Workarounds

  • Place Thrift endpoints behind authenticated reverse proxies that drop malformed requests
  • Apply strict allowlists on Thrift message size and structure at the network boundary
  • Run Node.js workers under a supervisor that recycles crashed processes to limit downtime
  • Freeze critical object prototypes early in application startup using Object.freeze(Object.prototype)
bash
# Upgrade Apache Thrift Node.js bindings
npm install thrift@0.25.0 --save

# Verify installed version
npm list 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

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.