CVE-2021-34083
Description
Google-it Node.js package up to version 1.6.2 has a command injection vulnerability in the 'Open in browser' feature, allowing remote code execution.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Google-it Node.js package up to version 1.6.2 has a command injection vulnerability in the 'Open in browser' feature, allowing remote code execution.
Vulnerability
Google-it is a Node.js package that allows users to send search queries to Google and receive JSON results. In versions up to and including 1.6.2, the 'Open in browser' option (enabled via the --open CLI flag or programmatic use) constructs a shell command by directly concatenating the result's link from Google without sanitization. This occurs in the code at src/googleIt.js line 34 and lib/googleIt.js line 59 [3][4]. An attacker who can influence the search results (e.g., through SEO poisoning or controlling a linked site) can inject arbitrary shell commands via the crafted link.
Exploitation
An attacker needs to make a malicious search result appear in Google's output that targets an instance using google-it with the 'Open in browser' feature. The attacker does not require authentication but must be able to control the content of a search result link. When a user or automated script runs google-it with the --open flag, the unsanitized link is passed to a shell execution function (likely exec or spawn with shell), leading to arbitrary command injection. No user interaction beyond initiating the search and open action is required [1].
Impact
Successful exploitation results in remote code execution (RCE) on the server or client running google-it. The attacker gains the same privileges as the process executing the library, potentially leading to full system compromise, data exfiltration, or further lateral movement [1].
Mitigation
As of the available references, no official patched version has been released for this vulnerability. The only mitigation is to avoid using the 'Open in browser' feature by not passing the --open flag or setting the corresponding programmatic option to false. Alternatively, users may consider not using the google-it package altogether until a fix is available [1][2].
AI Insight generated on May 21, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
google-itnpm | <= 1.6.2 | — |
Affected products
2- Google-it/Google-itdescription
Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
5- github.com/advisories/GHSA-7xhv-mpjw-422fghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2021-34083ghsaADVISORY
- advisory.checkmarx.net/advisory/CX-2021-4777ghsax_refsource_MISCWEB
- github.com/PatNeedham/google-it/blob/v1.6.2/lib/googleIt.jsghsax_refsource_MISCWEB
- github.com/PatNeedham/google-it/blob/v1.6.2/src/googleIt.jsghsax_refsource_MISCWEB
News mentions
0No linked articles in our index yet.