Malicious Package Affecting precode.js package, versions >1.1.0 <1.1.2


Severity

Recommended
0.0
critical
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Mature

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-PRECODEJS-449526
  • published10 Jun 2019
  • disclosed7 Jun 2019
  • creditnpm security

Introduced: 7 Jun 2019

Malicious CVE NOT AVAILABLE CWE-506  (opens in a new tab)

How to fix?

Upgrade precode.js to version 1.1.2 or higher.

Overview

precode.js is a jQuery plugin that adjusts indentation of code using the pre tag and deletes the last extra blank line.

Affected versions of this package are vulnerable to Malicious Package. The package contains malicious code that when executed in the browser enumerates password, cvc and cardnumber fields from forms and sends the extracted values to https://js-metrics.com/minjs.php?pl=

CVSS Scores

version 3.1