GHSA-7xfq-xh6v-4mrm Malicious Package in json-serializer
A malicious npm package version steals sensitive form data like passwords and credit card numbers from browser users.
- 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-7xfq-xh6v-4mrm?
GHSA-7xfq-xh6v-4mrm is a vulnerability in json-serializer, 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 2.0.10 of json-serializer 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 2.0.10 of this module is found installed you will want to replace it with a version before or after 2.0.10. In addition to replacing the installed module, you will also want to evaluate your application to determine whether or not user data was compromised.
Which versions are affected by GHSA-7xfq-xh6v-4mrm?
2 open source packages ship an affected version, including json-serializer.
| Package | Affected | Fixed in |
|---|---|---|
json-serializer npm | From 2.0.10 | 2.0.11 |
json-serializer npm | From 2.0.10 | 2.0.11 |
How do I fix GHSA-7xfq-xh6v-4mrm?
Upgrade json-serializer to 2.0.11 or later.
Is GHSA-7xfq-xh6v-4mrm being exploited?
There is no known exploitation of GHSA-7xfq-xh6v-4mrm in the wild and no public exploit code.