Paperclip Unauthenticated CLI-Auth Chain to Agent Process RCE (CVE-2026-41679)
Published: 2026-11-27 • Researcher: Bart Froklage (GitHub: bartfroklage, commit author Bart)
- Severity
- Critical
- CVE
- CVE-2026-41679
- Category
- web
- Affected product
- Paperclip (paperclipai), a Node.js server and React UI that orchestrates a team of AI agents, together with its company-import and CLI-auth challenge features
- Affected versions
- Prior to 2026.416.0; fixed in 2026.416.0
- Disclosed
- 2026-11-27
- Patch status
- Patched
Tags
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-41679
- https://github.com/paperclipai/paperclip/security/advisories/GHSA-68qg-g8mg-6pr7
- https://github.com/bartfroklage/cve-2026-41679
- https://cwe.mitre.org/data/definitions/287.html
- https://cwe.mitre.org/data/definitions/862.html
- https://cwe.mitre.org/data/definitions/1188.html
Archive entry
intelseclab/poc-archiveOn this page
Metadata
| Field | Value |
|---|---|
| Date Added | 2026-11-27 |
| Last Updated | 2026-04-25 (upstream commit 7e4f4fd34a93812c9044c3371b82b9c5f7e5bfff, “Added missing f”) |
| Author / Researcher | Bart Froklage (GitHub: bartfroklage, commit author Bart) |
| CVE / Advisory | CVE-2026-41679 |
| Category | web |
| Severity | Critical |
| CVSS Score | 10.0 (CVSSv3.1, NVD record; the NVD record carries no vector string) |
| Status | Weaponized (full six-call chain implemented end to end, including agent wakeup and a printed success verdict; no successful run is published in the repository) |
| Tags | paperclip, nodejs, ai-agents, authentication-bypass, missing-authorization, cli-auth, process-adapter, unauthenticated, rce, cwe-287, cwe-862, cwe-1188 |
| Related | N/A |
Affected Target
| Field | Value |
|---|---|
| Software / System | Paperclip (paperclipai), a Node.js server and React UI that orchestrates a team of AI agents, together with its company-import and CLI-auth challenge features |
| Versions Affected | Prior to 2026.416.0; fixed in 2026.416.0 |
| Language / Platform | Node.js server (REST API) with a React front end; the archived PoC is Python 3 |
| Authentication Required | No — the attacker creates an account through the open signup endpoint and approves their own CLI auth challenge, so no pre-existing credentials or interaction are needed |
| Network Access Required | Yes — HTTP access to the Paperclip API, default development port 3100 |
Summary
Paperclip lets an attacker turn a self-service account into remote code execution through the CLI authentication and company import features. The published chain signs up, signs in, creates a CLI auth challenge, approves that same challenge with the new session, then imports a company whose agent configuration declares a process adapter whose command is bash. Waking the imported agent executes the supplied shell command on the server. The NVD record describes the result as unauthenticated remote code execution against a default deployment in authenticated mode, with no user interaction and no credentials, and rates it 10.0.
Vulnerability Details
Root Cause
The advisory groups three weaknesses: improper authentication (CWE-287), missing authorization (CWE-862) and an insecure default configuration (CWE-1188). In the default authenticated deployment, anyone can create an account through /api/auth/sign-up/email. The CLI auth challenge flow then issues a board API token to the challenge creator, and the same freshly signed-in user is allowed to approve the challenge through /api/cli-auth/challenges/{id}/approve; the approval is supposed to represent a human confirming a CLI login but is not bound to a separate, already-trusted identity. The board token is then accepted by the company import endpoint, which processes an inline .paperclip.yaml manifest and honours an adapter of type process with an arbitrary command and args. Importing does not require an administrator role, and waking the created agent runs the configured process on the host.
Attack Vector
Six HTTP requests, all reachable without prior credentials:
POST /api/auth/sign-up/email— create an account.POST /api/auth/sign-in/email— obtain the session cookie.POST /api/cli-auth/challenges— create a challenge; the response returnsid,tokenandboardApiToken.POST /api/cli-auth/challenges/{id}/approve— approve the same challenge with the new session.POST /api/companies/import— import a company whose.paperclip.yamldefines an agent with a process adapter runningbash -c <commands>.POST /api/agents/{id}/wakeup— start the agent, which executes the command.
No CSRF token, invite, email confirmation or human approval outside the attacker’s own session is involved.
Impact
Remote code execution as the account that runs the Paperclip server, on any network-accessible instance using the default configuration. The attacker controls a long-lived agent that can be woken repeatedly, so the access is effectively persistent inside the application’s own model. Once on the host, an attacker can read the application database and agent credentials, reach connected model providers and integrations, move into the internal network and tamper with the business workflows the instance orchestrates. The 10.0 score reflects complete compromise of confidentiality, integrity and availability.
Environment / Lab Setup
OS: Linux or macOS host running the Paperclip server; any attacker host
Target: paperclipai/paperclip < 2026.416.0, default authenticated mode,
reachable on http://127.0.0.1:3100
Attacker: Python 3.8+ with requests
Tools: python3 venv, requests, curl, the Paperclip development serverSetup Steps
| |
The PoC assumes the default configuration where public signup is enabled and the CLI auth challenge endpoints are reachable. If signup or the challenge flow is disabled, the first steps of the chain fail before any exploit code runs.
Proof of Concept
Step-by-Step Reproduction
Create and activate a virtual environment, then install the one dependency.
Shell script1 2 3python3 -m venv .venv source .venv/bin/activate pip3 install -r requirements.txtRun the chain with the default proof command — it writes the identity to
/tmp/pwned.txtand appends the current user.Shell script1python3 poc.py -t http://127.0.0.1:3100Or supply a custom command with
-c.Shell script1python3 poc.py -t http://127.0.0.1:3100 -c 'id > /tmp/id.txt && hostname >> /tmp/id.txt'Confirm execution — success prints the agent identifier. Verify independently on the target host.
Shell script1cat /tmp/pwned.txt
The account details can be changed with -n, -e and -p; the defaults are an attacker name, attacker@evil.com and P@sswOrd123!, which are lab values and not real credentials.
Exploit Code
See
poc.pyin this folder, withrequirements.txt. The upstream README isupstream-README.md.
| |
Expected Output
| |
On the target host the default command leaves the proof file:
| |
If a step fails, the script prints the exception text instead of the verdict (for example a signup status, a missing Set-Cookie, or the message that no agent was created). A patched instance, or one with signup and the challenge flow disabled, fails before the import call.
Detection & Indicators of Compromise
POST /api/auth/sign-up/email unexpected or bulk self-registration
POST /api/auth/sign-in/email
POST /api/cli-auth/challenges
POST /api/cli-auth/challenges/<id>/approve same session creates and approves
POST /api/companies/import body contains ".paperclip.yaml", "adapter", "type": "process"
POST /api/agents/<id>/wakeup
"type": "process" "command": "bash" "args": ["-c", ...]
"new_company" "attacker-corp" "agents": "all"
Node.js server spawning bash -c or sh -c children
Unexpected files under /tmp written by the service account
Unexpected outbound connections from the Paperclip hostBecause the six calls look like ordinary onboarding, correlate a new signup, an immediately self-approved CLI challenge, a company import and an agent wakeup within a short window. Also inventory companies whose agents use the process adapter and compare them with expected configuration.
SIEM / IDS Rule (example):
alert http any any -> any any (msg:"Possible CVE-2026-41679 Paperclip process-adapter import"; flow:to_server,established; content:"/api/companies/import"; http_uri; content:".paperclip.yaml"; http_client_body; content:"type"; http_client_body; content:"process"; http_client_body; content:"/bin/bash"; http_client_body; sid:90416790; rev:1;)Remediation
| Action | Detail |
|---|---|
| Patch | Upgrade Paperclip to 2026.416.0 or later, which the vendor states patches the issue. |
| Workaround | Disable self-service signup and restrict the CLI auth challenge and company import endpoints to trusted administrators until the upgrade is applied; do not expose the API to untrusted networks. |
| Config Hardening | Require an administrator role for company import, restrict process-type agent adapters to explicitly allowed commands, run the server as an unprivileged user in a container with a read-only filesystem, and audit agents and companies for unexpected process adapters. |
References
Notes
Auto-prepared on 2026-11-27 from https://github.com/bartfroklage/cve-2026-41679 (no stars at review time, one Python script plus a README and a one-line requirements file).
Review verdict: ingested as Weaponized. It is a real exploit rather than a checker: it performs the full advertised six-call chain, creates the malicious company manifest itself, imports it with the stolen board token and wakes the agent that runs the attacker command. The process adapter is the legitimate product feature the chain abuses, not a malware module, and the default payload only writes a proof file with the command output. The repository contains no C2, persistence, evasion, keylogging, mining or stealer code.
Limitations: the repository publishes no transcript or screenshot of a successful run, so Weaponized reflects a complete implemented chain rather than observed output. The chain depends on the default configuration with public signup enabled and the CLI auth challenge endpoints exposed; disabling either breaks it, and the advisory’s “default configuration” caveat matters. The approval step sends the session cookie and Origin but does not validate the response body, so a silent approval failure surfaces later as a confusing import error. The script catches every exception and prints its text, so a failed run can look like a partial success if only the last line is read. The default command writes /tmp/pwned.txt, which is easy to detect. No exploit code was executed while preparing this entry.
License: the repository declares no LICENSE file, so copyright remains with the author and no reuse rights are granted. The archived script keeps the original attribution and adds only a short research-use header; the upstream README is copied verbatim as upstream-README.md.
| |