Dependency-confusion PoC: @awazevr/mfe-common.contexts.guest-auth npm package runs shell commands on install
Severity: critical · Patch status: no-fix-needed · Since 2026-11-20
A malicious npm package, @awazevr/mfe-common.contexts.guest-auth version 1.0.0, was published to the public registry under the unregistered scope @awazevr, which a third-party organization uses for private internal packages — a classic dependency-confusion setup. Its package.json declares a postinstall script that executes shell commands (whoami, hostname) on every install, prefixed with a banner self-identifying as a dependency-confusion proof-of-concept. Any CI or build system that resolves the @awazevr scope from the public npm registry without a scoped-registry pin auto-executes the attacker-authored commands at install time. The current payload only prints local host identifiers, but the arbitrary command execution path is fully functional and future versions could deliver any payload. Flagged by Amazon Inspector and tracked by OpenSSF as MAL-2026-20277; no patched versions exist.
What to do
- Audit lockfiles and CI logs for any @awazevr/* packages resolved from the public npm registry and remove them
- Pin internal scopes to the private registry in .npmrc and CI configuration so public lookalikes are never fetched
- Block or quarantine the package and scope @awazevr in proxy/firewall (e.g. npm audit, artifact repositories)
- Rebuild any images or artifacts built while the package may have been installed and review installer hosts for compromise
- Enable lifecycle-script blocking (npm config set ignore-scripts true) for untrusted installs
Sources
All live incidents on Threat Watch