GHSA-5645-gc7h-98h8 Malicious Package in react-dates-sc
A malicious npm package version steals credit card and password data from web forms, requiring developers to remove the compromised library.
- 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
- None listed
What is GHSA-5645-gc7h-98h8?
GHSA-5645-gc7h-98h8 is a vulnerability in react-dates-sc, published on 1 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
Version 0.3.0 of react-dates-sc contained malicious code. The code when executed in the browser would enumerate password, cvc, cardnumber fields from forms and send the extracted values to https://js-metrics.com/minjs.php?pl=
Recommendation
If version 0.3.0 of this module is found installed you will want to replace it with a version before or after 0.3.0. In addition to replacing the installed module, you will also want to evaluate your application to determine whether or not user data was compromised.
Users may consider downgrading to version 0.3.0-beta.83
Which versions are affected by GHSA-5645-gc7h-98h8?
2 open source packages ship an affected version, including react-dates-sc.
| Package | Affected | Fixed in |
|---|---|---|
react-dates-sc npm | All versions | None |
react-dates-sc npm | All versions | None |
How do I fix GHSA-5645-gc7h-98h8?
No fix has been published for GHSA-5645-gc7h-98h8 yet. Limit exposure of the affected software until one is available.
Is GHSA-5645-gc7h-98h8 being exploited?
There is no known exploitation of GHSA-5645-gc7h-98h8 in the wild and no public exploit code.