Cross-Site Scripting Vulnerability in Node Connect Package (CVE-2018-3717)

node-connect Updated 02 Oct 2025

Summary

07/06/2018
N/A
Yes i
Medium
5.4

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 across 2 version ranges.

< 3.0.0-1 < 6d5dd30075d2bc4ee97afdbbe3d9d98d8d52d74b

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 Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The Node Connect package is a middleware framework for Node.js that facilitates the creation of web applications by providing a robust set of features for handling HTTP requests. It allows developers to easily manage routes, middleware, and other aspects of web server functionality. However, versions prior to 2.14.0 are susceptible to a Cross-Site Scripting (XSS) vulnerability, which can lead to security breaches if not addressed.

Vulnerability Detail

CVE-2018-3717 is a Cross-Site Scripting (XSS) vulnerability found in the Node Connect package before version 2.14.0. The vulnerability arises from insufficient validation of files in the directory.js middleware, allowing attackers to inject malicious scripts into web applications. This can lead to unauthorized access to sensitive information, session hijacking, and other malicious activities. The CVSS score for this vulnerability is 5.4, indicating a moderate level of risk.

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

If immediate updating is not feasible, consider implementing input validation and sanitization in your application to mitigate the risk of XSS attacks. This can include escaping user inputs and using libraries that help sanitize HTML content.

Conclusion

The CVE-2018-3717 vulnerability in the Node Connect package poses a significant risk due to its potential for Cross-Site Scripting attacks. It is crucial for developers using affected versions to update to the latest version to safeguard their applications. Additionally, implementing workarounds can provide temporary relief while a full update is planned.

See every vulnerability recorded for node-connect →

Share this vulnerability

FAQ

CVE-2018-3717 is a Cross-Site Scripting vulnerability in the Node Connect package that allows attackers to inject malicious scripts due to a lack of input validation.

Versions of Node Connect prior to 2.14.0 are affected by this vulnerability.

You can use the Vulert platform to monitor and alert for open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is affected without any signup.

The vulnerability can lead to unauthorized access to sensitive information, session hijacking, and other malicious activities that compromise the security of web applications.

If you cannot update the package right away, implement input validation and sanitization to mitigate the risk of XSS attacks.

Related vulnerabilities

Recent vulnerabilities recorded for node-connect.

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