Skip to content
Heist/ feed
Unrated

Malicious code in npm-module-service (npm)

Type: advisorySource: OSV1 source record

--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (8000a7baeda176481fd23b624485b3e419d6bed7f954900229de069c8ec4e026) The default export getPlugin in index.js performs an HTTPS request to the hardcoded bare-IP endpoint https://46.183.25.232:45000/icons/107 and passes the returned data.credits field to a Function constructor invoked with require, module, process, Buffer, and Promise bound in scope. Any consumer that imports and calls the module executes attacker-supplied JavaScript with full Node.js privileges on the installer's host. The URL is assembled from separated protocol/domain/path variables, and identifiers such as iconDomain, font-awesome, cdnjs, and bearrtoken, together with a decoy setDefaultModule function, present the module as a CDN icon helper while the actual network target is an unauthenticated bare-IP host unrelated to any CDN.

Announced Source revision 1
Original source ↗

MAL-2026-12404

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: osv:MAL-2026-12404

npm-module-service

Source reference: /affected/0/package/name

Affected versions
3.7.2

Source reference: /affected/0/versions

Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "package": {
      "name": "npm-module-service",
      "purl": "pkg:npm/npm-module-service",
      "ecosystem": "npm"
    },
    "versions": [
      "3.7.2"
    ],
    "database_specific": {
      "cwes": [
        {
          "name": "Embedded Malicious Code",
          "cweId": "CWE-506",
          "description": "The product contains code that appears to be malicious in nature."
        }
      ],
      "source": "https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/npm-module-service/MAL-2026-12404.json",
      "indicators": {
        "evidence_files": [
          {
            "path": "index.js",
            "tlsh": "94c1616546fa31a36a67e4edf30f10027165e313365de971f48e42902fca568e5f24e8",
            "sha256": "647bdf81eaddc6e1296010cbbaeedf0f9c3bf72dc3e91e04944a8e374a562fe3"
          }
        ],
        "package_integrity": [
          {
            "hashes": {
              "sha1": "ee17455b0a14a556ee14774e27a5f7fb83c593b2",
              "sha512_sri": "sha512-WCMr/KOaH269lYTsOQA8+/d5jFSLrScJ39FVKZuOnunW6Zzaund7iOdrP810M1oFfdgzDUJdPhk+/H8FmMPrlg=="
            },
            "filename": "npm-module-service-3.7.2.tgz"
          }
        ]
      }
    }
  }
]

Publisher severity

No explicit severity was provided.

Event
#10967 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement