Skip to content
OpenAdvisories

Description

piscina is a node.js worker pool implementation. Prior to 6.0.0-rc.2, 5.2.0, and 4.9.3, piscina's constructor and run() paths read the filename option via plain member access. Both reads fall through the prototype chain when the caller's options object doesn't have filename as an own property. When Object.prototype.filename is polluted upstream the inherited value flows to worker_threads.Worker import and the attacker's .mjs runs in the worker. This vulnerability is fixed in 6.0.0-rc.2, 5.2.0, and 4.9.3.

Affected products

VendorProductAffectedFixed
piscinajs piscina < 4.9.3, >= 5.0.0-alpha.0, < 5.2.0, >= 6.0.0-rc.1, < 6.0.0-rc.2 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling katib-earlystopping +8 0.19.0-r31 —
Wolfi rolling katib-suggestion-goptuna-compat 0.19.0-r40 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm piscina >= 5.0.0-alpha.0, < 5.2.0 5.2.0 GHSA-x9g3-xrwr-cwfg
npm piscina < 4.9.3 4.9.3 GHSA-x9g3-xrwr-cwfg
npm piscina >= 6.0.0-rc.1, < 6.0.0-rc.2 6.0.0-rc.2 GHSA-x9g3-xrwr-cwfg

References