VulnWatch by ve1ve2
high 7.5 EPSS 0.20%

GHSA-88q3-gch3-5396 / CVE-2026-73864: install-artifact-from-github loads downloaded native artifacts without integrity verification

Source:
GitHub Security Advisories
Published:
Fetched:
Updated:
Affects:
install-artifact-from-github

https://github.com/advisories/GHSA-88q3-gch3-5396 ↗

ghsanpmCWE-494

install-artifact-from-github loads downloaded native artifacts without integrity verification ## Description `bin/install-from-cache.js` downloads a prebuilt native addon (`*.node`) over the network and writes it directly to the artifact path **with no cryptographic integrity verification of any kind** — no checksum manifest, no signature, no SRI. A scan of the whole package for `createHash|sha256|checksum|integrity|digest|signature` finds nothing. The file is then `require()`-loaded by the consumer, which executes the addon's native module-init code. Anyone able to influence the download achieves code execution on the installing machine. ### Affected code (v1.6.0) - **Mirror is fully attacker-steerable via an env var, no host pinning** — `bin/install-from-cache.js:80`: ```js let assetUrl = mirrorHost || process.env[mirrorEnvVar] || 'https://github.com'; ``` `re2` passes `--host-var RE2_DOWNLOAD_MIRROR`, so setting `RE2_DOWNLOAD_MIRROR` (CI config, `.npmrc`/env passthrough, a compromised CI job, a poisoned shell profile) redirects 100% of the download to an arbitrary host with zero pinning. - **The write sink is a bare `writeFile`, no verification** — `bin/install-from-cache.js:185-187`: ```js const write = async (name, data) => { await fsp.mkdir(path.dirname(name), {recursive: true}); await fsp.writeFile(name, data); // `data` is the raw HTTP response body }; ``` - **Cleartext transfer + silent protocol downgrade on redirect** — `bin/install-from-cache.js:155,165`: ```js const httpLib = isHttps.test(url) ? https : isHttp.test(url) ? http : null; // http:// supported ... get(res.headers.location).then(resolve, reject); // re-derives protocol from the NEW url ``` An `https://` asset that 302-redirects to `http://` is followed and fetched over plaintext, no warning, no scheme pinning, no redirect cap. ### The post-download "verification" is not an integrity gate `isVerified()` optionally runs `npm run verify-build` / `npm test` *after* writing the file. For `re2`, `scripts/verify-build.js` `require()`s the binary as its first line — i.e. the downloaded addon's native code has **already executed** by the time any check runs. It is a functional smoke test, not an integrity gate, and it is skipped entirely when any `npm_config_platform*` env var is set (`:120-122`). ## Proof of concept A self-contained, **non-malicious** PoC (`poc.js`) proves the missing-integrity property against the real `install-from-cache`, without shipping a weaponized binary: it stands up a plaintext-HTTP "mirror" serving a sentinel payload, runs `install-from-cache` with `RE2_DOWNLOAD_MIRROR` pointed at it, and shows the served bytes are written **verbatim** to `build/Release/re2.node`: ``` npm i install-artifact-from-github IAFG_BIN=./node_modules/install-artifact-from-github/bin/install-from-cache.js node poc.js ``` ``` attacker mirror (plaintext http) on 127.0.0.1:PORT [mirror] served 2083 attacker bytes over HTTP for /uhop/node-re2/releases/download/1.24.1/darwin-arm64-137 Writing to build/Release/re2.node ... Do Affected packages: npm:install-artifact-from-github Patched: install-artifact-from-github 1.7.0

Linked vulnerabilities (2)

CVE-2026-73864 high 7.5 EPSS 0.20% (p10) NVDCVE.orgGHSA
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H

install-artifact-from-github: install-artifact-from-github: arbitrary code execution via unverified artifact downloads

CWE: CWE-494Aliases: GHSA-88q3-gch3-5396NVD: Received
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H

install-artifact-from-github loads downloaded native artifacts without integrity verification

CWE: CWE-494Aliases: CVE-2026-73864