CWE-506
Allowed-with-ReviewEmbedded Malicious Code
Abstraction: Class · Status: Incomplete
The product contains code that appears to be malicious in nature.
553 vulnerabilities reference this CWE, most recent first.
GHSA-JQJG-V355-HR9Q
Vulnerability from github – Published: 2020-09-03 22:11 – Updated: 2021-09-29 21:12Version 2.0.2 contained malicious code. The package targeted the Ethereum cryptocurrency and performed transactions to wallets not controlled by the user.
Recommendation
Remove the package from your environment. Ensure no Ethereum funds were compromised.
{
"affected": [
{
"package": {
"ecosystem": "npm",
"name": "buffer-xop"
},
"ranges": [
{
"events": [
{
"introduced": "0.0.0"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"aliases": [],
"database_specific": {
"cwe_ids": [
"CWE-506"
],
"github_reviewed": true,
"github_reviewed_at": "2020-08-31T18:52:22Z",
"nvd_published_at": null,
"severity": "CRITICAL"
},
"details": "Version 2.0.2 contained malicious code. The package targeted the Ethereum cryptocurrency and performed transactions to wallets not controlled by the user.\n\n\n## Recommendation\n\nRemove the package from your environment. Ensure no Ethereum funds were compromised.",
"id": "GHSA-jqjg-v355-hr9q",
"modified": "2021-09-29T21:12:22Z",
"published": "2020-09-03T22:11:02Z",
"references": [
{
"type": "WEB",
"url": "https://www.npmjs.com/advisories/1250"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
"type": "CVSS_V3"
}
],
"summary": "Malicious Package in buffer-xop"
}
GHSA-JQVV-R4W3-8F7W
Vulnerability from github – Published: 2020-09-04 15:35 – Updated: 2021-10-01 20:38All versions of this package contained malware. The package was designed to find and exfiltrate cryptocurrency wallets.
Recommendation
Any 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.
{
"affected": [
{
"package": {
"ecosystem": "npm",
"name": "bictoind-rpc"
},
"ranges": [
{
"events": [
{
"introduced": "0.0.0"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"aliases": [],
"database_specific": {
"cwe_ids": [
"CWE-506"
],
"github_reviewed": true,
"github_reviewed_at": "2020-08-31T18:56:11Z",
"nvd_published_at": null,
"severity": "CRITICAL"
},
"details": "All versions of this package contained malware. The package was designed to find and exfiltrate cryptocurrency wallets.\n\n\n## Recommendation\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.\n\nThe 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.",
"id": "GHSA-jqvv-r4w3-8f7w",
"modified": "2021-10-01T20:38:02Z",
"published": "2020-09-04T15:35:00Z",
"references": [
{
"type": "WEB",
"url": "https://www.npmjs.com/advisories/1355"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N",
"type": "CVSS_V3"
}
],
"summary": "Malicious Package in bictoind-rpc"
}
GHSA-JVC2-9PRG-FFVC
Vulnerability from github – Published: 2026-08-21 03:31 – Updated: 2026-08-21 03:31The arrayref crate 0.3.10 for Rust can trigger execution of malicious code when compiling a project that uses the crate, because it has a rogue dependency that registers with a command-and-control server to offer arbitrary code execution.
{
"affected": [],
"aliases": [
"CVE-2026-77651"
],
"database_specific": {
"cwe_ids": [
"CWE-506"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2026-08-21T01:17:02Z",
"severity": "CRITICAL"
},
"details": "The arrayref crate 0.3.10 for Rust can trigger execution of malicious code when compiling a project that uses the crate, because it has a rogue dependency that registers with a command-and-control server to offer arbitrary code execution.",
"id": "GHSA-jvc2-9prg-ffvc",
"modified": "2026-08-21T03:31:22Z",
"published": "2026-08-21T03:31:22Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-77651"
},
{
"type": "WEB",
"url": "https://github.com/rustsec/advisory-db/issues/3161"
},
{
"type": "WEB",
"url": "https://blog.rust-lang.org/2026/08/20/supply-chain-attack-on-arrayref"
},
{
"type": "WEB",
"url": "https://rustsec.org/advisories/RUSTSEC-2026-0260.html"
},
{
"type": "WEB",
"url": "https://safedep.io/arrayref-proc-macro1-rust-build-time-malware"
},
{
"type": "WEB",
"url": "https://www.stepsecurity.io/blog/arrayref-rust-crate-supply-chain-attack"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
"type": "CVSS_V3"
}
]
}
GHSA-JVFV-JHW9-JMPP
Vulnerability from github – Published: 2020-09-03 21:23 – Updated: 2021-09-29 20:22Version 2.0.2 contained malicious code. The package targeted the Ethereum cryptocurrency and performed transactions to wallets not controlled by the user.
Recommendation
Remove the package from your environment. Ensure no Ethereum funds were compromised.
{
"affected": [
{
"package": {
"ecosystem": "npm",
"name": "b5ffer-xor"
},
"ranges": [
{
"events": [
{
"introduced": "0.0.0"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"aliases": [],
"database_specific": {
"cwe_ids": [
"CWE-506"
],
"github_reviewed": true,
"github_reviewed_at": "2020-08-31T18:51:32Z",
"nvd_published_at": null,
"severity": "CRITICAL"
},
"details": "Version 2.0.2 contained malicious code. The package targeted the Ethereum cryptocurrency and performed transactions to wallets not controlled by the user.\n\n\n## Recommendation\n\nRemove the package from your environment. Ensure no Ethereum funds were compromised.",
"id": "GHSA-jvfv-jhw9-jmpp",
"modified": "2021-09-29T20:22:21Z",
"published": "2020-09-03T21:23:09Z",
"references": [
{
"type": "WEB",
"url": "https://www.npmjs.com/advisories/1228"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
"type": "CVSS_V3"
}
],
"summary": "Malicious Package in b5ffer-xor"
}
GHSA-JWQ7-6J4R-2F92
Vulnerability from github – Published: 2025-09-11 14:22 – Updated: 2025-09-11 14:22Impact
NPM users of prebid 10.9.2. The malicious code attempts to redirect crypto transactions on the site to the attackers' wallet.
Patches
10.10.0 is solved
References
https://www.sonatype.com/blog/npm-chalk-and-debug-packages-hit-in-software-supply-chain-attack
{
"affected": [
{
"package": {
"ecosystem": "npm",
"name": "prebid.js"
},
"ranges": [
{
"events": [
{
"introduced": "10.9.2"
},
{
"fixed": "10.10.0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"10.9.2"
]
}
],
"aliases": [
"CVE-2025-59038"
],
"database_specific": {
"cwe_ids": [
"CWE-506"
],
"github_reviewed": true,
"github_reviewed_at": "2025-09-11T14:22:40Z",
"nvd_published_at": "2025-09-09T23:15:37Z",
"severity": "HIGH"
},
"details": "### Impact\nNPM users of prebid 10.9.2. The malicious code attempts to redirect crypto transactions on the site to the attackers\u0027 wallet.\n\n### Patches\n10.10.0 is solved\n\n### References\nhttps://www.sonatype.com/blog/npm-chalk-and-debug-packages-hit-in-software-supply-chain-attack",
"id": "GHSA-jwq7-6j4r-2f92",
"modified": "2025-09-11T14:22:40Z",
"published": "2025-09-11T14:22:40Z",
"references": [
{
"type": "WEB",
"url": "https://github.com/prebid/Prebid.js/security/advisories/GHSA-jwq7-6j4r-2f92"
},
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2025-59038"
},
{
"type": "WEB",
"url": "https://github.com/prebid/Prebid.js/commit/72c7f184028f51ba15cdac744d56590b0f2b1f1e"
},
{
"type": "PACKAGE",
"url": "https://github.com/prebid/Prebid.js"
},
{
"type": "WEB",
"url": "https://github.com/prebid/Prebid.js/releases/tag/10.10.0"
},
{
"type": "WEB",
"url": "https://www.sonatype.com/blog/npm-chalk-and-debug-packages-hit-in-software-supply-chain-attack"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
"type": "CVSS_V4"
}
],
"summary": "Prebid.js NPM package briefly compromised"
}
GHSA-JXF5-7X3J-8J9M
Vulnerability from github – Published: 2020-09-03 18:19 – Updated: 2021-09-30 20:05Version 3.0.2 of load-from-cwd-or-npm contains malicious code. The malware breaks functionality of the purescript-installer package by injecting targeted code.
Recommendation
Upgrade to version 3.0.4 or later. There is no indication of further compromise.
{
"affected": [
{
"package": {
"ecosystem": "npm",
"name": "load-from-cwd-or-npm"
},
"ranges": [
{
"events": [
{
"introduced": "3.0.2"
},
{
"fixed": "3.0.4"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"3.0.2"
]
}
],
"aliases": [],
"database_specific": {
"cwe_ids": [
"CWE-506"
],
"github_reviewed": true,
"github_reviewed_at": "2020-08-31T18:46:39Z",
"nvd_published_at": null,
"severity": "CRITICAL"
},
"details": "Version 3.0.2 of `load-from-cwd-or-npm` contains malicious code. The malware breaks functionality of the `purescript-installer` package by injecting targeted code.\n\n\n## Recommendation\n\nUpgrade to version 3.0.4 or later. There is no indication of further compromise.",
"id": "GHSA-jxf5-7x3j-8j9m",
"modified": "2021-09-30T20:05:11Z",
"published": "2020-09-03T18:19:14Z",
"references": [
{
"type": "WEB",
"url": "https://www.npmjs.com/advisories/1082"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
"type": "CVSS_V3"
}
],
"summary": "Malicious Package in load-from-cwd-or-npm"
}
GHSA-JXR6-QRXX-2PH2
Vulnerability from github – Published: 2025-07-31 19:33 – Updated: 2026-07-21 17:20The num2words project was compromised via a phishing attack and two new versions were uploaded to PyPI containing malicious code. The affected versions have been removed from PyPI, and users are advised to remove the affected versions from their environments.
{
"affected": [
{
"package": {
"ecosystem": "PyPI",
"name": "num2words"
},
"ranges": [
{
"events": [
{
"introduced": "0.5.15"
},
{
"last_affected": "0.5.16"
}
],
"type": "ECOSYSTEM"
}
]
},
{
"package": {
"ecosystem": "PyPI",
"name": "num2words"
},
"versions": [
"0.5.15"
]
},
{
"package": {
"ecosystem": "PyPI",
"name": "num2words"
},
"versions": [
"0.5.16"
]
}
],
"aliases": [],
"database_specific": {
"cwe_ids": [
"CWE-506"
],
"github_reviewed": true,
"github_reviewed_at": "2025-07-31T19:33:29Z",
"nvd_published_at": null,
"severity": "CRITICAL"
},
"details": "The `num2words` project was compromised via a phishing attack and two new versions were uploaded to PyPI containing malicious code. The affected versions have been removed from PyPI, and users are advised to remove the affected versions from their environments.",
"id": "GHSA-jxr6-qrxx-2ph2",
"modified": "2026-07-21T17:20:12Z",
"published": "2025-07-31T19:33:29Z",
"references": [
{
"type": "WEB",
"url": "https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/num2words/MAL-2025-6794.json"
},
{
"type": "WEB",
"url": "https://github.com/pypa/advisory-database/tree/main/vulns/num2words/PYSEC-2025-72.yaml"
},
{
"type": "PACKAGE",
"url": "https://github.com/savoirfairelinux/num2words"
},
{
"type": "WEB",
"url": "https://nitter.tiekoetter.com/SFLinux/status/1949906299308953827"
},
{
"type": "WEB",
"url": "https://www.stepsecurity.io/blog/supply-chain-security-alert-num2words-pypi-package-shows-signs-of-compromise"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
"type": "CVSS_V4"
}
],
"summary": "num2words subjected to phishing attack, two versions published containing malware"
}
GHSA-M25Q-FWG4-9V2P
Vulnerability from github – Published: 2020-09-01 19:47 – Updated: 2021-09-24 16:36Version 1.0.2 of awesome_react_utility 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 1.0.2 of this module is found installed you will want to replace it with a version before or after 1.0.2. In addition to replacing the installed module, you will also want to evaluate your application to determine whether or not user data was compromised.
{
"affected": [
{
"package": {
"ecosystem": "npm",
"name": "awesome_react_utility"
},
"versions": [
"1.0.2"
]
}
],
"aliases": [],
"database_specific": {
"cwe_ids": [
"CWE-506"
],
"github_reviewed": true,
"github_reviewed_at": "2020-08-31T18:30:05Z",
"nvd_published_at": null,
"severity": "CRITICAL"
},
"details": "Version 1.0.2 of `awesome_react_utility` 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=`\n\n\n## Recommendation\n\nIf version 1.0.2 of this module is found installed you will want to replace it with a version before or after 1.0.2. In addition to replacing the installed module, you will also want to evaluate your application to determine whether or not user data was compromised.",
"id": "GHSA-m25q-fwg4-9v2p",
"modified": "2021-09-24T16:36:57Z",
"published": "2020-09-01T19:47:07Z",
"references": [
{
"type": "PACKAGE",
"url": "https://github.com/kooinam/awesome_react_utility"
},
{
"type": "WEB",
"url": "https://www.npmjs.com/advisories/618"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
"type": "CVSS_V3"
}
],
"summary": "Malicious Package in awesome_react_utility"
}
GHSA-M2CX-9W9F-2HM7
Vulnerability from github – Published: 2026-07-30 00:31 – Updated: 2026-07-30 00:31VaahCMS versions 2.0.0 through 2.3.4 contain a malicious obfuscated JavaScript payload embedded in the Blade template responsible for rendering security OTP emails, allowing remote attackers to execute unauthorized code in any browser that renders the affected email template with JavaScript enabled. The payload establishes a WebSocket connection to a hardcoded command-and-control endpoint, installs a password-field keylogger using MutationObserver to capture dynamically added inputs, scrapes WhatsApp Web DOM content, and accepts remote commands to redirect or overwrite the rendered page.
{
"affected": [],
"aliases": [
"CVE-2026-67595"
],
"database_specific": {
"cwe_ids": [
"CWE-506"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2026-07-29T22:16:52Z",
"severity": "CRITICAL"
},
"details": "VaahCMS versions 2.0.0 through 2.3.4 contain a malicious obfuscated JavaScript payload embedded in the Blade template responsible for rendering security OTP emails, allowing remote attackers to execute unauthorized code in any browser that renders the affected email template with JavaScript enabled. The payload establishes a WebSocket connection to a hardcoded command-and-control endpoint, installs a password-field keylogger using MutationObserver to capture dynamically added inputs, scrapes WhatsApp Web DOM content, and accepts remote commands to redirect or overwrite the rendered page.",
"id": "GHSA-m2cx-9w9f-2hm7",
"modified": "2026-07-30T00:31:19Z",
"published": "2026-07-30T00:31:19Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-67595"
},
{
"type": "WEB",
"url": "https://github.com/webreinvent/vaahcms/pull/317"
},
{
"type": "WEB",
"url": "https://github.com/webreinvent/vaahcms/commit/8d7898f7a385a5fade1180a9b664ff158d873129"
},
{
"type": "WEB",
"url": "https://www.vulncheck.com/advisories/vaahcms-malicious-javascript-supply-chain-via-security-otp-blade-php"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H",
"type": "CVSS_V3"
},
{
"score": "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X",
"type": "CVSS_V4"
}
]
}
GHSA-M2FP-C79H-RR79
Vulnerability from github – Published: 2020-09-02 21:42 – Updated: 2021-09-30 21:56All versions of tensorplow contain malicious code as a preinstall script. When installed, the package calls home to a Command and Control server to execute arbitrary commands.
Recommendation
Any 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.
{
"affected": [
{
"package": {
"ecosystem": "npm",
"name": "tensorplow"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"aliases": [],
"database_specific": {
"cwe_ids": [
"CWE-506"
],
"github_reviewed": true,
"github_reviewed_at": "2020-08-31T18:40:13Z",
"nvd_published_at": null,
"severity": "CRITICAL"
},
"details": "All versions of `tensorplow` contain malicious code as a preinstall script. When installed, the package calls home to a Command and Control server to execute arbitrary commands.\n\n\n## Recommendation\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.\n\nThe 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.",
"id": "GHSA-m2fp-c79h-rr79",
"modified": "2021-09-30T21:56:28Z",
"published": "2020-09-02T21:42:56Z",
"references": [
{
"type": "WEB",
"url": "https://www.npmjs.com/advisories/910"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
"type": "CVSS_V3"
}
],
"summary": "Malicious Package in tensorplow"
}
Mitigation
Remove the malicious code and start an effort to ensure that no more malicious code exists. This may require a detailed review of all code, as it is possible to hide a serious attack in only one or two lines of code. These lines may be located almost anywhere in an application and may have been intentionally obfuscated by the attacker.
CAPEC-442: Infected Software
An adversary adds malicious logic, often in the form of a computer virus, to otherwise benign software. This logic is often hidden from the user of the software and works behind the scenes to achieve negative impacts. Many times, the malicious logic is inserted into empty space between legitimate code, and is then called when the software is executed. This pattern of attack focuses on software already fielded and used in operation as opposed to software that is still under development and part of the supply chain.
CAPEC-448: Embed Virus into DLL
An adversary tampers with a DLL and embeds a computer virus into gaps between legitimate machine instructions. These gaps may be the result of compiler optimizations that pad memory blocks for performance gains. The embedded virus then attempts to infect any machine which interfaces with the product, and possibly steal private data or eavesdrop.
CAPEC-636: Hiding Malicious Data or Code within Files
Files on various operating systems can have a complex format which allows for the storage of other data, in addition to its contents. Often this is metadata about the file, such as a cached thumbnail for an image file. Unless utilities are invoked in a particular way, this data is not visible during the normal use of the file. It is possible for an attacker to store malicious data or code using these facilities, which would be difficult to discover.