CVE-2023-45827: Prototype Pollution vulnerability in @clickbar/dot-diver

@clickbar/dot-diver Updated 02 Oct 2025

Summary

03/11/2023
Yes i
High
7.3

CVE-2023-45827: Prototype Pollution(PP) vulnerability in setByPath. Affects @clickbar/dot-diver versions < 1.0.2. Fixed in 1.0.2. 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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The @clickbar/dot-diver package is an npm package that provides utility functions for working with nested objects in JavaScript. It includes functions like getByPath and setByPath, which allow users to access and modify nested object properties using dot notation. This package is widely used in JavaScript applications for handling complex data structures.

Vulnerability Detail

The vulnerability identified in @clickbar/dot-diver is a Prototype Pollution (PP) vulnerability in the setByPath function. Prototype Pollution is a type of vulnerability that allows an attacker to modify the prototype of an object, leading to potential remote code execution (RCE) or denial of service (DoS) attacks. In the vulnerable code snippet, there is no validation for Prototype Pollution, allowing an attacker to pollute the prototype of an object by setting a malicious value. This can have severe consequences depending on how the polluted object is used in the application.

How To Fix

Minimum fixed version

1.0.2

This is the first release that contains the fix.

npm install @clickbar/dot-diver@1.0.2

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

Workaround

As a temporary workaround, users can avoid using the setByPath function or any other functions that directly manipulate object prototypes. Instead, they can manually handle object property assignments using safe and validated methods. Here's an example of a workaround:

const objectToSet = {};
const lastKey = 'polluted';
const value = 'foo';

// Perform proper validation and sanitization checks
if (typeof objectToSet === 'object' && lastKey !== '__proto__') {
  objectToSet[lastKey] = value;
}

Conclusion

The Prototype Pollution vulnerability in @clickbar/dot-diver can have severe consequences, including remote code execution and denial of service attacks. It is crucial to update the package to the latest version (1.0.2 or later) to mitigate this vulnerability. If you need further assistance or support in addressing this vulnerability, please contact DevNack.com.

See every vulnerability recorded for @clickbar/dot-diver →

Share this vulnerability

FAQ

Prototype Pollution is a vulnerability that allows an attacker to modify the prototype of an object, leading to potential remote code execution or denial of service attacks.

@clickbar/dot-diver is an npm package that provides utility functions for working with nested objects in JavaScript.

The vulnerability in @clickbar/dot-diver can potentially lead to remote code execution or denial of service attacks, depending on how the polluted object is used in the application.

To fix the vulnerability, it is recommended to update the @clickbar/dot-diver package to version 1.0.2 or later.

As a temporary workaround, users can avoid using the setByPath function or any other functions that directly manipulate object prototypes.

How To Fix

Minimum fixed version

1.0.2

This is the first release that contains the fix.

npm install @clickbar/dot-diver@1.0.2

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