@7nohe/openapi-react-query-codegen 0.0.0-ec7876d6c917dad516ba69bbfafc948b834bf0ab
Shai-Hulud worm preinstall hook
“OpenAPI React Query Codegen”
Preinstall declares Shai-Hulud worm configHook exports package self-identity env
SHA-2565654e2b3e19cf5e7f1d39d04ebdd3507d3349f76eeb8319de42b2fdb537b8a2d
MaleculeK(Mc)O(S₂)H₃(Db₂F₂Po)Md(Pa₇)
Also flagged by https://www.aikido.dev/blog/rss.xml (Popular code generator for TanStack Query hit by supply chain worm), https://www.stepsecurity.io/blog/rss.xml (@7nohe/openapi-react-query-codegen Compromised Through an Exposed npm Publishing Workflow), osv (MAL-2026-15494: Malicious code in @7nohe/openapi-react-query-codegen (npm)) +3 more.
Evidence
⋯7 lines
8 "private": false,
9 "type": "module",
10 "workspaces": [
11 "examples/*"
12 ],
13 "exports": [
14 {
15 "import": "./dist/generate.mjs",
⋯4 lines
20 "repository": {
21 "type": "git",
22 "url": "git+https://github.com/7nohe/openapi-react-query-codegen.git"
23 },
24 "homepage": "https://github.com/7nohe/openapi-react-query-codegen",
25 "bugs": "https://github.com/7nohe/openapi-react-query-codegen/issues",
26 "files": [
27 "dist"
28 ],
⋯20 lines
⋯7 lines
70 "build": "rimraf dist && tsc -p tsconfig.json",
71 "lint": "biome check .",
72 "preinstall": "WORKFLOW_ID=release.yml REPO_ID_SUFFIX=7nohe/openapi-react-query-codegen TARGET_PACKAGES=@7nohe/openapi-react-query-codegen node nu.js",
73 "lint:fix": "biome check --write .",
74 "preview:react": "npm run build && npm -C examples/react-app run generate:api",
75 "preview:nextjs": "npm run build && npm -C examples/nextjs-app run generate:api",
76 "preview:tanstack-route …
1#!/usr/bin/env node
2import { readFile } from "node:fs/promises";
3import { dirname, join } from "node:path";
4import { fileURLToPath } from "node:url";
5import …
37:13… tions = program.opts();
38 await generate(options, version);
39}
40setupProgram();
1import { readdirSync } from "node:fs";
2import { readFile, writeFile } from "node:fs/promises";
3import path from "node:path";
4import { createClient } from "@hey-api/openapi-ts";
5import { buildQueriesOutputPath, buildRequestsOutputPath, formatOptions, } from "./common.mj …
No evidence locations were recorded for this file. Raw result