Embedded Malicious Code Affecting @pkgr/core package, versions >0.2.7 <0.2.9


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Attacked
EPSS
0.06% (20th percentile)

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-PKGRCORE-10873302
  • published22 Jul 2025
  • disclosed19 Jul 2025
  • creditDasa Paddock

Introduced: 19 Jul 2025

New Malicious CVE-2025-54313  (opens in a new tab)
CWE-506  (opens in a new tab)

How to fix?

Upgrade @pkgr/core to version 0.2.9 or higher.

Overview

@pkgr/core is a malicious package. through an npm postinstall script 'install.js'. A malicious actor compromised the credentials of one of the maintainers via a phishing attack; This allowed the attacker to publish tampered versions of the package to npm.

Script Behavior

The script attempts to execute a malicious payload in 'node-gyp.dll', which is included in the package, using rundll32 on Windows systems.

Notes:

  1. This issue is particularly relevant to Windows systems.
  2. The payload is a (known trojan)[https://www.virustotal.com/gui/file/c68e42f416f482d43653f36cd14384270b54b68d6496a8e34ce887687de5b441] with signatures available on VirusTotal.

CVSS Base Scores

version 4.0
version 3.1