Supply Chain Compromises Impact Nx Console and GitHub Repositories
Malicious Nx Console VS Code extension and Megalodon campaign compromise GitHub and CI/CD pipelines.
Summary
CISA issued a priority alert on multiple supply chain intrusion campaigns targeting developer ecosystems, including a poisoned Nx Console VS Code extension (v18.95.0, CVE-2026-48027) that compromised a GitHub employee's device and exposed internal repositories, plus the "Megalodon" campaign injecting malicious GitHub Action workflows to harvest CI/CD secrets and cloud credentials. The malicious Nx extension was distributed via automatic VS Code updates, affecting systems without manual user action, and organizations are advised to audit CI/CD workflows, rotate credentials, and implement package pinning practices.
Full text
Alert Supply Chain Compromises Impact Nx Console and GitHub Repositories Release DateMay 28, 2026 CISA is prioritizing the response to multiple emerging software supply chain intrusion campaigns targeting developer ecosystems Continuous Integration/Continuous Development (CI/CD) pipelines. These recent incidents, including the GitHub compromise via a malicious Nx Console Visual Studio Code (VS Code) extension and the “Megalodon” supply chain intrusion campaign, demonstrate how cyber threat actors are abusing tools and processes that support enterprise, cloud, and DevOps environments—specifically CI/CD pipelines, code extensions and workflows. Threat actors leveraged a prior compromise of Nx developer systems to compromise a GitHub employee’s device through a poisoned third-party VS Code extension, resulting in unauthorized access and exfiltration of internal GitHub repositories. The malicious extension version (18.95.0) was distributed through VS Code’s automatic update mechanism, meaning systems with Nx Console previously installed may have received the malicious build without developers taking any manual installation action. GitHub released a security advisory on this activity, and CVE-2026-48027 has been assigned to the malicious version of Nx Console and added to CISA’s Known Exploited Vulnerabilities (KEV) Catalog. Additionally, in a campaign known as “Megalodon,” a cyber threat actor injected malicious GitHub Action workflows to harvest CI/CD secrets, cloud credentials, and tokens, impacting both development and deployment pipelines in public GitHub repositories. CISA urges organizations to implement the following recommendations to detect and remediate a potential compromise: Monitor and audit workflow files and contributor activity for suspicious pull requests and direct commits, particularly those authored by automated accounts. Revert unauthorized changes, especially from automated accounts, e.g., build-bot, auto-ci, ci-bot, pipeline-bot and especially those made after May 18, 2026. If your organization discovers a compromise resulting from previously compromised GitHub or Nx Console software, CISA recommends the following steps: Conduct a forensics review of CI/CD logs, cloud audit trails, and affected developer machines. Rotate/revoke all secrets including: all credentials, tokens, and secrets accessible to CI/CD pipelines, including API keys, cloud provider credentials (Amazon Web Services, Google Cloud Platform, Microsoft Azure), SSH keys, Docker/npm/PyPI/Vault/Terraform/Kubernetes tokens, GitHub/GitLab/Bitbucket tokens, and developer or pipeline secrets. Notify proper stakeholders if necessary. CISA recommends the following best practices for using package repos: Wait at least three hours before pulling a new package. This gives the software community time to identify suspicious or malicious packages before they are widely downloaded. Pin software to specific trusted versions. Pinning software prevents pulling a malicious or unscreened package during the build process. Only pull packages from known and trusted sources. Relying on known and trusted sources reduces the likelihood of downloading a package that has been maliciously forked. See the following resources for additional guidance on these compromises: GitHub: Investigating unauthorized access to GitHub-owned repositories Nx: Postmortem: Nx Console v18.95.0 supply-chain compromise Ox Security: Megalodon: CI/CD Malware Spreading Across GitHub Repositories StepSecurity: Nx Console VS Code Extension Compromised SafeDep: Megalodon: Mass GitHub Repo Backdooring via CI Workflows Disclaimer The information in this report is being provided “as is” for informational purposes only. CISA does not endorse any commercial entity, product, company, or service, including any entities, products, or services linked within this document. Any reference to specific commercial entities, products, processes, or services by service mark, trademark, manufacturer, or otherwise, does not constitute or imply endorsement, recommendation, or favoring by CISA. This product is provided subject to this Notification and this Privacy & Use policy. Please share your thoughts We recently updated our anonymous product survey; we welcome your feedback.
Indicators of Compromise
- cve — CVE-2026-48027
- malware — Megalodon