Sass version 1.16.1 is a minor patch release following version 1.16.0, both being pure JavaScript implementations of the popular Sass stylesheet language. Developers relying on Sass for their CSS pre-processing will find both versions functionally very similar. Both versions maintain the same core dependencies, specifically utilizing chokidar in version 2.0.0 or higher for file system watching capabilities, crucial for automated compilation workflows. The license remains MIT, ensuring broad compatibility and ease of use across various project types.
The key difference between the two lies in subtle bug fixes and potential performance tweaks bundled into the 1.16.1 release. It's evident in the unpackedSize, which has a minor increase from 672490 in 1.16.0 to 672582 in 1.16.1, indicating small code adjustments. Developers upgrading from 1.16.0 might expect slightly improved stability or resolution of edge-case issues. The release date of 1.16.1 is a week after 1.16.0 suggesting a quick follow-up to resolve some issues found in the original release. As both releases share the same core dependency and functionalities, the upgrade should be seamless, but it's always recommended to run tests after updating any dependency to guarantee compatibility with the rest of a project. Using the latest patch version (1.16.1) is usually preferred to benefit from the newest fixes.
All the vulnerabilities related to the version 1.16.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.