MAL-2026-12810

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/the-search/MAL-2026-12810.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-12810
Published
2026-08-05T13:15:32Z
Modified
2026-08-05T14:37:25.448321340Z
Summary
Malicious code in the-search (npm)
Details

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

Source: amazon-inspector (6f7901c35765e01f25defe0c4d489b8f320340b45968e89b9dafe5821b7561fd)

The package's main entry ships a self-invoking browser payload that reads document.cookie, base64-encodes the value, and submits it via an auto-created hidden form POST to a hardcoded webhook.site endpoint (https://webhook.site/86b505ff-4280-459f-9b36-e765825c0ada). The package has no legitimate declared purpose consistent with this behavior; bundling this module into a web application causes visitor cookies to be sent to an attacker-controlled destination. The base64 wrapping around the JSON body is minor evasion to obscure the exfiltrated content in network logs.

Database specific
{
    "malicious-packages-origins": [
        {
            "versions": [
                "1.0.1"
            ],
            "import_time": "2026-08-05T14:19:45.679925817Z",
            "source": "amazon-inspector",
            "id": "IN-MAL-2026-014947",
            "modified_time": "2026-08-05T13:15:40Z",
            "sha256": "6f7901c35765e01f25defe0c4d489b8f320340b45968e89b9dafe5821b7561fd"
        },
        {
            "versions": [
                "1.0.0"
            ],
            "import_time": "2026-08-05T14:19:45.592115024Z",
            "source": "amazon-inspector",
            "id": "IN-MAL-2026-014946",
            "modified_time": "2026-08-05T13:15:32Z",
            "sha256": "9a4b610bdaa6b914afe9cd2c19527ab88a43c7d36e939b19e1f2bf4fc15583dc"
        }
    ]
}
References
Credits

Affected packages

npm / the-search

Package

Affected ranges

Affected versions

1.*
1.0.0
1.0.1

Database specific

source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/the-search/MAL-2026-12810.json"
indicators
{
    "evidence_files": [
        {
            "path": "exploit.js",
            "tlsh": "4b11b11e35b71270097b05cc61e39798fb641116b407cc5576ccc6da1f6cc5624f6b88",
            "sha256": "d6b8f2abadf97fc9570a614c4ea169d44c9f6752b9e18f1862a1a6385c66be72"
        }
    ],
    "package_integrity": [
        {
            "hashes": {
                "sha512_sri": "sha512-Z8e0yXp8AvsdOpogEWVqQon5ZYsDuCruBygJnO2QSAL9FFacitONaP5QyLje2/WPGjZLfrkWEqVBXCsmUZ3gHA==",
                "sha1": "47b18ddeafc966d7384b050da3d48293d10c379f"
            },
            "filename": "the-search-1.0.1.tgz"
        }
    ]
}
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"
    }
]