CVE-2021-23395: Prototype Pollution in nedb

nedb Updated 02 Oct 2025

Summary

21/06/2021
No i
High
7.3

CVE-2021-23395: Prototype Pollution in nedb. Affects nedb versions < 1.8.0. 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

nedb is an npm package that provides a lightweight embedded database for Node.js applications. It is designed to be easy to use and offers a simple API for data storage and retrieval. However, all versions of nedb are vulnerable to a prototype pollution issue. This vulnerability allows an attacker to manipulate the properties of Object.prototype using a proto or constructor.prototype payload.

Vulnerability Detail

The prototype pollution vulnerability in nedb can have serious consequences. By modifying the properties of Object.prototype, an attacker can potentially alter the behavior of the entire application. This could lead to various security issues, such as remote code execution, information disclosure, or denial of service attacks. The vulnerability affects all versions of nedb up to and including 1.8.0.

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 prototype pollution vulnerability in nedb can have serious consequences for applications using this package. It is crucial to update nedb to a version that includes a fix for this vulnerability to ensure the security and integrity of the application. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for nedb →

Share this vulnerability

FAQ

Prototype pollution is a vulnerability that occurs when an attacker is able to modify the prototype of an object. By manipulating the prototype, the attacker can introduce malicious properties or modify existing ones, leading to unexpected behavior in the application.

An attacker can exploit this vulnerability by crafting a payload that manipulates the proto or constructor.prototype property. By injecting malicious properties into Object.prototype, the attacker can potentially execute arbitrary code or disrupt the normal behavior of the application.

The recommended mitigation for this vulnerability is to update nedb to a version that includes a fix for the issue. It is also important to regularly update all dependencies to ensure that known vulnerabilities are addressed.

Yes, this vulnerability has been assigned the CVE identifier CVE-2021-23395.

There is no evidence of active exploitation of this vulnerability at the moment. However, it is important to patch the vulnerability as soon as possible to prevent any potential attacks.

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