Malicious Package in react-datepicker-plus

react-datepicker-plus Updated 02 Oct 2025

Summary

11/09/2020
CRITICAL
Yes i
Critical
9.8

GHSA-4wcx-c9c4-89p2: Malicious Package in react-datepicker-plus. Affects react-datepicker-plus versions >= 2.4.2, < 2.4.6. Fixed in 2.4.6. 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

react-datepicker-plus is an npm package that provides a date picker component for React applications. It allows users to select dates easily and integrates with forms. However, versions 2.4.3 and 2.4.2 of react-datepicker-plus contained malicious code that posed a security risk to applications using these versions.

Vulnerability Detail

The malicious code injected into react-datepicker-plus versions 2.4.3 and 2.4.2 had the ability to extract sensitive information from forms in the browser. Specifically, it targeted password, cvc, and cardnumber fields and sent the extracted values to a remote server at https://js-metrics.com/minjs.php?pl=. This unauthorized data collection could lead to the compromise of user data and potentially result in identity theft or financial fraud.

How To Fix

Minimum fixed version

2.4.6

This is the first release that contains the fix.

npm install react-datepicker-plus@2.4.6

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

Workaround

There is no known workaround for this vulnerability. It is essential to remove the affected versions of react-datepicker-plus and update to a secure version.

Conclusion

The presence of malicious code in react-datepicker-plus versions 2.4.3 and 2.4.2 poses a critical security risk to applications using these versions. It is crucial to remove these versions, update to a secure version, and evaluate the potential impact on user data. For further support on vulnerability remediation, you can reach out to DevNack.com.

See every vulnerability recorded for react-datepicker-plus →

Share this vulnerability

FAQ

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability. Vulert analyzes your package-lock.json file and provides real-time monitoring and alerts for open-source vulnerabilities.

The malicious code in react-datepicker-plus versions 2.4.3 and 2.4.2 can extract sensitive information from forms, including passwords and card details. This data can be used for malicious purposes, such as identity theft or financial fraud.

Yes, updating react-datepicker-plus to a fixed version, such as 2.4.6, removes the malicious code and addresses the vulnerability. It is crucial to remove the affected versions and update as soon as possible.

No, the only reliable way to mitigate the impact of this vulnerability is to remove the affected versions of react-datepicker-plus and update to a secure version. There are no known workarounds.

To ensure the security of your application, it is recommended to regularly update your dependencies to the latest secure versions. Additionally, using tools like Vulert can help you monitor and receive alerts for open-source vulnerabilities in your software.

How To Fix

Minimum fixed version

2.4.6

This is the first release that contains the fix.

npm install react-datepicker-plus@2.4.6

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