Malicious code in gemini-cli-a2a-server (npm)
The gemini-cli-a2a-server npm package version 1.0.0 contains malicious code that executes during installation. Its postinstall script collects host system identifiers and sends them to a hardcoded external URL. The package name mimics an internal Google Gemini CLI component, suggesting it is used for dependency confusion attacks to exfiltrate environment data when mistakenly installed instead of the intended private package.
AI Analysis
Technical Summary
The gemini-cli-a2a-server package on npm, specifically version 1.0.0, includes a postinstall script that gathers host identifiers such as hostname, platform, architecture, Node.js version, and package metadata. This data is sent via HTTPS POST to a hardcoded endpoint (https://onpx9s3x.instances.poc.jchunt.top/gemini-cli-a2a-server). The package name and a reference to an internal source file indicate it is designed to impersonate a private Google Gemini CLI component. This behavior aligns with a dependency confusion attack, where a malicious public package is published with the same name as a private internal package, causing unintended installations and data exfiltration.
Potential Impact
This malicious package can leak sensitive environment information from any system where it is installed, potentially exposing internal host details and metadata to an attacker-controlled server. While no direct code execution beyond the postinstall script is described, the exfiltration of environment data can aid further targeted attacks or reconnaissance.
Mitigation Recommendations
Users should avoid installing the gemini-cli-a2a-server package version 1.0.0 from public npm repositories. Verify package sources and names carefully to prevent dependency confusion attacks. Since no official patch or fix is indicated, the best mitigation is to remove or avoid this package and use verified internal packages. Monitor for any unexpected network connections to unknown endpoints during package installation.
Malicious code in gemini-cli-a2a-server (npm)
Description
The gemini-cli-a2a-server npm package version 1.0.0 contains malicious code that executes during installation. Its postinstall script collects host system identifiers and sends them to a hardcoded external URL. The package name mimics an internal Google Gemini CLI component, suggesting it is used for dependency confusion attacks to exfiltrate environment data when mistakenly installed instead of the intended private package.
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The gemini-cli-a2a-server package on npm, specifically version 1.0.0, includes a postinstall script that gathers host identifiers such as hostname, platform, architecture, Node.js version, and package metadata. This data is sent via HTTPS POST to a hardcoded endpoint (https://onpx9s3x.instances.poc.jchunt.top/gemini-cli-a2a-server). The package name and a reference to an internal source file indicate it is designed to impersonate a private Google Gemini CLI component. This behavior aligns with a dependency confusion attack, where a malicious public package is published with the same name as a private internal package, causing unintended installations and data exfiltration.
Potential Impact
This malicious package can leak sensitive environment information from any system where it is installed, potentially exposing internal host details and metadata to an attacker-controlled server. While no direct code execution beyond the postinstall script is described, the exfiltration of environment data can aid further targeted attacks or reconnaissance.
Mitigation Recommendations
Users should avoid installing the gemini-cli-a2a-server package version 1.0.0 from public npm repositories. Verify package sources and names carefully to prevent dependency confusion attacks. Since no official patch or fix is indicated, the best mitigation is to remove or avoid this package and use verified internal packages. Monitor for any unexpected network connections to unknown endpoints during package installation.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-14244
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a85b4c2acd9273b492524c7
Added to database: 08/19/2026, 13:50:58 UTC
Last enriched: 08/19/2026, 14:30:31 UTC
Last updated: 08/19/2026, 14:30:31 UTC
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.