install-artifact-from-githubに改ざんされたネイティブモジュールを実行される脆弱性
Summary
install-artifact-from-githubは、ダウンロードしたネイティブモジュールの完全性を検証せずに読み込むため、ダウンロード経路を操作されると、インストールしたマシン上でコードを実行されるおそれがあります。影響を受けるのは1.7.0より前のnpm版で、1.7.0で修正されています。CVSSは7.5で、悪用は確認されていません。1.7.0以降へ更新してください。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
install-artifact-from-githubは、ダウンロードしたネイティブモジュールの完全性を検証せずに読み込むため、ダウンロード経路を操作されると、インストールしたマシン上でコードを実行されるおそれがあります。影響を受けるのは1.7.0より前のnpm版で、1.7.0で修正されています。CVSSは7.5で、悪用は確認されていません。1.7.0以降へ更新してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| uhopinstall-artifact-from-github | — | Not listed |
| npminstall-artifact-from-github |
< 1.7.0→ 1.7.0 |
1.7.0 |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Debian DEBIAN-CVE-2026-73864 node-re2 Fix available
- Ubuntu UBUNTU-CVE-2026-73864 node-re2 No fixed version in this record
Original description The description as published by the source.
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:let assetUrl = mirrorHost || process.env[mirrorEnvVar] || 'https://github.com';re2passes--host-var RE2_DOWNLOAD_MIRROR, so settingRE2_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: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:const httpLib = isHttps.test(url) ? https : isHttp.test(url) ?…
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory nvd.nist.gov
- package github.com
- REDHAT Red Hat
- web github.com
- web github.com
- web github.com
- web github.com