MAL-2026-4335
Vulnerability from ossf_malicious_packages
Published
2026-05-21 08:14
Modified
2026-05-26 05:55
Summary
Malicious code in webservices.rest (npm)
Details

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

Source: amazon-inspector (c47c5da15de80c0473b9ccdb9899cb24607c3338914d67fe3331b169f5c1553b)

Package name webservices.rest impersonates the OpenMRS REST API naming convention and is published at version 99.1.0 — the canonical dependency-confusion version-bump pattern designed to outrank an internal/private package of the same name in mixed registry resolution. The package's only functional behavior is to load a separate, caret-pinned dependency webservices.rest-utils@^1.0.5: package.json declares "postinstall": "node index.js", and index.js line 2 calls require('webservices.rest-utils') wrapped in an empty try/catch that suppresses any errors. This means npm install webservices.rest silently fetches and executes whatever code webservices.rest-utils contains, both at install (via postinstall) and at import. Additional integrity-of-publication red flags: README claims an 'OpenMRS Community Contributor' affiliation, but the LICENSE file copyright is held by 'dov-nods-autho' and the declared license disagrees between package.json (Apache-2.0) and the LICENSE file (MIT). The package itself contains no other functionality — it is a thin loader stub whose sole supply-chain effect is to drag the caret-pinned utility package into the installer's dependency tree and execute it.

Source: ghsa-malware (a57ae4de9ce6de1c3c863c503ad4e502e5137ffa86af9bfac2aab959a1744f6c)

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.

CWE
  • CWE-506 - The product contains code that appears to be malicious in nature.
  • CWE-506 - The product contains code that appears to be malicious in nature.
  • CWE-506 - The product contains code that appears to be malicious in nature.
  • CWE-506 - The product contains code that appears to be malicious in nature.
Credits
Amazon Inspector actran@amazon.com

