# CVE-2026-46412: Malicious code in @beproduct/nestjs-auth (0.1.2 through 0.1.19) — Mini Shai-Hulud worm

- Severity: Critical 10.0 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.42%, higher than 38% of CVEs (2026-12-01)
- Published: 2026-05-19T20:28:07.000Z
- Modified: 2026-10-24T20:10:00.137Z
- Also known as: GHSA-6xwp-cp5h-q856
- Weaknesses: CWE-506
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: GitHub_M

## Description

@beproduct/nestjs-auth is a NestJS authentication module for BeProduct IDS (Identity Server) with OpenID Connect support. Between 2026-05-11 20:19 UTC and 22:56 UTC, an attacker used a compromised npm publish token to publish 18 malicious versions of `@beproduct/nestjs-auth` (0.1.2 through 0.1.19). The postinstall payload attempted to harvest npm tokens (from `~/.npmrc`);  GitHub personal access tokens, OAuth tokens (`gho_*`), and Actions OIDC tokens; AWS credentials (from environment variables and `~/.aws/credentials`); HashiCorp Vault tokens; and other secrets present in environment variables. Version `0.1.20` is a clean republish from the original `0.1.1` source tree. Anyone who installed any version in the range `>=0.1.2 <=0.1.19` should remove the package and clean the npm cache; install the clean version; rotate every credential present in the install environment, including all npm publish tokens, all GitHub PATs and OAuth tokens, AWS access keys, HashiCorp Vault tokens, and any other secret that was in env vars or config files at install time; scan affected hosts for indicators of compromise and, if any are found, treat the host as compromised and reimage; and check committed repository history for unexpected additions in `.claude/` or `.vscode/` directories. The worm is known to commit `setup.mjs` + hook configs to PR branches via automated agent runtimes.

(As written by CVE List.)

## Affected

- BeProduct beproduct-org-nestjs-auth: >= 0.1.2, <= 0.1.19
- @beproduct/nestjs-auth (npm): from 0.1.2 up to 0.1.19

## Every score

- GitHub_M: CVSS:3.1 10.0 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H`
- GitHub: CVSS:3.1 10.0 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H`

## References

- <https://github.com/BeProduct/beproduct-org-nestjs-auth/security/advisories/GHSA-6xwp-cp5h-q856> (web)
- <https://www.aikido.dev/blog/checklist-github-actions> (web)
- <https://www.aikido.dev/blog/mini-shai-hulud-is-back-tanstack-compromised> (web)
- <https://github.com/BeProduct/beproduct-org-nestjs-auth> (package)

## Sources

- CVE List: [CVE-2026-46412](https://www.cve.org/CVERecord?id=CVE-2026-46412), CVE Terms of Use, modified 2026-07-20
- GitHub Advisory Database: [GHSA-6xwp-cp5h-q856](https://github.com/advisories/GHSA-6xwp-cp5h-q856), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-46412](https://nvd.nist.gov/vuln/detail/CVE-2026-46412), Public domain, modified 2026-10-24

---

Page: https://cve.day/CVE-2026-46412 · Whole record: https://cve.day/CVE-2026-46412.json · Rebuilt by cve.day 2026-11-25T22:59:29.238Z
