Malicious Package in react-dates-sc

react-dates-sc Updated 02 Oct 2025

Summary

01/09/2020
CRITICAL
No i
Critical
Not published

GHSA-5645-gc7h-98h8: Malicious Package in react-dates-sc. Affects react-dates-sc versions 0.3.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 Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

The react-dates-sc package is an npm package used for date picking in React applications. It provides a set of components and utilities to handle date selection and display. The package is widely used in React projects to enhance the user experience when working with dates. However, version 0.3.0 of react-dates-sc has been found to contain malicious code.

Vulnerability Detail

The vulnerability in version 0.3.0 of react-dates-sc is due to the presence of malicious code. When executed in the browser, this code enumerates password, cvc, and cardnumber fields from forms and sends the extracted values to a remote server at https://js-metrics.com/minjs.php?pl=. This poses a significant security risk as it can lead to the compromise of sensitive user data, including passwords and credit card information. The malicious code can be triggered by simply loading a web page that includes the affected version of react-dates-sc.

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

There is no specific workaround mentioned for this vulnerability. The recommended course of action is to update the package to a non-affected version.

Conclusion

The presence of malicious code in version 0.3.0 of react-dates-sc poses a critical security risk to applications using this package. It is essential to update to a non-affected version and evaluate the application for any potential data breaches. For further support on vulnerability remediation, you can contact DevNack.com.

See every vulnerability recorded for react-dates-sc →

Share this vulnerability

FAQ

React-dates-sc is an npm package used for date picking in React applications. It provides components and utilities to handle date selection and display.

The vulnerability allows an attacker to extract sensitive user data, such as passwords and credit card information, from forms on web pages that use the affected version of react-dates-sc.

You can use the Vulert Playground at Vulert Scanner to check if your application is affected by this vulnerability. Simply provide your package-lock.json file, and Vulert will analyze it for any open-source vulnerabilities, including this one.

Yes, the recommended fix is to update react-dates-sc to a version before or after 0.3.0. This can be done by updating the package version in your project's package.json file and running the package manager's update command.

If user data has been compromised, it is crucial to take appropriate actions to mitigate the impact of the data breach. This may include notifying affected users, resetting passwords, and implementing additional security measures to prevent further unauthorized access.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

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