GHSA-5w4r-wwc3-6qcp Malicious Package in precode.js

Not scored Published

A malicious npm package steals credit card and password data from web forms, requiring developers to remove the package and assess data exposure.

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-5w4r-wwc3-6qcp?

GHSA-5w4r-wwc3-6qcp is a vulnerability in precode.js, 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

Version 1.1.1 of precode.js 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.

Users may consider downgrading to version 1.1.0

Which versions are affected by GHSA-5w4r-wwc3-6qcp?

2 open source packages ship an affected version, including precode.js.

PackageAffectedFixed in
precode.js npmAll versionsNone
precode.js npmAll versionsNone

How do I fix GHSA-5w4r-wwc3-6qcp?

No fix has been published for GHSA-5w4r-wwc3-6qcp yet. Limit exposure of the affected software until one is available.

Is GHSA-5w4r-wwc3-6qcp being exploited?

There is no known exploitation of GHSA-5w4r-wwc3-6qcp in the wild and no public exploit code.

Sources

Is GHSA-5w4r-wwc3-6qcp in your software?

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

Check your SBOMs for free