CVE-2026-104848

Tinypool: Prototype Pollution gadget in worker options leads to Remote Code Execution

Published Oct 2, 2026 CVSS 4.0 · 9.5 Critical EPSS < 1% KEV · Not listed
Description
Tinypool is a minimal Node.js worker thread pool implementation. Prior to 2.1.1, Tinypool constructs ThreadPool.options from a normal options object and reads the execArgv and env worker options in dist/index.js, allowing values inherited from a polluted Object.prototype to be copied into own properties and passed to worker_threads.Worker. An attacker who can first pollute either property can cause each newly spawned worker to load attacker-selected JavaScript through command-line preload arguments or NODE_OPTIONS, resulting in code execution with the host process's privileges and possible access to CI secrets, signing material, or build artifacts. This issue is fixed in version 2.1.1.

Analysis

AI-generated

Technical impact

Tinypool constructs thread pool options by copying values from a standard options object before passing them to the Node.js worker_threads.Worker constructor. When this copying is performed without protecting against Object.prototype pollution, an attacker who can inject properties onto Object.prototype can cause malicious execArgv or env values to be copied into the worker options. The attacker can then specify arbitrary JavaScript code to preload via command‑line arguments or NODE_OPTIONS, resulting in execution with the host process’s privileges. This prototype‑pollution flaw directly enables remote code execution.

Affected Systems

The vulnerability affects the tinylibs Tinypool library, specifically all versions prior to 2.1.1. Systems using tinypool 2.1.0 or earlier, regardless of platform, are vulnerable.

Risk and Exploitability

The CVSS score of 9.5 indicates critical severity, and the EPSS score of 0.00497 indicates a very low probability of exploitation. Despite this low EPSS, the flaw’s nature and impact warrant treating it as high risk, especially because it can execute arbitrary code in the host process. The vulnerability is not listed in the CISA KEV catalog, but its potential to grant full process privileges means it is a serious concern. Attackers would need to influence Object.prototype in the Node.js process that uses tinypool, typically via user‑controlled input or unsanitized data paths, to trigger code execution in the host process.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade tinypool to version 2.1.1 or later.
  • If upgrading immediately is not possible, validate and sanitize all worker options to ensure that no Object.prototype properties are copied into the options object before passing to Worker.
  • Run the application with the minimal required privileges and isolate worker threads in a restricted environment to reduce the impact should a prototype pollution attempt succeed.

Generated by OpenCVE AI on October 8, 2026 at 14:21 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-5gmw-xhrv-c9v3 Tinypool: Prototype Pollution gadget in worker options leads to Remote Code Execution
History
Type Values Removed Values Added
Weaknesses CWE-915
References
Metrics threat_severity

None

cvssV3_1

{'score': 8.1, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H'}

threat_severity

Important

Type Values Removed Values Added
First Time appeared Tinylibs
Tinylibs tinypool
Vendors & Products Tinylibs
Tinylibs tinypool
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description Tinypool is a minimal Node.js worker thread pool implementation. Prior to 2.1.1, Tinypool constructs ThreadPool.options from a normal options object and reads the execArgv and env worker options in dist/index.js, allowing values inherited from a polluted Object.prototype to be copied into own properties and passed to worker_threads.Worker. An attacker who can first pollute either property can cause each newly spawned worker to load attacker-selected JavaScript through command-line preload arguments or NODE_OPTIONS, resulting in code execution with the host process's privileges and possible access to CI secrets, signing material, or build artifacts. This issue is fixed in version 2.1.1.
Title Tinypool: Prototype Pollution gadget in worker options leads to Remote Code Execution
Weaknesses CWE-1321
References
Metrics cvssV4_0

{'score': 9.5, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H'}

Weaknesses
  • CWE-1321

    Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')

  • CWE-915

    Improperly Controlled Modification of Dynamically-Determined Object Attributes

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Oct 2, 2026, 5:29 PM
Reserved
Oct 2, 2026, 2:38 PM
Status
Deferred
Published
Oct 2, 2026, 5:17 PM
Modified
Oct 2, 2026, 6:33 PM
Severity
Important
Public date
Oct 2, 2026, 4:15 PM