critical

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:

  1. InternLM LMDeploy unauthenticated /update_weights pickle RCE (CVE-2026-119706, CVSS v4.0 9.3 / v3.1 9.8 Critical): In lmdeploy 0.9.0 through 0.18.0 (the latest release on PyPI), the OpenAI-compatible API server (lmdeploy serve api_server) exposes an unauthenticated POST /update_weights endpoint designed for reinforcement-learning weight synchronization. When request.serialized_named_tensors is a string, both the TurboMind and PyTorch backends pass pybase64.b64decode(request.serialized_named_tensors) straight to multiprocessing.reduction.ForkingPickler.loads(), giving any network client unauthenticated remote code execution on the GPU server.
  2. Flowise <= 3.1.4 NodeVM sandbox escape via langchain LocalFileStore and mammoth (CVE-2026-119978, CVSS v4.0 9.0 Critical / v3.1 8.5 High): After CVE-2026-73483 (GHSA-9gvv-qjj3-2p6g, fixed in 3.1.3) removed puppeteer from the @flowiseai/nodevm allowlist, availableDependencies in packages/components/src/utils.ts still allowed langchain and mammoth whenever ALLOW_BUILTIN_DEP=true. An authenticated user with access to /api/v1/node-custom-function can instantiate LocalFileStore from langchain/storage/file_system pointing at node_modules/mammoth, write an arbitrary .js payload file into the mammoth package directory on disk, and then call require('mammoth/...') inside the sandbox to execute unsandboxed Node.js code as the Flowise server user (root in the official Docker image).
  3. LM Studio < 0.4.22+1 model 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’s resolveDownloadRequest failed to normalize or reject backslash (\) path-traversal segments in filenames when downloading a model repository. A crafted model repository can write files outside the models directory to plant a plugin manifest.json, install-state.json, and mcp-bridge-config.json, executing an attacker-supplied Python payload every time LM Studio launches.
  4. Paperclip < 2026.416.0 execution-workspace cleanupCommand / teardownCommand injection (CVE-2026-119713 / GHSA-vr7g-88fq-vhq3, CVSS v4.0 8.7 / v3.1 8.8 High): In paperclipai/paperclip 2026.403.0 before 2026.416.0, the PATCH /api/execution-workspaces/:id route accepted config and metadata patches from low-privileged agent API keys without blocking mutations to cleanupCommand, teardownCommand, or provisionCommand. When the execution workspace was subsequently archived, cleanupExecutionWorkspaceArtifacts executed those strings through a host shell as the Paperclip server process.

What to do now:

  • LMDeploy: Apply PR #4964 or block external access to /update_weights at your reverse proxy / firewall; never expose lmdeploy 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 restrict TOOL_FUNCTION_EXTERNAL_DEP so custom-function nodes cannot import filesystem-writing packages such as langchain/storage/file_system.
  • LM Studio: Update LM Studio to >= 0.4.22 (Build 1 / 0.4.22+1) and audit your LM Studio plugins and mcp-bridge-config.json files if you downloaded third-party model repositories prior to upgrading.
  • Paperclip: Upgrade to >= 2026.416.0 (2026.1023.0 is current on npm).

Affected packages and products

EcosystemPackage / ProductCVE / AdvisorySeverityAffected versionsFixed version / MitigationVulnerable path
PyPIlmdeploy (InternLM/lmdeploy)CVE-2026-119706CVSS v4.0 9.3 / v3.1 9.8 Critical0.9.0 through 0.18.0 (latest on PyPI)Fix in PR #4964; block POST /update_weights at reverse proxyupdate_params() in lmdeploy/serve/openai/endpoints/management.py and turbomind.py / agent.py
npmflowise, flowise-componentsCVE-2026-119978CVSS 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=falseavailableDependencies and executeJavaScriptCode() in packages/components/src/utils.ts
Desktop AppElement Labs LM StudioCVE-2026-119979CVSS v4.0 8.7 / v3.1 8.8 High< 0.4.22+10.4.22+1 (0.4.22 Build 1)resolveDownloadRequest in the model downloader
npm / Serverpaperclip (@paperclipai/server)CVE-2026-119713 (GHSA-vr7g-88fq-vhq3)CVSS v4.0 8.7 / v3.1 8.8 High>= 2026.403.0, < 2026.416.02026.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:

  1. Imports LocalFileStore from langchain/storage/file_system and resolves the on-disk path of node_modules/mammoth.
  2. Calls store.mset([['pwn.js', Buffer.from('module.exports = require("child_process").execSync("id").toString()')]]) to write a new .js file inside node_modules/mammoth/.
  3. Calls require('mammoth/pwn.js'). Because mammoth is an external module loaded by the host Node.js require() outside the VM context, pwn.js executes with full access to require('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 to 0.4.22+1, resolveDownloadRequest checked 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 the models directory into LM Studio’s user configuration directories, planting a plugin manifest.json, install-state.json, and mcp-bridge-config.json that execute an attacker-controlled Python command on every subsequent launch of LM Studio.
  • Paperclip CVE-2026-119713 (GHSA-vr7g-88fq-vhq3): In paperclipai/paperclip 2026.403.0 before 2026.416.0, PATCH /api/execution-workspaces/:id in server/src/routes/execution-workspaces.ts allowed callers authenticated with an agent API key (req.actor.type === "agent") to modify config and metadata fields on an execution workspace, including cleanupCommand, teardownCommand, and provisionCommand. When the workspace was archived, cleanupExecutionWorkspaceArtifacts executed those commands in a shell on the Paperclip server host. Commit 32a9165ddf adds assertNoAgentHostWorkspaceCommandMutation() 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
  1. Block or patch LMDeploy /update_weights (CVE-2026-119706): Apply PR #4964 (a99486099d) and block /update_weights and /terminate at your ingress or reverse proxy so only trusted internal RL trainers can reach management routes.
  2. Disable ALLOW_BUILTIN_DEP in Flowise (CVE-2026-119978): Set ALLOW_BUILTIN_DEP=false in all Flowise environments, run the Flowise container with a read-only root filesystem (readOnlyRootFilesystem: true) so node_modules/ cannot be modified at runtime, and restrict /api/v1/node-custom-function to trusted administrators.
  3. 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 releases v2026.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 the resolveDownloadRequest path traversal reported by Ariel Fogel (Pillar Security).
  • 2026-09-16: InternLM opens PR #4964 (a99486099d) to reject pickle payloads on POST /update_weights (#4698).
  • 2026-10-30 (16:17 to 18:17 UTC): NVD publishes CVE-2026-119706 (LMDeploy), CVE-2026-119713 (Paperclip), CVE-2026-119978 (Flowise), and CVE-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