mal-2026-12424
Vulnerability from ossf_malicious_packages
Published
2026-08-05 12:57
Modified
2026-08-21 12:28
Summary
Malicious code in react-native-ui-message (npm)
Details

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

Source: amazon-inspector (615dd38493e2ff2257cfe5fe94b089a9001329b0d68c6b48f7ac491e4fcb205f)

react-native-ui-message@1.0.0 declares a postinstall hook that runs src/utilities/SubscriptionGuard.js. On install the script enumerates non-internal network interfaces via os.networkInterfaces() to obtain the host's MAC address, then POSTs {mac, os: process.platform, path: __dirname} to https://react-native-ui-message.com/api/EntitlementState. It then issues a GET to https://react-native-ui-message.com/api/ValidateLicense/... and passes the response body to Node's vm.runInContext with a context exposing require/process/Buffer, executing arbitrary server-returned JavaScript on the installer's machine. The accompanying integrity check compares a constant string against itself, so no verification of the fetched code occurs. The package presents itself as a pure-JS React Native toast/message component, for which no license-server-controlled remote code path is required.

Source: ghsa-malware (dee8481cdae210e822ba45fe71276dffeb9fd613380963ab7e4d10178298d847)

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.

{
  "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": "src/utilities/SubscriptionGuard.js",
              "sha256": "d3563aafe52c819ebdbc1d830a26b7c1376a3814195ba0b1058e9731d6f9358d",
              "tlsh": "045134dc69a7145247b267f85d27501ffba081233240c2657abd83e02ff6414a5a3fdc"
            }
          ],
          "package_integrity": [
            {
              "filename": "react-native-ui-message-1.0.0.tgz",
              "hashes": {
                "sha1": "0bfd450b06dde0f1ef8ead88a0c122eae30a09fc",
                "sha512_sri": "sha512-UlZkYfBiZS5Nd0ubDa2KXuOOPAKfpSQ8MK388hYko/5jbGtactlTa34UcBDKXqzvAUbzimYbkbSK+rmpN/IWGw=="
              }
            }
          ]
        }
      },
      "package": {
        "ecosystem": "npm",
        "name": "react-native-ui-message"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "SEMVER"
        }
      ],
      "versions": [
        "1.0.0"
      ]
    }
  ],
  "aliases": [
    "GHSA-w3j6-3pww-qfcw"
  ],
  "credits": [
    {
      "contact": [
        "inspector-research@amazon.com"
      ],
      "name": "Amazon Inspector",
      "type": "FINDER"
    }
  ],
  "database_specific": {
    "malicious-packages-origins": [
      {
        "id": "IN-MAL-2026-014825",
        "import_time": "2026-08-05T13:08:49.429917625Z",
        "modified_time": "2026-08-05T12:57:43Z",
        "sha256": "615dd38493e2ff2257cfe5fe94b089a9001329b0d68c6b48f7ac491e4fcb205f",
        "source": "amazon-inspector",
        "versions": [
          "1.0.0"
        ]
      },
      {
        "id": "GHSA-w3j6-3pww-qfcw",
        "import_time": "2026-08-21T12:26:03.500979162Z",
        "modified_time": "2026-08-21T11:43:09Z",
        "ranges": [
          {
            "events": [
              {
                "introduced": "0"
              }
            ],
            "type": "SEMVER"
          }
        ],
        "sha256": "dee8481cdae210e822ba45fe71276dffeb9fd613380963ab7e4d10178298d847",
        "source": "ghsa-malware"
      }
    ]
  },
  "details": "\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (615dd38493e2ff2257cfe5fe94b089a9001329b0d68c6b48f7ac491e4fcb205f)\nreact-native-ui-message@1.0.0 declares a postinstall hook that runs src/utilities/SubscriptionGuard.js. On install the script enumerates non-internal network interfaces via os.networkInterfaces() to obtain the host\u0027s MAC address, then POSTs {mac, os: process.platform, path: __dirname} to https://react-native-ui-message.com/api/EntitlementState. It then issues a GET to https://react-native-ui-message.com/api/ValidateLicense/... and passes the response body to Node\u0027s vm.runInContext with a context exposing require/process/Buffer, executing arbitrary server-returned JavaScript on the installer\u0027s machine. The accompanying integrity check compares a constant string against itself, so no verification of the fetched code occurs. The package presents itself as a pure-JS React Native toast/message component, for which no license-server-controlled remote code path is required.\n\n## Source: ghsa-malware (dee8481cdae210e822ba45fe71276dffeb9fd613380963ab7e4d10178298d847)\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-12424",
  "modified": "2026-08-21T12:28:12.526527060Z",
  "published": "2026-08-05T12:57:43Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://www.npmjs.com/package/react-native-ui-message/v/1.0.0"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/advisories/GHSA-w3j6-3pww-qfcw"
    }
  ],
  "schema_version": "1.7.4",
  "summary": "Malicious code in react-native-ui-message (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…