PYSEC-2026-598

Vulnerability from pysec - Published: 2026-01-20 00:15 - Updated: 2026-07-02 07:41
VLAI
Details

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/, allowing disclosure of any file readable by the Chainlit service.

Impacted products
Name purl
chainlit pkg:pypi/chainlit
Aliases

{
  "affected": [
    {
      "ecosystem_specific": {},
      "package": {
        "ecosystem": "PyPI",
        "name": "chainlit",
        "purl": "pkg:pypi/chainlit"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "2.9.4"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "0.1.0",
        "0.1.1",
        "0.1.101",
        "0.1.102",
        "0.1.103",
        "0.2.0",
        "0.2.1",
        "0.2.101",
        "0.2.102",
        "0.2.103",
        "0.2.104",
        "0.2.105",
        "0.2.106",
        "0.2.107",
        "0.2.108",
        "0.2.109",
        "0.2.110",
        "0.2.111",
        "0.3.0",
        "0.4.0",
        "0.4.1",
        "0.4.101",
        "0.4.2",
        "0.4.3",
        "0.5.0",
        "0.5.1",
        "0.5.2",
        "0.6.0",
        "0.6.1",
        "0.6.2",
        "0.6.3",
        "0.6.4",
        "0.6.401",
        "0.6.402",
        "0.7.0",
        "0.7.1",
        "0.7.2",
        "0.7.3",
        "0.7.301",
        "0.7.400",
        "0.7.500",
        "0.7.501",
        "0.7.600rc0",
        "0.7.600rc1",
        "0.7.601rc0",
        "0.7.602",
        "0.7.602rc0",
        "0.7.603",
        "0.7.604",
        "0.7.604rc0",
        "0.7.604rc1",
        "0.7.604rc2",
        "0.7.700",
        "1.0.0",
        "1.0.0rc0",
        "1.0.0rc1",
        "1.0.0rc2",
        "1.0.0rc3",
        "1.0.100",
        "1.0.101",
        "1.0.200",
        "1.0.300",
        "1.0.301",
        "1.0.400",
        "1.0.401",
        "1.0.500",
        "1.0.501",
        "1.0.502",
        "1.0.503",
        "1.0.504",
        "1.0.505",
        "1.0.506",
        "1.1.0",
        "1.1.0rc0",
        "1.1.0rc1",
        "1.1.101",
        "1.1.200",
        "1.1.201",
        "1.1.202",
        "1.1.300",
        "1.1.300rc0",
        "1.1.300rc1",
        "1.1.300rc2",
        "1.1.300rc3",
        "1.1.300rc4",
        "1.1.300rc5",
        "1.1.301",
        "1.1.302",
        "1.1.303",
        "1.1.304",
        "1.1.305",
        "1.1.306",
        "1.1.400",
        "1.1.400rc0",
        "1.1.400rc1",
        "1.1.401",
        "1.1.402",
        "1.1.403rc0",
        "1.1.404",
        "1.2.0",
        "1.2.0rc0",
        "1.3.0",
        "1.3.0rc0",
        "1.3.0rc1",
        "1.3.1",
        "1.3.2",
        "2.0.0",
        "2.0.1",
        "2.0.2",
        "2.0.3",
        "2.0.4",
        "2.0.5",
        "2.0.6",
        "2.0.601",
        "2.0.602",
        "2.0.603",
        "2.0.dev0",
        "2.0.dev1",
        "2.0.dev2",
        "2.0rc0",
        "2.0rc1",
        "2.1.0",
        "2.1.1",
        "2.1.2",
        "2.2.0",
        "2.2.1",
        "2.3.0",
        "2.4.0",
        "2.4.0rc0",
        "2.4.1",
        "2.4.2",
        "2.4.201",
        "2.4.3",
        "2.4.301",
        "2.4.302",
        "2.4.400",
        "2.5.5",
        "2.6.0",
        "2.6.1",
        "2.6.2",
        "2.6.3",
        "2.6.4",
        "2.6.5",
        "2.6.6",
        "2.6.7",
        "2.6.8",
        "2.6.9",
        "2.7.0",
        "2.7.1",
        "2.7.1.1",
        "2.7.2",
        "2.8.0",
        "2.8.1",
        "2.8.2",
        "2.8.3",
        "2.8.4",
        "2.8.5",
        "2.9.0",
        "2.9.1",
        "2.9.2",
        "2.9.3"
      ]
    }
  ],
  "aliases": [
    "CVE-2026-22218"
  ],
  "details": "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\u2019s session. The resulting element identifier (chainlitKey) can then be used to retrieve the file contents via /project/file/\u003cchainlitKey\u003e, allowing disclosure of any file readable by the Chainlit service.",
  "id": "PYSEC-2026-598",
  "modified": "2026-07-02T07:41:22.724538Z",
  "published": "2026-01-20T00:15:48.910Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/Chainlit/chainlit/releases/tag/2.9.4"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/chainlit-arbitrary-file-read-via-project-element"
    },
    {
      "type": "EVIDENCE",
      "url": "https://www.zafran.io/resources/chainleak-critical-ai-framework-vulnerabilities-expose-data-enable-cloud-takeover"
    }
  ],
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N",
      "type": "CVSS_V3"
    }
  ]
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Loading…

Loading…

Related by attack behaviour

Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.


Loading…