Sass version 1.10.1 represents a minor update over its predecessor, 1.10.0, both being pure JavaScript implementations of the popular Sass CSS preprocessor. Developers will be pleased to find that both versions maintain the same core functionality and external dependencies, relying on chokidar for file system watching capabilities. The package license remains MIT, ensuring a permissive and open usage environment. The source code repository remains constant at the official Dart Sass GitHub.
The key difference lies in minor adjustments reflected in the dist object. Version 1.10.1 has a slightly increased unpackedSize of 688213 bytes compared to 1.10.0's 688205 bytes, indicative of small internal code optimizations or potentially minor adjustments in assets. Both share the same fileCount of 4. Furthermore, a week separates their releases, with 1.10.1 being released on July 25, 2018, following 1.10.0's release on July 18, 2018. This suggests that version 1.10.1 likely addresses minor bugs or refinements identified shortly after the initial 1.10.0 release. Although subtle, developers are advised to upgrade to the newest patch version, 1.10.1, to benefit from the most stable and refined build, especially when integrating Sass into production environments. This ensures they're working with the most up-to-date bug fixes and potential performance enhancements in this reliable JavaScript Sass compiler.
All the vulnerabilities related to the version 1.10.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.