CVE-2026-104849

Updated on 02 Oct 2026

Severity

9.5 Critical severity

Details

CVSS score
9.5
CVSS 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

Overview

About vulnerability

tinypool is a fork of piscina and inherited the same prototype-pollution surface. When pool.run(task, options) is called, the filename option is read from the provided options object. If that object does not have an own filename property, the lookup falls through to Object.prototype.

An attacker who can pollute Object.prototype.filename (for example, via a vulnerable lodash.merge, qs.parse, or similar elsewhere in the application) can make tinypool load and execute an attacker-controlled worker module.

This is the tinypool counterpart to the piscina root discovery [GHSA-x9g3-xrwr-cwfg](https://github.com/piscinajs/piscina/security/advisories/GHSA-x9g3-xrwr-cwfg).

pool.run(task) with no second argument is not affected, because kDefaultOptions.filename is null and the options object is not user-controlled. The exploit only triggers when the caller passes their own options object to pool.run().

Impact

Arbitrary JavaScript execution in the worker pool. If the application passes attacker-controlled data as the run() task and also supplies a run() options object, the attacker can redirect execution to a malicious worker that exfiltrates or modifies that data, achieving remote code execution and/or data exfiltration.

Proof of Concept

// legitimate-worker.mjs
export default async (task) => ({ by: 'legitimate-worker', processed: task })

// malicious-worker.mjs
export default async (task) => ({ by: 'attacker', stolenRequestBody: task })

// main.js
import express from "express";
import Tinypool from "tinypool";
import { fileURLToPath } from "node:url";
import path from "node:path";

const __dirname = path.dirname(fileURLToPath(import.meta.url));

// Simulate upstream prototype pollution (lodash merge, qs parse, etc.)
Object.prototype.filename = path.join(__dirname, "malicious-worker.mjs");

const pool = new Tinypool({
filename: path.join(__dirname, "legitimate-worker.mjs"),
});

express()
.use(express.json())
.post("/", async (req, res) => {
const ac = new AbortController();
const result = await pool.run(req.body, { signal: ac.signal });
res.json(result);
})
.listen(31337);

Suggested fix

Read all user-supplied options from own properties only (Object.hasOwn or Object.prototype.hasOwnProperty.call) and build the internal ThreadPool.options object with a null prototype.

Details

Affected product:
appium , create-octane , create-rspack , create-rspeedy , docsearch , docusaurus , docusaurus-core , docusaurus-plugin-content-blog , docusaurus-plugin-content-docs , docusaurus-plugin-content-pages , docusaurus-plugin-css-cascade-layers , docusaurus-plugin-debug , docusaurus-plugin-google-analytics , docusaurus-plugin-google-gtag , docusaurus-plugin-google-tag-manager , docusaurus-plugin-sitemap , docusaurus-plugin-svgr , docusaurus-preset-classic , docusaurus-search-local , docusaurus-theme-classic , docusaurus-theme-common , docusaurus-theme-mermaid , docusaurus-theme-search-algolia , effect-sql-sqlite-do , effect-vitest , forge , hotkeys , livestore , livestore-adapter-cloudflare , livestore-adapter-web , livestore-common , livestore-common-cf , livestore-framework-toolkit , livestore-livestore , livestore-react , livestore-sqlite-wasm , livestore-sync-cf , livestore-sync-electric , livestore-utils , livestore-utils-dev , livestore-webmesh , lynx-js-rspeedy , lynx-js-web-constants , lynx-js-web-core , lynx-js-web-worker-rpc , lynx-js-web-worker-runtime , lynx-stack , metamask-core , modern-js-plugin-polyfill , modern-js-tsconfig , modern.js , octane , octanejs-adapter-cloudflare , octanejs-adapter-vercel , octanejs-alien-signals , octanejs-animejs , octanejs-apollo-client , octanejs-app-core , octanejs-aria , octanejs-astro , octanejs-auto-animate , octanejs-base-ui , octanejs-better-auth , octanejs-calendar , octanejs-cmdk , octanejs-colorful , octanejs-content-loader , octanejs-day-picker , octanejs-devtools , octanejs-dexie , octanejs-dnd-kit , octanejs-docusaurus , octanejs-draggable , octanejs-drei , octanejs-dropzone , octanejs-electron , octanejs-email , octanejs-embla-carousel , octanejs-floating-ui , octanejs-formisch , octanejs-gsap , octanejs-hook-form , octanejs-html-react-parser , octanejs-i18next , octanejs-image-crop , octanejs-inertia , octanejs-ink , octanejs-input-otp , octanejs-intersection-observer , octanejs-jotai , octanejs-lexical , octanejs-livestore , octanejs-lucide , octanejs-mantine-hooks , octanejs-markdown , octanejs-mdx , octanejs-mobx , octanejs-monaco-editor , octanejs-motion , octanejs-nuqs , octanejs-octane-is , octanejs-opentui , octanejs-pdf , octanejs-phosphor-icons , octanejs-popper , octanejs-portabletext , octanejs-radix , octanejs-rainbowkit , octanejs-react-error-boundary , octanejs-react-map-gl , octanejs-recharts , octanejs-redux , octanejs-redux-toolkit , octanejs-remix-router , octanejs-resizable-panels , octanejs-rsbuild-plugin , octanejs-rspack-plugin , octanejs-rxjs , octanejs-sanity-icons , octanejs-sanity-loader , octanejs-sanity-logos , octanejs-select , octanejs-seo , octanejs-shadcn , octanejs-solana-kit , octanejs-sonner , octanejs-spring , octanejs-stick-to-bottom , octanejs-streamdown , octanejs-styled-components , octanejs-stylex , octanejs-swr , octanejs-syntax-highlighter , octanejs-tanstack-ai , octanejs-tanstack-db , octanejs-tanstack-devtools , octanejs-tanstack-form , octanejs-tanstack-hotkeys , octanejs-tanstack-pacer , octanejs-tanstack-query , octanejs-tanstack-router , octanejs-tanstack-router-ssr-query , octanejs-tanstack-start , octanejs-tanstack-store , octanejs-tanstack-table , octanejs-tanstack-virtual , octanejs-tauri , octanejs-testing-library , octanejs-textarea-autosize , octanejs-thinking-orbs , octanejs-three , octanejs-tiptap , octanejs-to-print , octanejs-transition-group , octanejs-usehooks-ts , octanejs-valtio , octanejs-vaul , octanejs-visx , octanejs-vite-plugin , octanejs-wagmi , octanejs-waypoint , octanejs-window , octanejs-wouter , octanejs-xstate , octanejs-xstate-store , octanejs-xyflow , octanejs-zag , octanejs-zustand , oxc , oxc-tsrx , oxfmt , oxfmt-binding-linux-riscv64-musl , rsbuild-core , rsbuild-plugin-check-syntax , rsbuild-plugin-css-minimizer , rsdoctor-core , rsdoctor-rspack-plugin , rspack , rspack-binding , rspack-cli , rspack-test-tools , tanstack-ai-octane , tanstack-angular-hotkeys-devtools , tanstack-octane-hotkeys , tanstack-octane-pacer , tanstack-octane-store , tinypool , tsrx-oxc , upgrade-rspeedy , vite-plus , vitest , vitest-browser , vitest-coverage-istanbul , vitest-coverage-v8 , vitest-expect , vitest-mocker , vitest-pretty-format , vitest-runner , vitest-snapshot , vitest-spy , vitest-ui , vitest-utils , vitest-web-worker , vitest-ws-client , voidzero-dev-vite-plus-darwin-arm64 , zbsearch , zbsearch-docs-index , zbsearch-edge-core , zbsearch-edge-index-builder , zbsearch-highlight , zbsearch-plugin-data-persistence , zbsearch-plugin-docusaurus , zbsearch-plugin-embeddings , zbsearch-plugin-match-highlight , zbsearch-plugin-parsedoc , zbsearch-plugin-pt15 , zbsearch-plugin-qps , zbsearch-plugin-starlight , zbsearch-plugin-vitepress , zbsearch-runtime-cloudflare , zbsearch-searchbox-core , zbsearch-searchbox-react , zbsearch-searchbox-vue , zbsearch-static , zbsearch-stemmers , zbsearch-stopwords , zbsearch-tokenizers
Affected packages:
@octanejs/streamdown @ 0.1.34 (+1178 more)

Fixes