Sass version 1.14.1 presents a subtle yet noteworthy update over its predecessor, 1.14.0, both pure JavaScript implementations of the popular Sass language. For developers relying on Sass for their CSS preprocessing, understanding these nuances is crucial. While sharing the same core foundation, including the chokidar dependency for file system watching, MIT license, and authorship, version 1.14.1 introduces internal refinements leading to an increased unpacked size of 708398 compared to 1.14.0's 647078. This suggests potential bug fixes, performance enhancements, or minor feature additions that weren't significant enough to warrant a major or minor version bump, but still contribute to a more robust and efficient Sass experience.
The release date difference highlights a quick turnaround, with 1.14.1 arriving approximately a week after 1.14.0. This rapid iteration often indicates the swift resolution of critical issues discovered in the initial 1.14.0 release. Developers prioritizing stability and the latest bug fixes should opt for version 1.14.1. Both versions maintain consistent dependency information, assuring that the update doesn't introduce breaking changes regarding chokidar. Choosing between them boils down to weighing the potential benefits of incremental improvements against the stability of a slightly older release. Always consult the official Sass changelog for detailed information about the specific changes included in version 1.14.1 to make an informed decision that aligns with your project needs.
All the vulnerabilities related to the version 1.14.1 of the package
Uncontrolled resource consumption in braces
The NPM package braces
fails to limit the number of characters it can handle, which could lead to Memory Exhaustion. In lib/parse.js,
if a malicious user sends "imbalanced braces" as input, the parsing will enter a loop, which will cause the program to start allocating heap memory without freeing it at any moment of the loop. Eventually, the JavaScript heap limit is reached, and the program will crash.
Regular Expression Denial of Service (ReDoS) in micromatch
The NPM package micromatch
prior to version 4.0.8 is vulnerable to Regular Expression Denial of Service (ReDoS). The vulnerability occurs in micromatch.braces()
in index.js
because the pattern .*
will greedily match anything. By passing a malicious payload, the pattern matching will keep backtracking to the input while it doesn't find the closing bracket. As the input size increases, the consumption time will also increase until it causes the application to hang or slow down. There was a merged fix but further testing shows the issue persisted prior to https://github.com/micromatch/micromatch/pull/266. This issue should be mitigated by using a safe pattern that won't start backtracking the regular expression due to greedy matching.