MAL-2026-4335

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/webservices.rest/MAL-2026-4335.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-4335
Aliases
  • GHSA-2qjx-pgq9-vx24
Published
2026-05-21T08:14:33Z
Modified
2026-05-26T06:03:07.503993962Z
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.

Database specific
{
    "malicious-packages-origins": [
        {
            "import_time": "2026-05-25T09:37:28.953642246Z",
            "ranges": [
                {
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ],
                    "type": "SEMVER"
                }
            ],
            "sha256": "a57ae4de9ce6de1c3c863c503ad4e502e5137ffa86af9bfac2aab959a1744f6c",
            "source": "ghsa-malware",
            "id": "GHSA-2qjx-pgq9-vx24",
            "modified_time": "2026-05-25T08:55:04Z"
        },
        {
            "import_time": "2026-05-26T05:52:23.158080536Z",
            "sha256": "fcfef724e033f38c0dfa64b51dc538baf5baa3faf0fe7e6a1ca4f4679f29ff88",
            "source": "amazon-inspector",
            "id": "IN-MAL-2026-004327",
            "modified_time": "2026-05-23T12:51:57Z",
            "versions": [
                "99.1.4"
            ]
        },
        {
            "import_time": "2026-05-26T05:52:22.147518075Z",
            "sha256": "3951a18887354b4f234ad8251c4a4717109d5386c397d9cc981f9aedcd4b52db",
            "source": "amazon-inspector",
            "id": "IN-MAL-2026-004319",
            "modified_time": "2026-05-23T12:26:30Z",
            "versions": [
                "99.1.3"
            ]
        },
        {
            "import_time": "2026-05-26T05:52:22.920285259Z",
            "sha256": "3ac57adca5ac41a42ad169f419c309033a4987b713e76c2b019598e49d3e120b",
            "id": "IN-MAL-2026-004325",
            "source": "amazon-inspector",
            "modified_time": "2026-05-23T12:48:28Z",
            "versions": [
                "99.1.4"
            ]
        },
        {
            "import_time": "2026-05-26T05:51:17.586044189Z",
            "sha256": "c47c5da15de80c0473b9ccdb9899cb24607c3338914d67fe3331b169f5c1553b",
            "id": "IN-MAL-2026-003776",
            "source": "amazon-inspector",
            "modified_time": "2026-05-21T08:14:33Z",
            "versions": [
                "99.1.0"
            ]
        },
        {
            "import_time": "2026-05-26T05:51:17.682058123Z",
            "sha256": "d4048dade5fc29d39639d1a9c3c4c536b7e206dc81c69547c7c9888e53b97e11",
            "source": "amazon-inspector",
            "id": "IN-MAL-2026-003777",
            "modified_time": "2026-05-21T08:16:23Z",
            "versions": [
                "99.1.0"
            ]
        },
        {
            "import_time": "2026-05-26T05:52:21.919739821Z",
            "sha256": "fc21487380e93ed945074003a8cb3db51c4f406e9cad0b314cc1f2f62c8676ac",
            "source": "amazon-inspector",
            "id": "IN-MAL-2026-004317",
            "modified_time": "2026-05-23T12:24:33Z",
            "versions": [
                "99.1.3"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / webservices.rest

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

99.*
99.1.0
99.1.3
99.1.4

Database specific

cwes
[
    {
        "cweId": "CWE-506",
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature."
    },
    {
        "cweId": "CWE-506",
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature."
    },
    {
        "cweId": "CWE-506",
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature."
    },
    {
        "cweId": "CWE-506",
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature."
    }
]
indicators
{
    "package_integrity": [
        {
            "hashes": {
                "sha512_sri": "sha512-sGqgdWhvZ01orOpvdZ0lhYl/c4YqlUtxekAsW1AIKEAQpEh53S3hnLnlXrMMV1I1Q/xYbO006hze8aZT5VwFmA==",
                "sha1": "946bc75beb6b380d689d3dd756100d85d008ec3a"
            },
            "filename": "webservices.rest-99.1.4.tgz"
        }
    ],
    "evidence_files": [
        {
            "sha256": "b75e901633d89e60a71832dc1d3014ffa6310e066b625c5d0b595c1f81fed4e2",
            "tlsh": "3ce06853b5ea31215624f563956a0220b4f6beca0310489a7074442a1f30c488095cac",
            "path": "index.js"
        },
        {
            "sha256": "bfdc9d460b95285bf9f33fd0b39f7827034ff9841ccd8fc219209b631a9c1c56",
            "tlsh": "2611a533d5b65d230178eb55a96b0e21b0d34b3f2060080bb6bd202d8ff356654de758",
            "path": "package.json"
        }
    ],
    "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"
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/webservices.rest/MAL-2026-4335.json"