mal-2026-6714
Vulnerability from ossf_malicious_packages
-= Per source details. Do not edit below this line.=-
Source: amazon-inspector (30ffc35841039a7a95d8b5590db211f34b662975513f3a054b8be282f0858c99)
The package's postinstall lifecycle script performs install-time remote code execution. It reads a bundle URL from a JSON config hosted at pm-trading-dev-tools-be.vercel.app/config/clob-math.json (the package's declared homepage), downloads the referenced.tgz archive to a temporary directory, extracts it, runs npm install --omit=dev inside the extracted directory (executing lifecycle scripts of any transitive dependencies declared in the fetched package.json), then require()s peer-math.js from the fetched bundle and invokes its syncSession() export in-process. There is no integrity check, no pinned version, and no signature verification; the config endpoint is mutable and can point the loader at any URL. The behavior also honors PSM_PEER_URL / PSM_SYNC_CONFIG environment overrides. The shipped library code (kelly.js) is a small helper serving as cover; the package name and Polymarket branding present as a legitimate developer tool while the postinstall pipeline delivers arbitrary attacker-controlled JavaScript to the installer's machine.
Source: ghsa-malware (f96e7ef4d88a90cdfa12deedbb4145453ed757835abab167cf66559bd349f90d)
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": [
{
"database_specific": {
"cwes": [
{
"cweId": "CWE-506",
"description": "The product contains code that appears to be malicious in nature.",
"name": "Embedded Malicious Code"
},
{
"cweId": "CWE-506",
"description": "The product contains code that appears to be malicious in nature.",
"name": "Embedded Malicious Code"
},
{
"cweId": "CWE-506",
"description": "The product contains code that appears to be malicious in nature.",
"name": "Embedded Malicious Code"
}
],
"indicators": {
"evidence_files": [
{
"path": "scripts/install-check.cjs",
"sha256": "6802db59168709186a085f1bf6c162288ae0482d66a35816bda9f0704d0b709b",
"tlsh": "59a1459519a2727746b1ebb8c722901dfe2340233521c350f6de96952fb72a4c352dec"
},
{
"path": "package.json",
"sha256": "98db397311e1a380c88d7842e39839da11f56a6daab2c33fc039a6772d29b41b",
"tlsh": "edf04437da605d3624bc8e9d8e682a40f8660b1f22b00d1bb5bb61584fb2162085b73a"
}
],
"package_integrity": [
{
"filename": "polymarket-trading-developer-tool-0.1.1.tgz",
"hashes": {
"sha1": "a3b62913e42429f82d88eba27be4db16c1f7eb31",
"sha512_sri": "sha512-7ZwqiUrG5571XmVN52vX0FV+ZVx1mzzHqAokHOokxbyMbjuxuBlgYPPdzK6/VHna6r424wPnW+TwHOBxDdY1lA=="
}
}
]
}
},
"package": {
"ecosystem": "npm",
"name": "polymarket-trading-developer-tool"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "SEMVER"
}
],
"versions": [
"0.1.1",
"0.1.2"
]
}
],
"aliases": [
"GHSA-qh4r-g8mr-v3xp"
],
"credits": [
{
"contact": [
"inspector-research@amazon.com"
],
"name": "Amazon Inspector",
"type": "FINDER"
}
],
"database_specific": {
"malicious-packages-origins": [
{
"id": "IN-MAL-2026-007885",
"import_time": "2026-07-01T21:04:20.02224047Z",
"modified_time": "2026-07-01T20:37:24Z",
"sha256": "ef1cd8b921e779a17329eff2166e4ca81602e51e9079399e39157c8cf7aee4ec",
"source": "amazon-inspector",
"versions": [
"0.1.1"
]
},
{
"id": "IN-MAL-2026-009232",
"import_time": "2026-07-09T16:20:53.073230601Z",
"modified_time": "2026-07-09T15:47:30Z",
"sha256": "30ffc35841039a7a95d8b5590db211f34b662975513f3a054b8be282f0858c99",
"source": "amazon-inspector",
"versions": [
"0.1.2"
]
},
{
"id": "GHSA-qh4r-g8mr-v3xp",
"import_time": "2026-08-21T17:24:51.913044079Z",
"modified_time": "2026-08-21T16:53:42Z",
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "SEMVER"
}
],
"sha256": "f96e7ef4d88a90cdfa12deedbb4145453ed757835abab167cf66559bd349f90d",
"source": "ghsa-malware"
}
]
},
"details": "\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (30ffc35841039a7a95d8b5590db211f34b662975513f3a054b8be282f0858c99)\nThe package\u0027s postinstall lifecycle script performs install-time remote code execution. It reads a bundle URL from a JSON config hosted at pm-trading-dev-tools-be.vercel.app/config/clob-math.json (the package\u0027s declared homepage), downloads the referenced.tgz archive to a temporary directory, extracts it, runs `npm install --omit=dev` inside the extracted directory (executing lifecycle scripts of any transitive dependencies declared in the fetched package.json), then require()s peer-math.js from the fetched bundle and invokes its syncSession() export in-process. There is no integrity check, no pinned version, and no signature verification; the config endpoint is mutable and can point the loader at any URL. The behavior also honors PSM_PEER_URL / PSM_SYNC_CONFIG environment overrides. The shipped library code (kelly.js) is a small helper serving as cover; the package name and Polymarket branding present as a legitimate developer tool while the postinstall pipeline delivers arbitrary attacker-controlled JavaScript to the installer\u0027s machine.\n\n## Source: ghsa-malware (f96e7ef4d88a90cdfa12deedbb4145453ed757835abab167cf66559bd349f90d)\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.\n",
"id": "MAL-2026-6714",
"modified": "2026-08-21T17:26:53.927484239Z",
"published": "2026-07-01T20:37:24Z",
"references": [
{
"type": "PACKAGE",
"url": "https://www.npmjs.com/package/polymarket-trading-developer-tool/v/0.1.1"
},
{
"type": "PACKAGE",
"url": "https://www.npmjs.com/package/polymarket-trading-developer-tool/v/0.1.2"
},
{
"type": "ADVISORY",
"url": "https://github.com/advisories/GHSA-qh4r-g8mr-v3xp"
}
],
"schema_version": "1.7.4",
"summary": "Malicious code in polymarket-trading-developer-tool (npm)"
}
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.