ADVISORIES

GitHub Advisory Database

GHSA-2hpj-g53m-9gj6

closure-util downloads Resources over HTTP

High No fix available CVE-2016-10583

Details

Affected versions of closure-util insecurely download an executable over an unencrypted HTTP connection.

In scenarios where an attacker has a privileged network position, it is possible to intercept the response and replace the executable with a malicious one, resulting in code execution on the system running closure-util.

Recommendation

To mitigate this issue:

  • Install the package using npm's --ignore-scripts flag.
  • Navigate to the package directory, and open default-config.json in a text editor
  • Change the download URLs in the compiler_url and library_url to https equivalents
  • run npm i in the package directory.

Affected packages

EcosystemPackageAffected versions
npmclosure-util
All versions up to and including 2.0.0-beta.1

References