CVE
CVE-2026-119706, CVE-2026-119978, CVE-2026-119979, CVE-2026-119713
CWE
CWE-502, CWE-749, CWE-22, CWE-78, CWE-862
Affected Surface
- PyPI `lmdeploy` (`InternLM/lmdeploy`) versions `0.9.0` through `0.18.0` (`CVE-2026-119706`, CVSS v3.1 9.8 Critical)
- npm `flowise` and `flowise-components` (`FlowiseAI/Flowise`) versions `<= 3.1.4` when `ALLOW_BUILTIN_DEP=true` (`CVE-2026-119978`, CVSS v4.0 9.0 Critical)
- Element Labs LM Studio `< 0.4.22+1` (`CVE-2026-119979`, CVSS v3.1 8.8 High)
- Paperclip (`paperclipai/paperclip`) `>= 2026.403.0, < 2026.416.0` (`CVE-2026-119713` / `GHSA-vr7g-88fq-vhq3`, CVSS v3.1 8.8 High)
TL;DR
On 30 October 2026, NVD published four vulnerabilities that reach arbitrary operating-system command execution across LLM serving engines, low-code AI agent builders, and local model runtimes:
- InternLM LMDeploy unauthenticated
/update_weightspickle RCE (CVE-2026-119706, CVSS v4.0 9.3 / v3.1 9.8 Critical): Inlmdeploy0.9.0through0.18.0(the latest release on PyPI), the OpenAI-compatible API server (lmdeploy serve api_server) exposes an unauthenticatedPOST /update_weightsendpoint designed for reinforcement-learning weight synchronization. Whenrequest.serialized_named_tensorsis a string, both the TurboMind and PyTorch backends passpybase64.b64decode(request.serialized_named_tensors)straight tomultiprocessing.reduction.ForkingPickler.loads(), giving any network client unauthenticated remote code execution on the GPU server. - Flowise
<= 3.1.4NodeVM sandbox escape vialangchainLocalFileStoreandmammoth(CVE-2026-119978, CVSS v4.0 9.0 Critical / v3.1 8.5 High): AfterCVE-2026-73483(GHSA-9gvv-qjj3-2p6g, fixed in3.1.3) removedpuppeteerfrom the@flowiseai/nodevmallowlist,availableDependenciesinpackages/components/src/utils.tsstill allowedlangchainandmammothwheneverALLOW_BUILTIN_DEP=true. An authenticated user with access to/api/v1/node-custom-functioncan instantiateLocalFileStorefromlangchain/storage/file_systempointing atnode_modules/mammoth, write an arbitrary.jspayload file into themammothpackage directory on disk, and then callrequire('mammoth/...')inside the sandbox to execute unsandboxed Node.js code as the Flowise server user (rootin the official Docker image). - LM Studio
< 0.4.22+1model downloader backslash path traversal to persistent RCE (CVE-2026-119979, CVSS v4.0 8.7 / v3.1 8.8 High): Reported by Ariel Fogel of Pillar Security, LM Studio’sresolveDownloadRequestfailed to normalize or reject backslash (\) path-traversal segments in filenames when downloading a model repository. A crafted model repository can write files outside themodelsdirectory to plant a pluginmanifest.json,install-state.json, andmcp-bridge-config.json, executing an attacker-supplied Python payload every time LM Studio launches. - Paperclip
< 2026.416.0execution-workspacecleanupCommand/teardownCommandinjection (CVE-2026-119713/GHSA-vr7g-88fq-vhq3, CVSS v4.0 8.7 / v3.1 8.8 High): Inpaperclipai/paperclip2026.403.0before2026.416.0, thePATCH /api/execution-workspaces/:idroute acceptedconfigandmetadatapatches from low-privileged agent API keys without blocking mutations tocleanupCommand,teardownCommand, orprovisionCommand. When the execution workspace was subsequently archived,cleanupExecutionWorkspaceArtifactsexecuted those strings through a host shell as the Paperclip server process.
What to do now:
- LMDeploy: Apply PR
#4964or block external access to/update_weightsat your reverse proxy / firewall; never exposelmdeploy serve api_server(0.0.0.0:23333) directly to untrusted networks. - Flowise: Set
ALLOW_BUILTIN_DEP=false(or unset it) in your Flowise environment and restrictTOOL_FUNCTION_EXTERNAL_DEPso custom-function nodes cannot import filesystem-writing packages such aslangchain/storage/file_system. - LM Studio: Update LM Studio to
>= 0.4.22(Build 1 /0.4.22+1) and audit your LM Studio plugins andmcp-bridge-config.jsonfiles if you downloaded third-party model repositories prior to upgrading. - Paperclip: Upgrade to
>= 2026.416.0(2026.1023.0is current on npm).
Affected packages and products
| Ecosystem | Package / Product | CVE / Advisory | Severity | Affected versions | Fixed version / Mitigation | Vulnerable path |
|---|---|---|---|---|---|---|
| PyPI | lmdeploy (InternLM/lmdeploy) | CVE-2026-119706 | CVSS v4.0 9.3 / v3.1 9.8 Critical | 0.9.0 through 0.18.0 (latest on PyPI) | Fix in PR #4964; block POST /update_weights at reverse proxy | update_params() in lmdeploy/serve/openai/endpoints/management.py and turbomind.py / agent.py |
| npm | flowise, flowise-components | CVE-2026-119978 | CVSS v4.0 9.0 Critical (v3.1 8.5 High) | <= 3.1.4 (latest on npm, when ALLOW_BUILTIN_DEP=true) | Unpatched in 3.1.4; set ALLOW_BUILTIN_DEP=false | availableDependencies and executeJavaScriptCode() in packages/components/src/utils.ts |
| Desktop App | Element Labs LM Studio | CVE-2026-119979 | CVSS v4.0 8.7 / v3.1 8.8 High | < 0.4.22+1 | 0.4.22+1 (0.4.22 Build 1) | resolveDownloadRequest in the model downloader |
| npm / Server | paperclip (@paperclipai/server) | CVE-2026-119713 (GHSA-vr7g-88fq-vhq3) | CVSS v4.0 8.7 / v3.1 8.8 High | >= 2026.403.0, < 2026.416.0 | 2026.416.0 (commit 32a9165ddf) | PATCH /api/execution-workspaces/:id in server/src/routes/execution-workspaces.ts |
Technical analysis
1. InternLM LMDeploy /update_weights unauthenticated ForkingPickler.loads() (CVE-2026-119706)
When lmdeploy serve api_server starts, lmdeploy/serve/openai/endpoints/management.py registers /health, /terminate, and POST /update_weights on the root FastAPI router without authentication middleware:
# lmdeploy/serve/openai/endpoints/management.py lines 55-60 (v0.18.0)
@router.post('/update_weights',
dependencies=[Depends(validate_json_request)])
def update_params(request: UpdateParamsRequest,
raw_request: Request = None):
"""Update weights for the model."""
server_context.async_engine.engine.update_params(request)
return JSONResponse(content=None)
Inside lmdeploy/turbomind/turbomind.py (line 345) and lmdeploy/pytorch/engine/model_agent/agent.py, update_params() checks whether request.serialized_named_tensors is a string and immediately base64-decodes and unpickles it using ForkingPickler.loads():
# lmdeploy/turbomind/turbomind.py lines 343-346 (v0.18.0)
with torch.cuda.device(self.devices[0]):
if isinstance(request.serialized_named_tensors, str):
weights = ForkingPickler.loads(pybase64.b64decode(request.serialized_named_tensors))
Because ForkingPickler is a subclass of standard-library pickle.Pickler / Unpickler, sending a single HTTP POST to /update_weights with a base64-encoded pickle containing a __reduce__ method executes arbitrary shell commands inside the api_server process before any tensor validation occurs.
In PR #4964 (fix(security): reject pickle on HTTP /update_weights, fixing issue #4698), update_params() in management.py rejects any pickle-formatted serialized_named_tensors over HTTP with HTTP 400 Bad Request, requiring callers to use load_format="safetensors" or structured tensor dicts and gating local IPC pickle loads behind LMDEPLOY_ALLOW_PICKLE_UPDATE_PARAMS=1:
--- a/lmdeploy/serve/openai/endpoints/management.py
+++ b/lmdeploy/serve/openai/endpoints/management.py
@@ -56,7 +63,14 @@ async def terminate():
dependencies=[Depends(validate_json_request)])
def update_params(request: UpdateParamsRequest,
raw_request: Request = None):
+ if is_pickle_serialized_named_tensors(request.serialized_named_tensors,
+ request.load_format):
+ return create_error_response(HTTPStatus.BAD_REQUEST, _PICKLE_HTTP_ERROR)
server_context.async_engine.engine.update_params(request)
return JSONResponse(content=None)
2. Flowise <= 3.1.4 custom-function sandbox escape via LocalFileStore and mammoth (CVE-2026-119978)
In Flowise (packages/components/src/utils.ts), the /api/v1/node-custom-function endpoint executes user-supplied JavaScript inside @flowiseai/nodevm (a vm2-derived sandbox). When the environment variable ALLOW_BUILTIN_DEP=true is set (which many self-hosted deployments enable so custom functions and tools can import LangChain helpers), Flowise populates the require.external.modules allowlist from availableDependencies:
// packages/components/src/utils.ts lines 48-58 and 90 (Flowise 3.1.4)
export const availableDependencies = [
...
'langchain',
'langfuse',
'langsmith',
'langwatch',
'linkifyjs',
'lunary',
'mammoth',
...
]
...
let deps = process.env.ALLOW_BUILTIN_DEP === 'true' ? availableDependencies.concat(externalDeps) : externalDeps
Although fs and child_process are excluded from defaultAllowBuiltInDep (['assert', 'buffer', 'crypto', 'events', 'path', 'querystring', 'timers', 'url', 'zlib']), langchain exports LocalFileStore (langchain/storage/file_system), which wraps Node’s host fs/promises module to write arbitrary Uint8Array files to disk without sandbox mediation. Meanwhile, @flowiseai/nodevm permits require('<allowlisted-module>/<subpath>') for any module listed in deps, and mammoth is a pure-CommonJS package without a restrictive package.json "exports" map.
Reported by soovwv, an authenticated user can send a custom function payload that:
- Imports
LocalFileStorefromlangchain/storage/file_systemand resolves the on-disk path ofnode_modules/mammoth. - Calls
store.mset([['pwn.js', Buffer.from('module.exports = require("child_process").execSync("id").toString()')]])to write a new.jsfile insidenode_modules/mammoth/. - Calls
require('mammoth/pwn.js'). Becausemammothis an external module loaded by the host Node.jsrequire()outside the VM context,pwn.jsexecutes with full access torequire('child_process')as the Flowise server user.
3. LM Studio < 0.4.22+1 backslash path traversal (CVE-2026-119979) and Paperclip < 2026.416.0 workspace command injection (CVE-2026-119713)
- LM Studio
CVE-2026-119979: When a user downloads a model repository in LM Studio prior to0.4.22+1,resolveDownloadRequestchecked forward-slash paths but did not reject backslash-separated (..\) traversal segments. On Windows (or where backslash separators are normalized after containment checks), a malicious model repository can write files outside themodelsdirectory into LM Studio’s user configuration directories, planting a pluginmanifest.json,install-state.json, andmcp-bridge-config.jsonthat execute an attacker-controlled Python command on every subsequent launch of LM Studio. - Paperclip
CVE-2026-119713(GHSA-vr7g-88fq-vhq3): Inpaperclipai/paperclip2026.403.0before2026.416.0,PATCH /api/execution-workspaces/:idinserver/src/routes/execution-workspaces.tsallowed callers authenticated with an agent API key (req.actor.type === "agent") to modifyconfigandmetadatafields on an execution workspace, includingcleanupCommand,teardownCommand, andprovisionCommand. When the workspace was archived,cleanupExecutionWorkspaceArtifactsexecuted those commands in a shell on the Paperclip server host. Commit32a9165ddfaddsassertNoAgentHostWorkspaceCommandMutation()to reject any agent request that touches host command fields.
Detection and remediation
# 1. Check for exposed or unpatched LMDeploy servers (<= 0.18.0)
pip show lmdeploy 2>/dev/null || true
rg -n 'lmdeploy\s+serve\s+api_server|/update_weights' . 2>/dev/null
# 2. Check Flowise deployments for ALLOW_BUILTIN_DEP=true and unexpected .js files in node_modules/mammoth
rg -n 'ALLOW_BUILTIN_DEP|TOOL_FUNCTION_EXTERNAL_DEP' .env* docker-compose*.{yml,yaml} k8s/ helm/ 2>/dev/null
find / -path '*/node_modules/mammoth/*.js' -ls 2>/dev/null || true
# 3. Check LM Studio configuration directories for unexpected plugins or mcp-bridge-config.json entries
ls -la ~/.lmstudio/ ~/.cache/lm-studio/ "$HOME/AppData/Roaming/LM Studio/" 2>/dev/null || true
find ~/.lmstudio ~/.cache/lm-studio -name 'mcp-bridge-config.json' -o -name 'install-state.json' 2>/dev/null || true
- Block or patch LMDeploy
/update_weights(CVE-2026-119706): Apply PR#4964(a99486099d) and block/update_weightsand/terminateat your ingress or reverse proxy so only trusted internal RL trainers can reach management routes. - Disable
ALLOW_BUILTIN_DEPin Flowise (CVE-2026-119978): SetALLOW_BUILTIN_DEP=falsein all Flowise environments, run the Flowise container with a read-only root filesystem (readOnlyRootFilesystem: true) sonode_modules/cannot be modified at runtime, and restrict/api/v1/node-custom-functionto trusted administrators. - Update LM Studio to
>= 0.4.22+1(CVE-2026-119979) and Paperclip to>= 2026.416.0(CVE-2026-119713).
Timeline
- 2026-04-15: Paperclip merges PR
#3741(32a9165ddf) and releasesv2026.416.0, blocking agent mutations of execution-workspace host commands (GHSA-vr7g-88fq-vhq3). - 2026-08-28: Element Labs releases LM Studio
0.4.22(Build 1 /0.4.22+1), fixing theresolveDownloadRequestpath traversal reported by Ariel Fogel (Pillar Security). - 2026-09-16: InternLM opens PR
#4964(a99486099d) to reject pickle payloads onPOST /update_weights(#4698). - 2026-10-30 (
16:17to18:17 UTC): NVD publishesCVE-2026-119706(LMDeploy),CVE-2026-119713(Paperclip),CVE-2026-119978(Flowise), andCVE-2026-119979(LM Studio).
From research to remediation
Check whether this pattern exists in your codebase
Turn this research into a remediation workflow. Scan dependencies and package manifests for similar supply-chain risk, then prioritize fixes with reachability context.
References
- InternLM/lmdeploy PR #4964 (fix(security): reject pickle on HTTP /update_weights, CVE-2026-119706)
- InternLM/lmdeploy issue #4698 and management.py / turbomind.py source
- FlowiseAI/Flowise packages/components/src/utils.ts (availableDependencies and NodeVM sandbox configuration, CVE-2026-119978)
- VulnCheck advisory: Flowise through 3.1.4 Custom Function Sandbox Escape RCE via LocalFileStore (CVE-2026-119978)
- LM Studio 0.4.22 release notes and VulnCheck advisory for CVE-2026-119979
- paperclipai/paperclip commit 32a9165ddf (PR #3741: block agent mutation of execution-workspace cleanup/teardown commands, CVE-2026-119713 / GHSA-vr7g-88fq-vhq3)