The npm package "proxy" provides a Node.js-based HTTP proxy server, akin to Squid, enabling developers to easily create and manage proxy functionalities within their applications. Comparing version 0.2.0 with its preceding stable version, 0.1.0, reveals a notable enhancement: the addition of the "commander" dependency. This introduces command-line interface capabilities, simplifying proxy configuration and management directly from the terminal. Both versions share core functionalities, including debug logging using the "debug" package and basic authentication parsing using "basic-auth-parser". Developers gain a simple way to manage the authentication.
Both versions are licensed under the MIT license, ensuring flexibility in usage. The package has a repository on GitHub, it means transparency. The "proxy" package is valuable for developers seeking to intercept and modify HTTP requests, cache content, or implement security policies. Version 0.2.0's inclusion of "commander" streamlines setup and control, making it particularly appealing for those who prefer command-line interactions. The package authored by Nathan Rajlich is a well-established solution and can be found with the tarball urls reported in the npm repositories. Developers who need advanced CLI tools can use proxy version 0.2.0, otherwise, the 0.1.0 is still a valid option if command line management is not required.
All the vulnerabilities related to the version 0.2.0 of the package
debug Inefficient Regular Expression Complexity vulnerability
A vulnerability classified as problematic has been found in debug-js debug up to 3.0.x. This affects the function useColors of the file src/node.js. The manipulation of the argument str leads to inefficient regular expression complexity. Upgrading to version 3.1.0 is able to address this issue. The name of the patch is c38a0166c266a679c8de012d4eaccec3f944e685. It is recommended to upgrade the affected component. The identifier VDB-217665 was assigned to this vulnerability. The patch has been backported to the 2.6.x branch in version 2.6.9.
Regular Expression Denial of Service in debug
Affected versions of debug
are vulnerable to regular expression denial of service when untrusted user input is passed into the o
formatter.
As it takes 50,000 characters to block the event loop for 2 seconds, this issue is a low severity issue.
This was later re-introduced in version v3.2.0, and then repatched in versions 3.2.7 and 4.3.1.
Version 2.x.x: Update to version 2.6.9 or later. Version 3.1.x: Update to version 3.1.0 or later. Version 3.2.x: Update to version 3.2.7 or later. Version 4.x.x: Update to version 4.3.1 or later.