CVE-2017-16050: Hijacked Environment Variables in sqlite.js

sqlite.js Updated 02 Oct 2025

Summary

23/07/2018
No i
Moderate
Not published

CVE-2017-16050: sqlite.js is malware. Affects sqlite.js versions < 1.0.2. 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 Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The sqlite.js package is an npm package that provides functionality for working with SQLite databases in JavaScript. It allows developers to interact with SQLite databases using JavaScript code. However, all versions of the package have been found to contain malware that steals environment variables and sends them to attacker-controlled locations.

Vulnerability Detail

The vulnerability in sqlite.js allows an attacker to hijack environment variables and exfiltrate them to their own servers. This can lead to the compromise of sensitive information such as credentials, tokens, and other sensitive data stored in environment variables. The package has been unpublished from the npm registry to prevent further installations.

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 →

Conclusion

The sqlite.js package has been found to contain malware that steals environment variables. If you have this package installed, it is crucial to take immediate action to remove it, clear your npm cache, and review any potentially compromised credentials. For further support on vulnerability remediation, you can contact DevNack.com.

See every vulnerability recorded for sqlite.js →

Share this vulnerability

FAQ

This vulnerability allows an attacker to steal environment variables, which can lead to the compromise of sensitive information and potential unauthorized access to systems or services.

You can check if sqlite.js is installed in your environment by searching for it in your project's dependencies or by running the command npm ls sqlite.js.

The exact method of how the malware was injected into the sqlite.js package is unknown. It is important to review your package sources and ensure you are using trusted and verified packages.

No, all versions of sqlite.js have been unpublished from the npm registry. It is recommended to find an alternative package for working with SQLite databases.

If you suspect your environment has been compromised, it is recommended to perform a thorough security review, including checking for any signs of unauthorized access, reviewing logs, and regenerating any compromised credentials.

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