nday
CVE-2026-22218 GHSA-gm79-2pvc-wc75

Chainlit < 2.9.4 Arbitrary File Read via /project/element

Chainlit / Chainlit

Patch on record 301 days after disclosure. Patched: fixed in chainlit 2.9.4. None of the four PoC sources lists it. Not in CISA KEV.

tags weakness typepath traversal accessnetworkno user interaction ecosystemPyPI
why these tags

nday derives these tags by fixed rules from the facts below; NVD, the CNA and other sources do not assign them. Vocabulary and rules: ~/tags.

path traversal
CWE-22, stated by the CNA VulnCheck, NVD, republishing [email protected], and GitHub advisory GHSA-gm79-2pvc-wc75CWE-73, stated by GitHub advisory GHSA-gm79-2pvc-wc75
network
AV:N in CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N (CVSS 4.0) from the CNA VulnCheck
no user interaction
UI:N in CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N (CVSS 4.0) from the CNA VulnCheck
PyPI
GHSA-gm79-2pvc-wc75: pip packages chainlit
stage
PAT
disclosed
disclosure → patch
T+301d
cvss
7.1 HIGH v4.0

Lifecycle

x axis UTC; dot = exact minute, wide bar = date only, hollow = unknown or inferred.
time unknown
DISdisclosed
01-19T23:14Z
PATpatch
11-16T23:03Z
ANAanalysis
no record yet
POCPoC
no record yet
ITWexploited
no record yet
KEVKEV
no record yet

Summary

Chainlit versions prior to 2.9.4 contain an arbitrary file read vulnerability in the /project/element update flow. An authenticated client can send a custom Element with a user-controlled path value, causing the server to copy the referenced file into the attacker’s session. The resulting element identifier (chainlitKey) can then be used to retrieve the file contents via /project/file/<chainlitKey>, allowing disclosure of any file readable by the Chainlit service.

Original text of the CVE record (cvelist), shown as published.

Exploit conditions

What an attack needs, read from the CVSS vector.
Attack vector AV:N
Network: the attacker only needs to reach it over the network
Attack complexity AC:L
Low: no target-specific security measures to get around
Attack requirements AT:N
None: success does not depend on how the target is deployed or running
Privileges required PR:L
Low: ordinary user privileges
User interaction UI:N
None: no action by anyone other than the attacker

CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

CVSS 4.0 vector from the CVE record, scored by the CNA VulnCheck.

Event log

+DISdisclosed

CVE record published by VulnCheck. CVSS 7.1, high. CISA's SSVC assessment rates exploitation as poc.

src cvelist · nday , bulk import · raw
{
  "id": 9285,
  "type": "disclosed",
  "source": "cvelist",
  "url": "https://www.cve.org/CVERecord?id=CVE-2026-22218",
  "occurred_at": "2026-01-19T23:14:52.969Z",
  "observed_at": "2026-11-12T14:10:31.286634Z",
  "is_backfill": true,
  "dedupe_key": "",
  "detail": {
    "cvss": {
      "source": "cna",
      "vector": "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N",
      "version": "4.0",
      "base_score": 7.1,
      "base_severity": "HIGH"
    },
    "ssvc": {
      "timestamp": "2026-01-21T19:37:14.195072Z",
      "automatable": "no",
      "exploitation": "poc",
      "technical_impact": "partial"
    },
    "state": "PUBLISHED",
    "date_published": "2026-01-19T23:14:52.969Z",
    "assigner_short_name": "VulnCheck"
  }
}
no source time; observed live by nday
+PATpatch released

The advisory gives fixed version chainlit 2.9.4. Fix commits are linked. Advisory published ; the patch's own release time is not recorded.

src ghsa GHSA-gm79-2pvc-wc75 · nday , observed live · raw
{
  "id": 475789,
  "type": "patch_released",
  "source": "ghsa",
  "url": "https://github.com/advisories/GHSA-gm79-2pvc-wc75",
  "occurred_at": null,
  "observed_at": "2026-11-16T23:03:12.59201Z",
  "is_backfill": false,
  "dedupe_key": "GHSA-gm79-2pvc-wc75",
  "detail": {
    "cvss": {
      "cvss_v3": {
        "score": 6.5,
        "vector_string": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N"
      },
      "cvss_v4": {
        "score": 7.1,
        "vector_string": "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N"
      }
    },
    "cwes": [
      {
        "name": "Improper Limitation of a Pathname to a Restricted Directory",
        "cwe_id": "CWE-22"
      },
      {
        "name": "External Control of File Name or Path",
        "cwe_id": "CWE-73"
      }
    ],
    "ghsa_id": "GHSA-gm79-2pvc-wc75",
    "packages": [
      {
        "name": "chainlit",
        "ecosystem": "pip",
        "first_patched_version": "2.9.4",
        "vulnerable_version_range": "< 2.9.4"
      }
    ],
    "severity": "high",
    "references": [
      "https://nvd.nist.gov/vuln/detail/CVE-2026-22218",
      "https://github.com/Chainlit/chainlit/releases/tag/2.9.4",
      "https://www.vulncheck.com/advisories/chainlit-arbitrary-file-read-via-project-element",
      "https://www.zafran.io/resources/chainleak-critical-ai-framework-vulnerabilities-expose-data-enable-cloud-takeover",
      "https://github.com/Chainlit/chainlit/pull/2737",
      "https://github.com/Chainlit/chainlit/commit/ffc3cce648b343b933e10e85ee5805c7e02ab3bf",
      "https://github.com/advisories/GHSA-gm79-2pvc-wc75"
    ],
    "fix_commit_urls": [
      "https://github.com/Chainlit/chainlit/pull/2737",
      "https://github.com/Chainlit/chainlit/commit/ffc3cce648b343b933e10e85ee5805c7e02ab3bf"
    ],
    "github_reviewed_at": "2026-11-16T22:36:32Z",
    "advisory_updated_at": "2026-11-16T22:36:32Z",
    "source_code_location": "https://github.com/Chainlit/chainlit",
    "advisory_published_at": "2026-01-20T00:30:28Z"
  }
}

Report an error

report an error or omission

Something on this page wrong or missing? Tell the editors; if they accept it, this page's revision log says so publicly. Upstream data is not changed.

Researcher discussion

0 researchers mentioned this in the last 7 days

Posts on X by researchers on nday's list that mention this CVE, shown as posted. nday does not check them.

nday has not collected any post on X by listed researchers that mentions this CVE.

Discussion

0 comments

No comments yet.