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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** CRITICAL 10.0
- **CVSS:** 10.0 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Changed (impact reaches other components); Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.77% (percentile 52, 2026-11-26)
- **CWE:** CWE-506
- **Aliases:** GHSA-6xwp-cp5h-q856
- **Published:** 2026-05-19T20:28:07.000Z
- **Modified:** 2026-10-24T20:10:00.137Z

## Who should check

- Projects that depend on npm package @beproduct/nestjs-auth (\>= 0.1.2, \<= 0.1.19)
- Anyone running beproduct-org-nestjs-auth \>= 0.1.2, \<= 0.1.19

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

## Affected and fixed versions

- npm `@beproduct/nestjs-auth`: affected \>= 0.1.2, \<= 0.1.19; fixed no fix listed yet (osv)
- beproduct-org-nestjs-auth: \>= 0.1.2, \<= 0.1.19 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-46412. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-46412.md
Affected: @beproduct/nestjs-auth >= 0.1.2, <= 0.1.19
Fixed in: no fixed version listed yet

Steps:
1. Search this machine and project for @beproduct/nestjs-auth (npm), beproduct-org-nestjs-auth: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-46412 being exploited?

There is no confirmed exploitation: CVE-2026-46412 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.77% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-46412?

Critical: CVSS 10.0 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2026-46412?

@beproduct/nestjs-auth \>= 0.1.2, \<= 0.1.19.

### Is there a fix for CVE-2026-46412?

No fixed version is listed in the sources yet. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-46412?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

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

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-46412>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-6xwp-cp5h-q856> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-46412> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-46412>
