Cross-Site Scripting Vulnerability in Node-Connect Package

node-connect Updated 02 Oct 2025

Summary

07/06/2018
N/A
Yes i
Unrated
Not published

DEBIAN-CVE-2018-3717: 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. Affects node-connect versions < 3.0.0-1. Fixed in 3.0.0-1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

Node-Connect is a middleware framework for Node.js that allows developers to create flexible and modular web applications. It provides a set of middleware functions that can be used to handle HTTP requests and responses. However, prior to version 2.14.0, Node-Connect is susceptible to a Cross-Site Scripting (XSS) vulnerability due to inadequate validation in its directory.js middleware, which can lead to security risks for applications using this package.

Vulnerability Detail

The vulnerability arises from the lack of proper validation of file inputs in the directory.js middleware of the Node-Connect package. This oversight can allow attackers to inject malicious scripts into web applications, potentially compromising user data and leading to unauthorized actions. The vulnerability is classified as a Cross-Site Scripting (XSS) issue, which can have severe implications for user security and application integrity.

How To Fix

Minimum fixed version

3.0.0-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade node-connect

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, developers can implement input validation and sanitization in their applications to mitigate the risk of XSS attacks until the package is updated. This can include escaping user inputs and using libraries that provide XSS protection.

Conclusion

The Cross-Site Scripting vulnerability in the Node-Connect package poses significant security risks for applications using this middleware. It is crucial to update to the patched version 3.0.0-1 to mitigate these risks. Additionally, developers should consider implementing workarounds to protect their applications until the update can be applied.

See every vulnerability recorded for node-connect →

Share this vulnerability

FAQ

The vulnerability is a Cross-Site Scripting (XSS) issue caused by insufficient validation of file inputs in the Node-Connect package.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

The risks include unauthorized access to user data, session hijacking, and the potential for attackers to execute malicious scripts in the context of the user's browser.

Yes, the vulnerability has been patched in version 3.0.0-1 of the Node-Connect package.

If immediate updates are not possible, implement input validation and sanitization as a temporary measure to reduce the risk of XSS attacks.

Related vulnerabilities

Recent vulnerabilities recorded for node-connect.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Minimum fixed version

3.0.0-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade node-connect

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback