MAL-2026-10697

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/websight-p2p/MAL-2026-10697.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-10697
Aliases
  • GHSA-f4xq-pw58-878h
Published
2026-07-16T08:13:03Z
Modified
2026-08-05T06:36:41Z
Summary
Malicious code in websight-p2p (npm)
Details

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

Source: amazon-inspector (a70a4fdffa4457cd6366270226f065017c57aeac78fdbb062237ebf39284af78)

The package ships a single index.html whose body fetches https://loader.p2pgames.workers.dev/ (with header x-access: p2p) and passes the response to document.write(), executing whatever HTML/JavaScript the worker returns. There is no integrity check, no version pinning, and the worker can serve different content per request or per caller. There are no npm lifecycle hooks, so installing the package does not execute code on the developer's machine; the remote-execution behavior only fires when the HTML is opened in a browser by an end user of a consumer application that ships this file. Concerns: any site embedding this file fully delegates page-script control to the author-controlled worker (mutable, unpinned, no SRI), so today's benign content can become tomorrow's attacker payload without any package change. This does not fit the install-time-RCE or active-attack threshold (no install/import-time execution against the installer; no exfiltration of installer secrets), but the runtime fetch-and-execute pattern from a mutable author-controlled endpoint warrants human review before publishing a verdict.

Source: ghsa-malware (dd3e8937aed84d88b684e09a1fc8e874142e8660793e873740d19ebe2870067c)

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": [
        {
            "id": "GHSA-f4xq-pw58-878h",
            "import_time": "2026-07-16T09:01:59.9954329Z",
            "modified_time": "2026-07-16T08:13:04Z",
            "ranges": [
                {
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ],
                    "type": "SEMVER"
                }
            ],
            "sha256": "dd3e8937aed84d88b684e09a1fc8e874142e8660793e873740d19ebe2870067c",
            "source": "ghsa-malware"
        },
        {
            "id": "IN-MAL-2026-011314",
            "import_time": "2026-08-04T22:30:10.558533439Z",
            "modified_time": "2026-08-04T22:03:34Z",
            "sha256": "9366852644237a1af32c3638d31bddffe3faef750e6a190c91f069340aa9ee6f",
            "source": "amazon-inspector",
            "versions": [
                "1.0.1"
            ]
        },
        {
            "id": "IN-MAL-2026-012936",
            "import_time": "2026-08-05T06:00:21.764242206Z",
            "modified_time": "2026-08-05T05:10:35Z",
            "sha256": "03450671636974704f56ce65b028fa86e160846c546da1438c95a620fe857a40",
            "source": "amazon-inspector",
            "versions": [
                "1.0.2"
            ]
        },
        {
            "id": "IN-MAL-2026-013261",
            "import_time": "2026-08-05T06:00:59.428492704Z",
            "modified_time": "2026-08-05T05:57:32Z",
            "sha256": "59767c5ab7f9a6fef6dc9e73b67ac6d3381e757a41200360c0999f8ddb728413",
            "source": "amazon-inspector",
            "versions": [
                "1.0.0"
            ]
        },
        {
            "id": "IN-MAL-2026-013260",
            "import_time": "2026-08-05T06:00:59.332298939Z",
            "modified_time": "2026-08-05T05:57:23Z",
            "sha256": "8ba526829a368a1bb99f51de17ec2b9246c86b55c946e52fb1c73371cdaa9ac5",
            "source": "amazon-inspector",
            "versions": [
                "1.0.5"
            ]
        },
        {
            "id": "IN-MAL-2026-012964",
            "import_time": "2026-08-05T06:00:25.248247124Z",
            "modified_time": "2026-08-05T05:14:23Z",
            "sha256": "a70a4fdffa4457cd6366270226f065017c57aeac78fdbb062237ebf39284af78",
            "source": "amazon-inspector",
            "versions": [
                "1.0.3"
            ]
        },
        {
            "id": "IN-MAL-2026-012938",
            "import_time": "2026-08-05T06:00:21.98697685Z",
            "modified_time": "2026-08-05T05:10:50Z",
            "sha256": "beecbdfaa96d8fa909bc089776f104f7f6b01839ef2cff10809e3ee5909ff42d",
            "source": "amazon-inspector",
            "versions": [
                "1.0.6"
            ]
        },
        {
            "id": "IN-MAL-2026-013262",
            "import_time": "2026-08-05T06:00:59.526050037Z",
            "modified_time": "2026-08-05T05:57:40Z",
            "sha256": "fa78703630e73abbfa7b161c5cf0f026e354bd257cf2d3543496a8a3bec5b9e0",
            "source": "amazon-inspector",
            "versions": [
                "1.0.4"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / websight-p2p

Package

Affected ranges

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

Affected versions

1.*
1.0.0
1.0.1
1.0.2
1.0.3
1.0.4
1.0.5
1.0.6

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"
    },
    {
        "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
{
    "evidence_files": [
        {
            "path": "index.html",
            "sha256": "7cd5f3b695efe657e3dea1169dca1c7d55ce211f7683859662216de947177316",
            "tlsh": "abe022770526633802a622aca53cefcdac348008b0a2e5c6d3ae068980db44bcc49f69"
        },
        {
            "path": "package.json",
            "sha256": "694bc740ac23cb7432d67eaa156e991f21a5da7fc1fbfa45723227d65a75bdd9",
            "tlsh": "e9c012140c26a42354c45a624a668506b2218d1b0400b80c979ba82c42df6b398b820c"
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/websight-p2p/MAL-2026-10697.json"