Ts-jest version 23.10.3 introduces subtle but important improvements over its predecessor, 23.10.2, making it a worthwhile upgrade for developers using TypeScript with Jest. Both versions serve as preprocessors enabling seamless integration of TypeScript code within Jest testing environments, complete with source map support for easier debugging.
A key difference lies in the more specific version constraints applied to several development dependencies in version 23.10.3. While 23.10.2 often used wildcards ("*") for dev dependencies like eslint, tslint, js-yaml, fs-extra, prettier, and various @types/* packages, version 23.10.3 pins these to latest or specific versions. This provides greater stability and predictability, reducing the risk of unexpected breaking changes introduced by automatic updates to those tools, enhancing the reliability of the development workflow. For instance, semver gets more strict versioning, changing from 5.x to ^5.5.
While both versions share the same core dependencies and peer dependencies, sticking to Jest versions 22 and 23, the refined dependency management in 23.10.3 offers a more controlled and potentially less error-prone experience. Other minor changes include an increase in the distribution file count from 68 to 70 and increase of unpacked size from 213693 to 216292, which might hints at slight changes in the packaged code or assets. Ultimately, the choice between versions depends on your tolerance for risk versus the desire for the latest features in supporting development tools.
All the vulnerabilities related to the version 23.10.3 of the package
yargs-parser Vulnerable to Prototype Pollution
Affected versions of yargs-parser
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 --foo.__proto__.bar baz'
adds a bar
property with value baz
to all objects. This is only exploitable if attackers have control over the arguments being passed to yargs-parser
.
Upgrade to versions 13.1.2, 15.0.1, 18.1.1 or later.