Painless, a streamlined test framework for both Node.js and browser environments, saw a minor version update from 0.9.1 to 0.9.2, bringing subtle yet potentially impactful changes for developers. While the core description remains consistent – offering a "super simple" testing experience – the underlying dependencies received targeted updates.
Notably, function-done was bumped from version 1.2.0 to 2.1.1, suggesting improvements or fixes within the asynchronous task completion handling. The glob dependency, responsible for file pattern matching, moved from 5.0.3 to 5.0.15, potentially addressing bug fixes or performance enhancements in file discovery. setasap saw a similar update, going from 1.0.1 to 2.0.0, which likely impacts the scheduling and execution of asynchronous operations within the framework. Finally, through got a minor update from 2.3.4 to 2.3.8, maybe including some bug fixes that impact the data streams.
These dependency updates collectively refine the framework's stability and efficiency. Developers already using Painless likely benefit from these incremental improvements without significant code changes. New users will appreciate the assurance of a more robust testing environment, benefiting from the updated versions of these utilities at the core of the package.
All the vulnerabilities related to the version 0.9.2 of the package
Prototype Pollution in minimist
Affected versions of minimist
are vulnerable to prototype pollution. Arguments are not properly sanitized, allowing an attacker to modify the prototype of Object
, causing the addition or modification of an existing property that will exist on all objects.
Parsing the argument --__proto__.y=Polluted
adds a y
property with value Polluted
to all objects. The argument --__proto__=Polluted
raises and uncaught error and crashes the application.
This is exploitable if attackers have control over the arguments being passed to minimist
.
Upgrade to versions 0.2.1, 1.2.3 or later.
Prototype Pollution in minimist
Minimist prior to 1.2.6 and 0.2.4 is vulnerable to Prototype Pollution via file index.js
, function setKey()
(lines 69-95).