Skip to content

Commit 2666156

Browse files
security(deps): pin @asyncapi packages to non-compromised versions (#316)
Several AsyncAPI npm packages were briefly compromised on 2026-07-14 (the "Miasma RAT" supply-chain incident, delivered via a post-install sync.js dropper). sei-js pulls @asyncapi/specs transitively through mint -> @asyncapi/parser, whose range can float up into the compromised 6.11.2 on any fresh install or lockfile regeneration. Pin the four affected packages to their latest non-compromised versions via pnpm.overrides so no install can resolve a malicious release. Adds a patch changeset across all six published packages and records the fix in the root CHANGELOG (2.0.0 -> 2.0.1) to ship it as a coordinated release. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent bc17ace commit 2666156

4 files changed

Lines changed: 59 additions & 8 deletions

File tree

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
"@sei-js/create-sei": patch
3+
"@sei-js/ledger": patch
4+
"@sei-js/mcp-server": patch
5+
"@sei-js/precompiles": patch
6+
"@sei-js/registry": patch
7+
"@sei-js/sei-global-wallet": patch
8+
---
9+
10+
Harden the workspace against the 2026-07-14 "Miasma RAT" AsyncAPI supply-chain incident by pinning `@asyncapi/*` packages to non-compromised versions via root `pnpm.overrides`.
11+
12+
This stops a fresh install or lockfile regeneration from floating `@asyncapi/specs` up into the compromised `6.11.2` through the `mint` docs toolchain (`mint``@asyncapi/parser`). Resolved change: `@asyncapi/specs` `6.10.0``6.11.1`; `@asyncapi/generator`, `@asyncapi/generator-helpers`, and `@asyncapi/generator-components` are pinned preventively.
13+
14+
No shipped code or public API changes in this package — this is a repository/CI hardening release.

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,15 @@
11
# Changelog
2+
3+
## 2.0.1 — 2026-07-22
4+
5+
### Security
6+
7+
- Pin `@asyncapi/*` packages to non-compromised versions via `pnpm.overrides`, in
8+
response to the 2026-07-14 "Miasma RAT" AsyncAPI supply-chain incident. Stops a
9+
fresh install or lockfile regeneration from floating `@asyncapi/specs` up into the
10+
compromised `6.11.2` through the `mint` docs toolchain (`mint``@asyncapi/parser`).
11+
- Resolved change: `@asyncapi/specs` `6.10.0``6.11.1`.
12+
- `@asyncapi/generator`, `@asyncapi/generator-helpers`, and `@asyncapi/generator-components`
13+
pinned preventively (not currently in the tree).
14+
- No published `@sei-js/*` package's code or public API changes. A coordinated
15+
patch release across all six packages carries this note for consumer visibility.

package.json

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sei-js",
3-
"version": "2.0.0",
3+
"version": "2.0.1",
44
"private": true,
55
"license": "MIT",
66
"scripts": {
@@ -25,5 +25,13 @@
2525
"ts-node": "2.1.2",
2626
"typescript": "^5.8.2"
2727
},
28-
"packageManager": "pnpm@9.0.0"
28+
"packageManager": "pnpm@9.0.0",
29+
"pnpm": {
30+
"overrides": {
31+
"@asyncapi/specs": "6.11.1",
32+
"@asyncapi/generator": "3.3.0",
33+
"@asyncapi/generator-helpers": "1.1.0",
34+
"@asyncapi/generator-components": "1.0.0"
35+
}
36+
}
2937
}

pnpm-lock.yaml

Lines changed: 21 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)