CVE-2018-16475: Path Traversal in knightjs

knightjs Updated 02 Oct 2025

Summary

06/11/2018
No i
High
7.5

CVE-2018-16475: Path Traversal in knightjs. Affects knightjs versions < 0.0.1. No fix is published. 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 Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

The knightjs package is an npm module used for a specific functionality. It is vulnerable to a Path Traversal attack, which allows an attacker to read the content of arbitrary files on the server due to a lack of input validation.

Vulnerability Detail

The Path Traversal vulnerability in knightjs allows an attacker to bypass file access restrictions and read sensitive files on the server. This can lead to unauthorized access to confidential information, such as configuration files, user data, or other sensitive data stored on the server. The vulnerability arises from the absence of proper input validation, allowing attackers to manipulate file paths and access files outside the intended directory.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As there is no specific workaround mentioned for this vulnerability, the best course of action is to refrain from using the knightjs module in production environments until a fix is provided.

Conclusion

The knightjs module is vulnerable to a Path Traversal attack, allowing unauthorized access to arbitrary files on the server. As there is currently no fix available, it is advised to refrain from using this module in production environments. For further support on vulnerability remediation, contact DevNack.com.

See every vulnerability recorded for knightjs →

Share this vulnerability

FAQ

This vulnerability allows an attacker to read arbitrary files on the server, potentially exposing sensitive information and compromising the security of the system.

No, there is currently no fix available for this vulnerability in the knightjs module.

Yes, this vulnerability can be exploited remotely by sending specially crafted requests to the affected server.

There are no known instances of this vulnerability being exploited at the moment.

It is recommended to avoid using the knightjs module in production environments until a fix is provided. Consider using alternative modules that do not have this vulnerability.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. 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