Handlebars version 4.7.6 represents a minor update over version 4.7.5, primarily impacting the package's internal tooling and dependency management. While the core templating engine likely remains consistent, developers should be aware of changes in the listed dependencies.
Crucially, yargs dependency has been replaced with minimist and wordwrap and this might affect any tooling leveraging Handlebars that relied on yargs. The main benefit regards a more granular dependencies management and possibly smaller package size. Both versions share a substantial set of devDependencies for testing, linting, and building, suggesting a strong emphasis on code quality and maintainability. This comprehensive suite includes tools like ESLint, Prettier, Mocha, and Grunt, ensuring that the library adheres to coding standards and undergoes thorough testing.
The inclusion of uglify-js as both a dependency and an optional dependency suggests its critical role in minimizing the library's footprint for production environments, improving load times in web applications. While the core API is unlikely to be significantly altered between these minor versions, developers are advised to review the changelog for specific bug fixes or performance enhancements. The updated release date and dist information indicate that version 4.7.6 incorporates the latest build and packaging optimizations.
All the vulnerabilities related to the version 4.7.6 of the package
Prototype Pollution in handlebars
The package handlebars before 4.7.7 are vulnerable to Prototype Pollution when selecting certain compiling options to compile templates coming from an untrusted source.
Remote code execution in handlebars when compiling templates
The package handlebars before 4.7.7 are vulnerable to Remote Code Execution (RCE) when selecting certain compiling options to compile templates coming from an untrusted source.