{
  "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"
          },
          {
            "cweId": "CWE-506",
            "description": "The product contains code that appears to be malicious in nature.",
            "name": "Embedded Malicious Code"
          }
        ],
        "indicators": {
          "domains": [
            "compute.internal",
            "redis.local",
            "internal",
            "kubernetes.default.svc.cluster.local",
            "ec2.internal",
            "rancher.internal",
            "gitlab.local",
            "jenkins.local",
            "jenkins.internal",
            "istio-ingressgateway.istio-system.svc.cluster.local",
            "mongodb.internal",
            "google.internal",
            "azure.internal",
            "internal.jira.local",
            "gitlab.internal",
            "redis.internal",
            "db.local",
            "postgres.local",
            "lan",
            "active-directory.local",
            "kubernetes.default",
            "home",
            "intranet.local",
            "openmrs-sol-dev-v2.lapxa354.workers.dev",
            "corp.local",
            "vault.internal",
            "consul.service.consul",
            "kubernetes.default.svc"
          ],
          "evidence_files": [
            {
              "path": "index.js",
              "sha256": "b75e901633d89e60a71832dc1d3014ffa6310e066b625c5d0b595c1f81fed4e2",
              "tlsh": "3ce06853b5ea31215624f563956a0220b4f6beca0310489a7074442a1f30c488095cac"
            },
            {
              "path": "package.json",
              "sha256": "bfdc9d460b95285bf9f33fd0b39f7827034ff9841ccd8fc219209b631a9c1c56",
              "tlsh": "2611a533d5b65d230178eb55a96b0e21b0d34b3f2060080bb6bd202d8ff356654de758"
            }
          ],
          "package_integrity": [
            {
              "filename": "webservices.rest-99.1.4.tgz",
              "hashes": {
                "sha1": "946bc75beb6b380d689d3dd756100d85d008ec3a",
                "sha512_sri": "sha512-sGqgdWhvZ01orOpvdZ0lhYl/c4YqlUtxekAsW1AIKEAQpEh53S3hnLnlXrMMV1I1Q/xYbO006hze8aZT5VwFmA=="
              }
            }
          ]
        }
      },
      "package": {
        "ecosystem": "npm",
        "name": "webservices.rest"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "SEMVER"
        }
      ],
      "versions": [
        "99.1.4",
        "99.1.3",
        "99.1.0"
      ]
    }
  ],
  "aliases": [
    "GHSA-2qjx-pgq9-vx24"
  ],
  "credits": [
    {
      "contact": [
        "actran@amazon.com"
      ],
      "name": "Amazon Inspector",
      "type": "FINDER"
    }
  ],
  "database_specific": {
    "malicious-packages-origins": [
      {
        "id": "GHSA-2qjx-pgq9-vx24",
        "import_time": "2026-05-25T09:37:28.953642246Z",
        "modified_time": "2026-05-25T08:55:04Z",
        "ranges": [
          {
            "events": [
              {
                "introduced": "0"
              }
            ],
            "type": "SEMVER"
          }
        ],
        "sha256": "a57ae4de9ce6de1c3c863c503ad4e502e5137ffa86af9bfac2aab959a1744f6c",
        "source": "ghsa-malware"
      },
      {
        "id": "IN-MAL-2026-004327",
        "import_time": "2026-05-26T05:52:23.158080536Z",
        "modified_time": "2026-05-23T12:51:57Z",
        "sha256": "fcfef724e033f38c0dfa64b51dc538baf5baa3faf0fe7e6a1ca4f4679f29ff88",
        "source": "amazon-inspector",
        "versions": [
          "99.1.4"
        ]
      },
      {
        "id": "IN-MAL-2026-004319",
        "import_time": "2026-05-26T05:52:22.147518075Z",
        "modified_time": "2026-05-23T12:26:30Z",
        "sha256": "3951a18887354b4f234ad8251c4a4717109d5386c397d9cc981f9aedcd4b52db",
        "source": "amazon-inspector",
        "versions": [
          "99.1.3"
        ]
      },
      {
        "id": "IN-MAL-2026-004325",
        "import_time": "2026-05-26T05:52:22.920285259Z",
        "modified_time": "2026-05-23T12:48:28Z",
        "sha256": "3ac57adca5ac41a42ad169f419c309033a4987b713e76c2b019598e49d3e120b",
        "source": "amazon-inspector",
        "versions": [
          "99.1.4"
        ]
      },
      {
        "id": "IN-MAL-2026-003776",
        "import_time": "2026-05-26T05:51:17.586044189Z",
        "modified_time": "2026-05-21T08:14:33Z",
        "sha256": "c47c5da15de80c0473b9ccdb9899cb24607c3338914d67fe3331b169f5c1553b",
        "source": "amazon-inspector",
        "versions": [
          "99.1.0"
        ]
      },
      {
        "id": "IN-MAL-2026-003777",
        "import_time": "2026-05-26T05:51:17.682058123Z",
        "modified_time": "2026-05-21T08:16:23Z",
        "sha256": "d4048dade5fc29d39639d1a9c3c4c536b7e206dc81c69547c7c9888e53b97e11",
        "source": "amazon-inspector",
        "versions": [
          "99.1.0"
        ]
      },
      {
        "id": "IN-MAL-2026-004317",
        "import_time": "2026-05-26T05:52:21.919739821Z",
        "modified_time": "2026-05-23T12:24:33Z",
        "sha256": "fc21487380e93ed945074003a8cb3db51c4f406e9cad0b314cc1f2f62c8676ac",
        "source": "amazon-inspector",
        "versions": [
          "99.1.3"
        ]
      }
    ]
  },
  "details": "\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (c47c5da15de80c0473b9ccdb9899cb24607c3338914d67fe3331b169f5c1553b)\nPackage name `webservices.rest` impersonates the OpenMRS REST API naming convention and is published at version 99.1.0 \u2014 the canonical dependency-confusion version-bump pattern designed to outrank an internal/private package of the same name in mixed registry resolution. The package\u0027s only functional behavior is to load a separate, caret-pinned dependency `webservices.rest-utils@^1.0.5`: `package.json` declares `\"postinstall\": \"node index.js\"`, and `index.js` line 2 calls `require(\u0027webservices.rest-utils\u0027)` wrapped in an empty try/catch that suppresses any errors. This means `npm install webservices.rest` silently fetches and executes whatever code `webservices.rest-utils` contains, both at install (via postinstall) and at import. Additional integrity-of-publication red flags: README claims an \u0027OpenMRS Community Contributor\u0027 affiliation, but the LICENSE file copyright is held by \u0027dov-nods-autho\u0027 and the declared license disagrees between `package.json` (Apache-2.0) and the LICENSE file (MIT). The package itself contains no other functionality \u2014 it is a thin loader stub whose sole supply-chain effect is to drag the caret-pinned utility package into the installer\u0027s dependency tree and execute it.\n\n## Source: ghsa-malware (a57ae4de9ce6de1c3c863c503ad4e502e5137ffa86af9bfac2aab959a1744f6c)\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-4335",
  "modified": "2026-05-26T05:55:05Z",
  "published": "2026-05-21T08:14:33Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/advisories/GHSA-2qjx-pgq9-vx24"
    },
    {
      "type": "PACKAGE",
      "url": "https://www.npmjs.com/package/webservices.rest/v/99.1.4"
    },
    {
      "type": "PACKAGE",
      "url": "https://www.npmjs.com/package/webservices.rest/v/99.1.0"
    },
    {
      "type": "PACKAGE",
      "url": "https://www.npmjs.com/package/webservices.rest/v/99.1.3"
    }
  ],
  "schema_version": "1.7.4",
  "summary": "Malicious code in webservices.rest (npm)"
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

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.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…