MAL-2026-10698

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

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

Source: amazon-inspector (68f0d3e266200dd193458cccca682b6fddefd14883c02bd4bfd6f98f722690cb)

The package ships a single file, index.html, which is declared as the package main. On render, index.html fetches https://bitbucket.org/p2p-alt-public/p2p-emis/raw/main/GameWebSight with a cache-busting query string and injects the response into the page via document.open(); document.write(html);, executing whatever HTML/JS the remote returns. The URL is pinned to the mutable main branch with no commit SHA and no integrity/hash verification, so the repository owner (or anyone with write access to that Bitbucket repo) can change the executed payload at any time. The package has no npm lifecycle scripts and the main is HTML rather than JS, so npm install and require() are themselves inert — the fetch-and-execute path only fires when the HTML is opened in a browser, which is the package's advertised use. Author metadata is empty ("author": "", empty keywords, generic ISC license, one-line description), which is unusual for a loader that proxies arbitrary remote code into a browser context.

Source: ghsa-malware (e0f4f7e738f3c8d0c67360c47bcd6bcbb6e66c15539d05ff1c5db4133b402b98)

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-jqc8-qp8m-m77v",
            "import_time": "2026-07-16T09:01:59.998439832Z",
            "modified_time": "2026-07-16T08:13:04Z",
            "ranges": [
                {
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ],
                    "type": "SEMVER"
                }
            ],
            "sha256": "e0f4f7e738f3c8d0c67360c47bcd6bcbb6e66c15539d05ff1c5db4133b402b98",
            "source": "ghsa-malware"
        },
        {
            "id": "IN-MAL-2026-011283",
            "import_time": "2026-08-04T22:30:08.87475803Z",
            "modified_time": "2026-08-04T21:59:01Z",
            "sha256": "4d19478f56568d1f2f3ac49016c5369f5690d7246d32b605fef3c7e04dc0aa6b",
            "source": "amazon-inspector",
            "versions": [
                "1.0.1"
            ]
        },
        {
            "id": "IN-MAL-2026-013257",
            "import_time": "2026-08-05T06:00:59.039649919Z",
            "modified_time": "2026-08-05T05:56:55Z",
            "sha256": "2a6b5620a4cf74d4c7df002a25e1b2dcebc5afbf86d0fdaaeed53dff34e6f65a",
            "source": "amazon-inspector",
            "versions": [
                "1.0.0"
            ]
        },
        {
            "id": "IN-MAL-2026-012937",
            "import_time": "2026-08-05T06:00:21.875499871Z",
            "modified_time": "2026-08-05T05:10:42Z",
            "sha256": "68f0d3e266200dd193458cccca682b6fddefd14883c02bd4bfd6f98f722690cb",
            "source": "amazon-inspector",
            "versions": [
                "1.0.3"
            ]
        },
        {
            "id": "IN-MAL-2026-012939",
            "import_time": "2026-08-05T06:00:22.106784156Z",
            "modified_time": "2026-08-05T05:10:57Z",
            "sha256": "83069a7f75950a596fe4450a9e25d8f1bd93ab0232fd44324ad54f0ed4a11b57",
            "source": "amazon-inspector",
            "versions": [
                "1.0.2"
            ]
        },
        {
            "id": "IN-MAL-2026-012935",
            "import_time": "2026-08-05T06:00:21.656645074Z",
            "modified_time": "2026-08-05T05:10:28Z",
            "sha256": "b7809e2c8748776300f4e1b18c5d20b71aee53f4e62d06f61570b2226b5cd44b",
            "source": "amazon-inspector",
            "versions": [
                "1.0.4"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / websight2-p2p

Package

Name
websight2-p2p
View open source insights on deps.dev
Purl
pkg:npm/websight2-p2p

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

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"
    }
]
indicators
{
    "evidence_files": [
        {
            "path": "index.html",
            "sha256": "c391366239baf3b331169b52abbcca515c471d50680c45f1f6d883a1df2559f4",
            "tlsh": "d2f02e75843a0e108ab02d7995a6f2edfb65252574439f40f5cc03571d52d27cd42bcc"
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/websight2-p2p/MAL-2026-10698.json"