Vulnerabilities in pkg:npm/sonatype
PACKAGEGHSA-w8fh-pvq2-x8c4 is a CRITICAL sonatype vulnerability (CWE-506: Embedded Malicious Code) affecting Malicious npm package libraries in the npm ecosystem. The issue involves sonatype. Remediation is available in the latest vendor maintenance releases.
pkg:npm/sonatype
Vulnerability advisories affecting package pkg:npm/sonatype. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-w8fh-pvq2-x8c4 | - | CRITICAL | Malicious npm package: sonatype |
GHSA-w8fh-pvq2-x8c4 at a Glance
How to Fix GHSA-w8fh-pvq2-x8c4
To remediate this vulnerability, upgrade all affected Malicious npm package dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install sonatype@Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls sonatype
How to Check if You Are Affected
To determine whether your Node.js application is affected by GHSA-w8fh-pvq2-x8c4, inspect your project dependencies using npm:
npm ls sonatype
Analyze the terminal output to locate any version of Malicious npm package in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.
Note: The npm ls sonatype command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-506: Embedded Malicious Code, where the product contains code that appears to be malicious in nature. In Malicious npm package, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
GHSA-w8fh-pvq2-x8c4 Affected Malicious npm package Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
sonatype
|
npm |
≥ 0.0.0
|
|
References
Frequently Asked Questions
What is GHSA-w8fh-pvq2-x8c4?
Which Malicious npm package versions are affected?
What version fixes GHSA-w8fh-pvq2-x8c4?
Is sonatype affected?
What CWE is associated with GHSA-w8fh-pvq2-x8c4?
How can I check npm dependencies for GHSA-w8fh-pvq2-x8c4?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-w8fh-pvq2-x8c4",
"modified" : "2021-01-29T18:10:59Z",
"published" : "2021-01-29T18:11:20Z",
"aliases" : [ ],
"summary" : "Malicious npm package: sonatype",
"details" : "The npm `sonatype` package has been identified as malicious and removed from the npm package registry.\n\n## Remediation\n\nAny computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "sonatype"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0.0.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://blog.sonatype.com/sonatype-spots-more-discord-malware-in-npm?hs_preview=BbDPGbfh-40737456755"
}, {
"type" : "WEB",
"url" : "https://www.npmjs.com/advisories/1596"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-506" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2021-01-29T18:10:59Z",
"nvd_published_at" : null
}
}