mal-2026-10177
Vulnerability from ossf_malicious_packages
Published
2026-07-10 21:29
Modified
2026-07-10 21:52
Summary
Malicious code in @jaymara/jsononifier (npm)
Details

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

Source: amazon-inspector (ade6fb9a07c6f1417e9569af48b6c638bf12fba7540493b1b38a2d6ba42d101c)

@jaymara/jsononifier@1.0.2 is advertised as a JSON formatting utility but ships a covert command-execution primitive that fires on require. index.js loads trigger.js, which checks for sandbox indicators (process.env.CI==='true', NODE_ENV==='test', existence of /.dockerenv) and the platform (win32); when those checks indicate a real Windows workstation, it schedules Executer.js via process.nextTick + setTimeout(5000). Executer.js XOR-decodes a byte array from payload.js using key 'xorkey123' and passes the resulting string to child_process.exec with { windowsHide: true }. payload.js openly comments the intent ('XOR-encoded command – not visible in source'). The current decoded value is a demo (calc.exe), but the mechanism — opaque encoded bytes decoded at runtime and handed to exec, gated to skip CI/test/Docker and only fire on real victim machines — is the attack: a future tarball can swap the byte array for any command without changing the visible code. None of this is required by, or consistent with, a JSON formatter.

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.
  • 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"
          },
          {
            "cweId": "CWE-506",
            "description": "The product contains code that appears to be malicious in nature.",
            "name": "Embedded Malicious Code"
          }
        ],
        "indicators": {
          "evidence_files": [
            {
              "path": "index.js",
              "sha256": "57beb8d9e87117a970ba48b458621c41ff8ec59456bd89af5d3f836679d5675d",
              "tlsh": "1ae07d41c9e1e08a3c6865e9dcd4c26257d6da0d380aa193e9c443e129c2cc80b32f79"
            },
            {
              "path": "package.json",
              "sha256": "9cd202b0bf5c652512584cdbe56f30f35fb722eb2bfdc2c8db9c26d753f13330",
              "tlsh": "73f0e574853159730ac8b9a69deac14775664e4f4184bc0a67d3006c438eaaa05ff32d"
            }
          ],
          "package_integrity": [
            {
              "filename": "jsononifier-1.0.0.tgz",
              "hashes": {
                "sha1": "7edf5a5bfb76b8d7c37354078fc83053b6c31f9a",
                "sha512_sri": "sha512-bfebzd/Z6wvIKataAAAPyvwmKyU5XEuf/hPYjVkMkDHIQaAny/R+cJXquxJC84Ov/BchJOyqUEjmni8OUZz//w=="
              }
            }
          ]
        }
      },
      "package": {
        "ecosystem": "npm",
        "name": "@jaymara/jsononifier"
      },
      "versions": [
        "1.0.0",
        "1.0.2",
        "1.0.1"
      ]
    }
  ],
  "credits": [
    {
      "contact": [
        "inspector-research@amazon.com"
      ],
      "name": "Amazon Inspector",
      "type": "FINDER"
    }
  ],
  "database_specific": {
    "malicious-packages-origins": [
      {
        "id": "IN-MAL-2026-009717",
        "import_time": "2026-07-10T21:50:33.089783497Z",
        "modified_time": "2026-07-10T21:29:53Z",
        "sha256": "7d4826185eb8033f7f55a85e760d0acb0425b463ce1ec95af4c1ae9f6d2ce05b",
        "source": "amazon-inspector",
        "versions": [
          "1.0.0"
        ]
      },
      {
        "id": "IN-MAL-2026-009715",
        "import_time": "2026-07-10T21:50:32.787378748Z",
        "modified_time": "2026-07-10T21:29:35Z",
        "sha256": "ade6fb9a07c6f1417e9569af48b6c638bf12fba7540493b1b38a2d6ba42d101c",
        "source": "amazon-inspector",
        "versions": [
          "1.0.2"
        ]
      },
      {
        "id": "IN-MAL-2026-009716",
        "import_time": "2026-07-10T21:50:32.951506235Z",
        "modified_time": "2026-07-10T21:29:46Z",
        "sha256": "bad937211c6f3e71e5b1d13c7d85c5c7188db6fd5df39ec3d1216668e3b6a009",
        "source": "amazon-inspector",
        "versions": [
          "1.0.1"
        ]
      }
    ]
  },
  "details": "\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (ade6fb9a07c6f1417e9569af48b6c638bf12fba7540493b1b38a2d6ba42d101c)\n@jaymara/jsononifier@1.0.2 is advertised as a JSON formatting utility but ships a covert command-execution primitive that fires on require. index.js loads trigger.js, which checks for sandbox indicators (process.env.CI===\u0027true\u0027, NODE_ENV===\u0027test\u0027, existence of /.dockerenv) and the platform (win32); when those checks indicate a real Windows workstation, it schedules Executer.js via process.nextTick + setTimeout(5000). Executer.js XOR-decodes a byte array from payload.js using key \u0027xorkey123\u0027 and passes the resulting string to child_process.exec with { windowsHide: true }. payload.js openly comments the intent (\u0027XOR-encoded command \u2013 not visible in source\u0027). The current decoded value is a demo (calc.exe), but the mechanism \u2014 opaque encoded bytes decoded at runtime and handed to exec, gated to skip CI/test/Docker and only fire on real victim machines \u2014 is the attack: a future tarball can swap the byte array for any command without changing the visible code. None of this is required by, or consistent with, a JSON formatter.\n",
  "id": "MAL-2026-10177",
  "modified": "2026-07-10T21:52:12Z",
  "published": "2026-07-10T21:29:35Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://www.npmjs.com/package/@jaymara/jsononifier/v/1.0.0"
    },
    {
      "type": "PACKAGE",
      "url": "https://www.npmjs.com/package/@jaymara/jsononifier/v/1.0.2"
    },
    {
      "type": "PACKAGE",
      "url": "https://www.npmjs.com/package/@jaymara/jsononifier/v/1.0.1"
    }
  ],
  "schema_version": "1.7.4",
  "summary": "Malicious code in @jaymara/jsononifier (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…