Description
Google-it is a Node.js package which allows its users to send search queries to Google and receive the results in a JSON format. When using the 'Open in browser' option in versions up to 1.6.2, google-it will unsafely concat the result's link retrieved from google to a shell command, potentially exposing the server to RCE.
Remediation
References
https://advisory.checkmarx.net/advisory/CX-2021-4777
https://github.com/PatNeedham/google-it/blob/v1.6.2/lib/googleIt.js#L59
https://github.com/PatNeedham/google-it/blob/v1.6.2/src/googleIt.js#L34
Related Vulnerabilities
CVE-2020-28481 Vulnerability in npm package socket.io
CVE-2020-11973 Vulnerability in maven package org.apache.camel:camel-netty
CVE-2020-10705 Vulnerability in maven package io.undertow:undertow-core
CVE-2020-8135 Vulnerability in npm package @uppy/companion
CVE-2021-21266 Vulnerability in maven package org.openhab.addons.bundles:org.openhab.binding.insteon