Supply chain · June 7, 2025

Leaked npm token let attackers publish a remote access trojan in 17 react-native-aria and gluestack packages

From 6 to 8 June 2025 an attacker used a leaked npm access token belonging to a gluestack maintainer, which gluestack says was not protected by two-factor authentication, to publish malicious versions of 16 @react-native-aria packages and one @gluestack-ui package. The hidden payload was a remote access trojan that could run commands and upload files from the developer's machine. If you installed an affected version, treat the machine as compromised and rotate the credentials it held.

DisclosedJune 7, 2025
Earliest known activityJune 6, 2025
Affected@react-native-aria/focus, @react-native-aria/utils, @react-native-aria/overlays, @gluestack-ui/utils, gluestack
TypeSupply chain
StatusResolved

What was exposed

Anything on a machine that installed and loaded an affected version. Aikido describes the payload as a remote access trojan that connects to a command-and-control server over socket.io, runs operator commands and uploads files, so SSH keys, cloud credentials, .npmrc and .env files, browser data and source code on that machine were all reachable. On Windows it also set up persistence under %LOCALAPPDATA%\Programs\Python\Python3127 and put that folder first on PATH. Gluestack says no system-level compromise was confirmed and argued impact was limited because the libraries are frontend code; the code still ran wherever the module was loaded, including in Node.js during tests and builds. The root cause was itself a credential: a long-lived npm token without 2FA.

Am I affected?

You are affected if a lockfile in your project resolved any of these versions between 6 and 8 June 2025: @react-native-aria/focus 0.2.10, utils 0.2.13, overlays 0.3.16, interactions 0.2.17, toggle 0.2.12, switch 0.2.5, checkbox 0.2.11, radio 0.2.14, button 0.2.11, menu 0.2.16, listbox 0.2.10, tabs 0.2.14, combobox 0.2.8, disclosure 0.2.9, slider 0.2.13, separator 0.2.7, or the @gluestack-ui package at 0.1.16 or 0.1.17 (Aikido names it @gluestack-ui/utils; gluestack's report says @gluestack-ui/core). Check firewall logs for connections to the IP addresses below and, on Windows, the Python3127 folder.

What to do now

  1. Run npm list and search package-lock.json and yarn.lock for the versions above; upgrade to the clean releases and run npm audit signatures.
  2. If an affected version was loaded on a machine, isolate it and treat it as compromised. Aikido advises that the system should no longer be trusted.
  3. From a clean machine, rotate every credential the affected machine held, including SSH keys, npm and GitHub tokens, and cloud and API keys in .env files.
  4. Check firewall and proxy logs for outbound connections to 136.0.9.8 and 85.239.62.36.
  5. If you publish packages, require 2FA for publishing and replace long-lived npm tokens with trusted publishing.

Keys to rotate

Guides to the credentials this incident put at risk:

Timeline

  1. @react-native-aria/focus 0.2.10 is published with malicious code at 21:33 GMT, the package's first release in about eight months. Source
  2. Fifteen more packages are compromised in two batches. Aikido publishes its analysis of the payload. Source
  3. Gluestack says it contained the incident at 01:22 GMT: compromised versions deprecated, tokens revoked and GitHub access restricted. Source
  4. Gluestack makes its public disclosure. It later published incident report RN-ARIA-2025-001 on 4 September 2025. Source

Indicators

From the advisories listed below. Use them to search your logs, lockfiles and workflow runs.

  • Malicious versions listed above, with the payload hidden after long runs of whitespace in lib/commonjs/index.js.
  • Outbound connections to 136.0.9.8 and 85.239.62.36 (gluestack lists ports 3306 and 27017).
  • Files under %LOCALAPPDATA%\Programs\Python\Python3127 on Windows.

What this changes for credential handling

  • A single leaked publish token without 2FA was enough. BotPassword keeps registry tokens encrypted and injects them only into the command that needs them, instead of leaving them in files.

Frequently asked questions

Am I affected by the @react-native-aria/focus incident?

You are affected if a lockfile in your project resolved any of these versions between 6 and 8 June 2025: @react-native-aria/focus 0.2.10, utils 0.2.13, overlays 0.3.16, interactions 0.2.17, toggle 0.2.12, switch 0.2.5, checkbox 0.2.11, radio 0.2.14, button 0.2.11, menu 0.2.16, listbox 0.2.10, tabs 0.2.14, combobox 0.2.8, disclosure 0.2.9, slider 0.2.13, separator 0.2.7, or the @gluestack-ui package at 0.1.16 or 0.1.17 (Aikido names it @gluestack-ui/utils; gluestack's report says @gluestack-ui/core). Check firewall logs for connections to the IP addresses below and, on Windows, the Python3127 folder.

What was exposed in the @react-native-aria/focus incident?

Anything on a machine that installed and loaded an affected version. Aikido describes the payload as a remote access trojan that connects to a command-and-control server over socket.io, runs operator commands and uploads files, so SSH keys, cloud credentials, .npmrc and .env files, browser data and source code on that machine were all reachable. On Windows it also set up persistence under %LOCALAPPDATA%\Programs\Python\Python3127 and put that folder first on PATH. Gluestack says no system-level compromise was confirmed and argued impact was limited because the libraries are frontend code; the code still ran wherever the module was loaded, including in Node.js during tests and builds. The root cause was itself a credential: a long-lived npm token without 2FA.

Which keys should I rotate?

Rotate any npm, GitHub, AWS (IAM access keys), Google Cloud (service account keys and API keys), Azure (Microsoft Entra app client secrets) credentials that were reachable from affected systems, starting with the ones that can publish code or reach production.

Keep keys out of reach of the next compromised package

BotPassword is in early access. Request an invite and we'll email you when your spot opens.