GitHub Advisoryadvisory · npm
GHSA-2hpj-g53m-9gj6 closure-util downloads Resources over HTTP
HIGH
Official page ↗
- Aliases
- CVE-2016-10583
- Ecosystem
- npm
- Packages
- closure-util
- Severity
- High
- CVSS vector
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
- Weaknesses
- CWE-311
- Reviewed
- 2020-06-16
Affected packages
• npm closure-util: <= 2.0.0-beta.1 (no fix yet)
Description
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:
1. Install the package using npm's `--ignore-scripts` flag.
2. Navigate to the package directory, and open `default-config.json` in a text editor
3. Change the download URLs in the `compiler_url` and `library_url` to `https` equivalents
4. run `npm i` in the package directory.
Related
Alias · CVE (1)
- CVE-2016-10583 closure-utils is Utilities for Closure Library based projects. vulnerability
Weakness · CWE (1)
- CWE-311 Missing Encryption of Sensitive Data weakness