Acorn version 6.0.7 is a minor update to the widely used ECMAScript parser, building upon the foundation of version 6.0.6. Both versions maintain the same MIT license and are available through the npm registry and GitHub repository. Developers familiar with Acorn will find a familiar structure and API.
While the core functionality remains consistent, a notable difference lies in the unpacked size of the package. Version 6.0.7 sees a slight reduction in unpacked size to 1,092,078 bytes, compared to 1,097,912 bytes in version 6.0.6. This space optimization hints at potential refinements in the codebase, potentially through more efficient code or resource management. While seemingly small, these changes can lead to a lower memory footprint, especially important in environments where resources are constrained.
The release date also highlights the recency of 6.0.7, released just a few days after 6.0.6 (February 4, 2019 versus January 30, 2019). This implies bug fixes or small improvements have been made in the newer version. For developers, upgrading is recommended to benefit from the latest enhancements, though in this case the changelog should be consulted to confirm if those enhancements include any relevant bug fixes. Both versions consist of 11 files. Developers leveraging Acorn for parsing JavaScript code will find either version suitable.
All the vulnerabilities related to the version 6.0.7 of the package
Regular Expression Denial of Service in Acorn
Affected versions of acorn are vulnerable to Regular Expression Denial of Service. A regex in the form of /[x-\ud800]/u causes the parser to enter an infinite loop. The string is not valid UTF16 which usually results in it being sanitized before reaching the parser. If an application processes untrusted input and passes it directly to acorn, attackers may leverage the vulnerability leading to Denial of Service.