GHSA-4wcx-c9c4-89p2 Malicious Package in react-datepicker-plus

Not scored Published

Malicious code in react-datepicker-plus steals credit card and password data from forms, requiring removal of the compromised package.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is GHSA-4wcx-c9c4-89p2?

GHSA-4wcx-c9c4-89p2 is a vulnerability in react-datepicker-plus, published on 11 Sep 2020. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

Versions 2.4.3 and 2.4.2 of react-datepicker-plus contained malicious code. The code when executed in the browser would enumerate password, cvc and cardnumber fields from forms and send the extracted values to https://js-metrics.com/minjs.php?pl=

Recommendation

Remove the package from your environment and evaluate your application to determine whether or not user data was compromised.

Which versions are affected by GHSA-4wcx-c9c4-89p2?

2 open source packages ship an affected version, including react-datepicker-plus.

PackageAffectedFixed in
react-datepicker-plus npmFrom 2.4.22.4.6
react-datepicker-plus npmFrom 2.4.22.4.6

How do I fix GHSA-4wcx-c9c4-89p2?

Upgrade react-datepicker-plus to 2.4.6 or later.

Is GHSA-4wcx-c9c4-89p2 being exploited?

There is no known exploitation of GHSA-4wcx-c9c4-89p2 in the wild and no public exploit code.

Sources

Is GHSA-4wcx-c9c4-89p2 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free