# CVE-2026-110699: Chainlit spontaneous_file_upload block bypass enables arbitrary file upload and trusted-domain phishing (CWE-693)

> In Chainlit, setting spontaneous_file_upload enabled = false only hides the feature in the frontend while the backend upload endpoints stay active. An attacker holding a valid session ID can upload arbitrary file types and obtain a retrieval URL, so content such as fake login pages is served from the application's trusted domain. No fixed version is published as of disclosure.

- **Published:** 2026-11-26T14:02:26Z
- **Last reviewed:** 2026-11-26T14:02:26Z
- **Canonical:** https://intel.threadlinqs.com/threat/TL-2026-6931
- **Card image:** https://intel.threadlinqs.com/og/threat/TL-2026-6931.png
- **ID:** TL-2026-6931
- **Severity:** MEDIUM (CVSS 6.3)
- **Category:** VULNERABILITY
- **Status:** TRACKING
- **Detections:** 9 (1 shown free below) · **IOCs:** 7
- **CVEs:** CVE-2026-110699

## Description

CVE-2026-110699 (CNA: CERT-PL, title 'File Upload Block Bypass in Chainlit') is a protection mechanism failure (CWE-693; CAPEC-554 Functionality Bypass) in the Chainlit Python framework for conversational AI applications. The spontaneous_file_upload feature can be switched off with 'enabled = false', but the setting is enforced only in the frontend. The backend upload endpoints remain reachable and do not honor the configuration.

An attacker who possesses a valid session ID can call the backend upload functionality directly, upload files of arbitrary type, and receive a URL from which the uploaded file can be retrieved. Anyone given that link can fetch the file. The advisory's stated impact is that attacker-controlled content, for example a fake login page, can be hosted and served from the application's trusted domain and used for phishing. Neither CERT Polska nor the CVE record names the specific endpoints or parameters or describes how session IDs are issued.

The CVE record adds a configuration condition: the Chainlit service must have authentication disabled for the vulnerability to apply. The issue was confirmed in Chainlit 2.10.0 and 2.12.0; CERT Polska lists 2.12.0 as vulnerable and notes other versions may also be affected (the CVE record lists defaultStatus unknown). The only scored metric is CVSS v4.0 6.3 MEDIUM (AV:N/AC:L/AT:P/PR:N/UI:N, VI:L; no confidentiality or availability impact). The reporter is Marcin Ochab, and CERT Polska participated in coordinating disclosure. Neither source states a fixed version, vendor patch, public proof of concept, in-the-wild exploitation or network IOCs.

Defenders running Chainlit should not treat 'enabled = false' as a control. Review whether authentication is enabled, restrict access to the backend upload routes at the reverse proxy or WAF, and monitor for unexpected uploads and retrieval URLs served from the application's origin. This is unrelated to the earlier ChainLeak flaws (CVE-2026-22218 and CVE-2026-22219), which were fixed in Chainlit 2.9.4.

## MITRE ATT&CK

- T1190 Exploit Public-Facing Application
- T1608.001 Upload Malware
- T1608.005 Link Target
- T1566.002 Spearphishing Link
- T1204.001 Malicious Link
- T1056.003 Web Portal Capture

## Free detection (Splunk SPL, Microsoft KQL, Sigma)

**Chainlit CVE-2026-110699 Direct Backend File Upload with Session ID — Exploitation** (`TL-2026-6931-SPL-001`)

Detects a successful HTTP POST to the Chainlit backend upload route (/project/file) carrying a session_id, the direct-to-backend request that bypasses the frontend-only 'spontaneous_file_upload enabled = false' setting (CVE-2026-110699, CWE-693, CAPEC-554; T1190, T1608.001, T1105). On instances where uploads are disabled in config, any hit is anomalous. The /project/file route is taken from the public Chainlit route layout; the advisory does not name the endpoint, so confirm it against your deployed version (2.10.0 and 2.12.0 are confirmed affected).

- **Languages:** Splunk SPL, Microsoft KQL, Sigma
- **ATT&CK:** T1190, T1608.001, T1105
- **Data sources:** splunk:index=web:sourcetype=access_combined, azure_application_gateway_access_log, web_server_access_logs
- **Severity:** medium
- **Confidence:** medium

### Splunk SPL

```spl
index=web sourcetype=access_combined earliest=-24h method=POST uri_path="*/project/file" uri_query="*session_id=*" status IN (200,201)
| rex field=uri_query "session_id=(?<sid>[^&\s]+)"
| stats count AS uploads dc(sid) AS distinct_sessions dc(uri_path) AS distinct_paths min(_time) AS first_seen max(_time) AS last_seen values(useragent) AS user_agents BY src, dest
| eval cve="CVE-2026-110699", product="chainlit", technique="T1190,T1608.001,T1105"
| convert ctime(first_seen) ctime(last_seen)
| sort - uploads
```

### Microsoft KQL

```kql
AzureDiagnostics
| where TimeGenerated > ago(24h)
| where ResourceType == "APPLICATIONGATEWAYS" and Category == "ApplicationGatewayAccessLog"
| where httpMethod_s == "POST" and requestUri_s has "/project/file" and not(requestUri_s has "/project/file/")
| where requestUri_s has "session_id=" or requestQuery_s has "session_id="
| where httpStatus_d in (200, 201)
| summarize Uploads = count(), FirstSeen = min(TimeGenerated), LastSeen = max(TimeGenerated), UserAgents = make_set(userAgent_s, 5) by clientIP_s, host_s
| project FirstSeen, LastSeen, clientIP_s, host_s, Uploads, UserAgents
```

