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

Source: https://botpassword.com/incidents/2025-06-gluestack-react-native-aria
Disclosed: 2025-06-07 · Type: Supply chain · Status: Resolved · Updated: 2026-10-25

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.

Identifiers: RN-ARIA-2025-001

## 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.

## Who is 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

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

- [npm](https://botpassword.com/keys/npm)
- [GitHub](https://botpassword.com/keys/github)
- [AWS (IAM access keys)](https://botpassword.com/keys/aws)
- [Google Cloud (service account keys and API keys)](https://botpassword.com/keys/google-cloud)
- [Azure (Microsoft Entra app client secrets)](https://botpassword.com/keys/azure)

## Timeline

- 2025-06-06: `@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](https://gluestack.io/blogs/public-incident-report))
- 2025-06-07: Fifteen more packages are compromised in two batches. Aikido publishes its analysis of the payload. ([source](https://www.aikido.dev/blog/supply-chain-attack-on-react-native-aria-ecosystem))
- 2025-06-08: Gluestack says it contained the incident at 01:22 GMT: compromised versions deprecated, tokens revoked and GitHub access restricted. ([source](https://gluestack.io/blogs/public-incident-report))
- 2025-06-09: Gluestack makes its public disclosure. It later published incident report RN-ARIA-2025-001 on 4 September 2025. ([source](https://gluestack.io/blogs/public-incident-report))

## Indicators

- 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.

## Sources

- https://www.aikido.dev/blog/supply-chain-attack-on-react-native-aria-ecosystem
- https://gluestack.io/blogs/public-incident-report
