mal-2026-6712
Vulnerability from ossf_malicious_packages
Published
2026-07-01 20:37
Modified
2026-07-01 20:37
Summary
Malicious code in polymarket-risk-manager (npm)
Details

-= Per source details. Do not edit below this line.=-

Source: amazon-inspector (54bfddce038bb64117d6850bb2977f8cee17704212e12e6214fb495b9d4cee79)

On npm install, the package's postinstall script reads a config URL from package.json's homepage field (https://parket-server-help.vercel.app/config/psm-peer.json), downloads a tarball from the returned bundle URL, extracts it, runs npm install inside the extracted directory, and then require()s peer-math.js from the fetched bundle and invokes syncSession() from it. There is no version pin, hash check, or signature verification, and the destination domain (parket-server-help.vercel.app) is not Polymarket-owned despite the polymarket-prefixed package name and brand-adjacent host. The stated purpose of the package — Kelly stake math in a ~40-line kelly.js — does not require any network bundle. The postinstall code is framed as a 'peer sync'/'install check', accepts environment overrides (PSM_PEER_URL, PSM_SYNC_CONFIG, KELLY_PEER_CONFIG), and swallows errors as 'install check skipped' to suppress visibility. This is the canonical install-time dropper shape: arbitrary attacker-controlled JavaScript executes inside the installer's Node process during dependency installation.

CWE
  • CWE-506 - The product contains code that appears to be malicious in nature.
Credits

{
  "affected": [
    {
      "database_specific": {
        "cwes": [
          {
            "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": "76abe2f68ddc2948f9a9acea1c8ea0d6420ca3d4315627a6b0b3ee4070a48e2d",
              "tlsh": "82a1459519a272774ab1ebb8c722901dfe6340233421c350f6de96952fb72a4c352dec"
            },
            {
              "path": "package.json",
              "sha256": "9a897ad312fcf839ebbd9fcbfc8507ef1ffa813d1b95b695f49b59f4544dfb9e",
              "tlsh": "6ff07837da508e3728b88e9d4e751a44f5610b4f22b04d0b71bb600c4f721a3085b73a"
            }
          ],
          "package_integrity": [
            {
              "filename": "polymarket-risk-manager-3.5.2.tgz",
              "hashes": {
                "sha1": "781de61c2cd924d9ea14a464fb92a4f4a03901dc",
                "sha512_sri": "sha512-ulYPzuMvIso9LheSQBeSfpZlWM11yfeybsq5EmzKqIpJKmKxblAVam3VSVbAMxNtlchn/45XS5eVZulkmi5weg=="
              }
            }
          ]
        }
      },
      "package": {
        "ecosystem": "npm",
        "name": "polymarket-risk-manager"
      },
      "versions": [
        "3.5.2"
      ]
    }
  ],
  "credits": [
    {
      "contact": [
        "inspector-research@amazon.com"
      ],
      "name": "Amazon Inspector",
      "type": "FINDER"
    }
  ],
  "database_specific": {
    "malicious-packages-origins": [
      {
        "id": "IN-MAL-2026-007884",
        "import_time": "2026-07-01T21:04:19.992927956Z",
        "modified_time": "2026-07-01T20:37:17Z",
        "sha256": "54bfddce038bb64117d6850bb2977f8cee17704212e12e6214fb495b9d4cee79",
        "source": "amazon-inspector",
        "versions": [
          "3.5.2"
        ]
      }
    ]
  },
  "details": "\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (54bfddce038bb64117d6850bb2977f8cee17704212e12e6214fb495b9d4cee79)\nOn `npm install`, the package\u0027s postinstall script reads a config URL from package.json\u0027s `homepage` field (https://parket-server-help.vercel.app/config/psm-peer.json), downloads a tarball from the returned bundle URL, extracts it, runs `npm install` inside the extracted directory, and then `require()`s `peer-math.js` from the fetched bundle and invokes `syncSession()` from it. There is no version pin, hash check, or signature verification, and the destination domain (parket-server-help.vercel.app) is not Polymarket-owned despite the polymarket-prefixed package name and brand-adjacent host. The stated purpose of the package \u2014 Kelly stake math in a ~40-line kelly.js \u2014 does not require any network bundle. The postinstall code is framed as a \u0027peer sync\u0027/\u0027install check\u0027, accepts environment overrides (PSM_PEER_URL, PSM_SYNC_CONFIG, KELLY_PEER_CONFIG), and swallows errors as \u0027install check skipped\u0027 to suppress visibility. This is the canonical install-time dropper shape: arbitrary attacker-controlled JavaScript executes inside the installer\u0027s Node process during dependency installation.\n",
  "id": "MAL-2026-6712",
  "modified": "2026-07-01T20:37:17Z",
  "published": "2026-07-01T20:37:17Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://www.npmjs.com/package/polymarket-risk-manager/v/3.5.2"
    }
  ],
  "schema_version": "1.7.4",
  "summary": "Malicious code in polymarket-risk-manager (npm)"
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

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.


Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…