### Sigma

```yaml
title: Chainlit Direct Backend File Upload With Session ID (CVE-2026-110699)
id: a7c41e92-5b38-4d06-9f1a-2e8d60b3c715
status: experimental
description: Detects a successful POST to the Chainlit /project/file upload route carrying a session_id, the direct backend request that bypasses the frontend-only spontaneous_file_upload enabled = false setting (CVE-2026-110699, CWE-693). The /project/file route is taken from the public Chainlit route layout; the advisory does not name the endpoint, so confirm it against your deployed version (2.10.0 and 2.12.0 are confirmed affected).
references:
    - https://cert.pl/en/posts/2026/11/CVE-2026-110699/
    - https://www.cve.org/CVERecord?id=CVE-2026-110699
author: Threadlinqs Team
date: 2026/11/26
tags:
    - attack.initial_access
    - attack.t1190
    - attack.resource_development
    - attack.t1608.001
    - attack.command_and_control
    - attack.t1105
    - cve.2026.110699
logsource:
    category: webserver
detection:
    selection:
        cs-method: 'POST'
        c-uri|contains: '/project/file'
        cs-uri-query|contains: 'session_id='
        sc-status:
            - 200
            - 201
    filter_retrieval:
        c-uri|contains: '/project/file/'
    condition: selection and not filter_retrieval
falsepositives:
    - Chainlit deployments where spontaneous_file_upload is intentionally enabled and users upload files
    - Authorized security scanning or penetration tests
level: medium
```

**Known false positives:**

- Chainlit deployments where file upload is intentionally enabled and legitimate users attach files
- Authorized vulnerability scans or penetration tests against the Chainlit endpoint

**Tuning notes:** Restrict to hosts where spontaneous_file_upload is disabled (maintain a lookup of such Chainlit hosts) so any upload is high-signal. Also alert when the service runs with authentication disabled, the CVE record's stated precondition. Adjust uri_path for custom root paths and replace index/sourcetype with your reverse-proxy log source.

### 8 more detection rules (Splunk SPL, Microsoft KQL, Sigma), unlock with TL Creds

- [indicator] Upload Followed by Retrieval of Hosted File on Same Host (Sentinel) — Exploitation (locked: unlock with TL Creds)
- [indicator] Upload Directory Web and Script Content Creation via Defender for Endpoint (Sentinel) — Staging (locked: unlock with TL Creds)
- [indicator] File-Retrieval URL Delivered by Email or Clicked by Users (Sentinel) — Phishing Delivery (locked: unlock with TL Creds)
- [indicator] Upload Route Probing and Bypass Attempts on Upload-Disabled Instance (Sigma) — Exploitation (locked: unlock with TL Creds)
- [indicator] Upload Directory Server-Side Script File Created, Possible Web Shell Staging (Sigma) — Post-Exploitation (locked: unlock with TL Creds)
- [indicator] Uploaded-File URL Visited From Email or Chat Referrer (Sigma) — Phishing Delivery (locked: unlock with TL Creds)
- [indicator] Active Web Content (HTML/SVG/JS) Written to Upload Directory — Staging (locked: unlock with TL Creds)
- [indicator] Uploaded-File Retrieval URL Used as Phishing Page With Form POST Back — Credential Capture (locked: unlock with TL Creds)

Sign up free to unlock the detection rules: https://threadlinqs.com/?modal=signup

## Sources

- [CERT Polska: Vulnerability in Chainlit software](https://cert.pl/en/posts/2026/11/CVE-2026-110699/)
- [CVE-2026-110699 CVE Record](https://www.cve.org/CVERecord?id=CVE-2026-110699)
- [CVE-2026-110699 CVE Services API record (CNA: CERT-PL)](https://cveawg.mitre.org/api/cve/CVE-2026-110699)
- [CWE-693: Protection Mechanism Failure](https://cwe.mitre.org/data/definitions/693.html)
- [CAPEC-554: Functionality Bypass](https://capec.mitre.org/data/definitions/554.html)
- [Chainlit project site](https://chainlit.io/)
- [chainlit package on PyPI](https://pypi.org/project/chainlit/)
- [CERT Polska coordinated vulnerability disclosure policy](https://cert.pl/en/cvd/)
- [The Register: AI framework flaws put enterprise clouds at risk of takeover (unrelated earlier Chainlit ChainLeak flaws, context only)](https://www.theregister.com/2026/01/20/ai_framework_flaws_enterprise_clouds)

## Full data

The other 8 detection rules (Splunk SPL / Microsoft KQL / Sigma) unlock with TL Creds; a free account includes daily creds: https://threadlinqs.com/?modal=signup
Indicator values unlock with TL Creds, at a lower price on Red and Purple; AI agents can query rules and IOCs through the Threadlinqs MCP server (Purple and Gold in full, 2 calls a day on a free account): https://intel.threadlinqs.com/mcp

Canonical: https://intel.threadlinqs.com/threat/TL-2026-6931
