---
id: CVE-2026-22219
aliases:
  - GHSA-2g59-m95p-pgfq
  - PYSEC-2026-1237
title: Chainlit contain a server-side request forgery (SSRF) vulnerability
summary: Chainlit contain a server-side request forgery (SSRF) vulnerability
severity: high
cvss: 7.7
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N'
vendor: chainlit
product: chainlit
ecosystem: pip
affected:
  - chainlit < 2.9.4
patched:
  - chainlit 2.9.4
published: '2026-01-20'
updated: '2026-07-07'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-2g59-m95p-pgfq'
references:
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-22219'
  - url: >-
      https://github.com/Chainlit/chainlit/commit/ffc3cce648b343b933e10e85ee5805c7e02ab3bf
  - url: 'https://github.com/Chainlit/chainlit'
  - url: 'https://github.com/Chainlit/chainlit/releases/tag/2.9.4'
  - url: >-
      https://www.vulncheck.com/advisories/chainlit-sqlalchemy-data-layer-ssrf-via-project-element
  - url: >-
      https://www.zafran.io/resources/chainleak-critical-ai-framework-vulnerabilities-expose-data-enable-cloud-takeover
tags:
  - osv
  - pip
epss: 0.0506
epssPercentile: 0.91989
ingestedAt: '2026-07-08T18:25:44.224Z'
---

## Overview

Chainlit versions prior to 2.9.4 contain a server-side request forgery (SSRF) vulnerability in the /project/element update flow when configured with the SQLAlchemy data layer backend. An authenticated client can provide a user-controlled url value in an Element, which is fetched by the SQLAlchemy element creation logic using an outbound HTTP GET request. This allows an attacker to make arbitrary HTTP requests from the Chainlit server to internal network services or cloud metadata endpoints and store the retrieved responses via the configured storage provider.

## Affected packages

- `chainlit < 2.9.4`

## Remediation

Upgrade to a patched release:

- `chainlit 2.9.4`
