{"answers":{"affected":"2 open source packages ship an affected version, including @beproduct/nestjs-auth.","exploited":"There is no known exploitation of CVE-2026-46412 in the wild and no public exploit code.","fix":"No fix has been published for CVE-2026-46412 yet. Limit exposure of the affected software until one is available.","what":"CVE-2026-46412 is a critical vulnerability in beproduct-org-nestjs-auth, published on 20 Jul 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-46412 and fix it if it is affected.\n\nWhat it is: CVE-2026-46412 is a critical vulnerability in beproduct-org-nestjs-auth, published on 20 Jul 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-46412 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- @beproduct/nestjs-auth (npm): affected from 0.1.2 up to 0.1.19; no fix listed\n- @beproduct/nestjs-auth (npm): affected from 0.1.2 up to 0.1.19; no fix listed\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-46412/ (Markdown: https://insights.sbomify.com/CVE-2026-46412/index.md)","id":"CVE-2026-46412","markdown":"https://insights.sbomify.com/CVE-2026-46412/index.md","name":"CVE-2026-46412","record":{"aliases":["GHSA-6xwp-cp5h-q856"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read","account_takeover"],"network_reachable":"yes","non_default_config":false,"product_category":"NestJS authentication library","requires_auth":"none","summary":"Attackers injected malicious code into a NestJS authentication library to steal credentials, requiring immediate package removal and credential rotation.","user_interaction":"not_required","vuln_class":"supply_chain"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":10,"severity":"critical","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-506","name":"Embedded Malicious Code"}],"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 `\u003e=0.1.2 \u003c=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.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":false,"headline":"Malicious code in @beproduct/nestjs-auth (0.1.2 through 0.1.19) — Mini Shai-Hulud worm","id":"CVE-2026-46412","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"supply_chain","year":"2026"},"n_packages":2,"n_references":3,"next":{"headline":"Discourse: Regular users can route multipart uploads into the admin backup store","id":"CVE-2026-46413"},"packages":[{"ecosystem":"npm","fixed":[],"introduced":["0.1.2"],"last_affected":["0.1.19"],"package":"@beproduct/nestjs-auth","purl":null,"source":"GHSA-6xwp-cp5h-q856"},{"ecosystem":"npm","fixed":[],"introduced":["0.1.2"],"last_affected":["0.1.19"],"package":"@beproduct/nestjs-auth","purl":"pkg:npm/%40beproduct/nestjs-auth","source":"GHSA-6xwp-cp5h-q856"}],"prev":{"headline":"FlashMQ: Client can trigger uncaught exception on FlashMQ 1.26.1 and older","id":"CVE-2026-46411"},"products":["beproduct-org-nestjs-auth"],"published":"2026-07-20","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-07-20","vendors":["BeProduct"]},"summary":"Attackers injected malicious code into a NestJS authentication library to steal credentials, requiring immediate package removal and credential rotation.","url":"https://insights.sbomify.com/CVE-2026-46412/"}