CVE-2026-22219: Chainlit Chainlit Contain A Server-side Request Vulnerability

HIGH
Advisory Identifier: GHSA-2g59-m95p-pgfq
CVSS 7.7
CWE-918
Published
Advisory Summary

CVE-2026-22219 is a HIGH (CVSS 7.7) chainlit contain a server-side request vulnerability (CWE-918: Server-Side Request Forgery (SSRF)) affecting Chainlit libraries in the PyPI ecosystem. The issue involves chainlit contain a server-side request forgery (ssrf) vulnerability. Remediation is available by upgrading affected packages to version 2.9.4.

CVE-2026-22219 at a Glance

CVE Identifier CVE-2026-22219
GHSA Identifier GHSA-2g59-m95p-pgfq
Severity HIGH
CVSS v3.1 Base Score 7.7
CWE Classification CWE-918: Server-Side Request Forgery (SSRF)
Affected Product Chainlit
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 7.7

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality High (C:H)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2026-22219

To remediate this vulnerability, upgrade all affected Chainlit dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

chainlit fixed: 2.9.4
pip install chainlit>=2.9.4
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show chainlit

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2026-22219, inspect your installed packages using pip:

pip show chainlit

Analyze the terminal output to locate any version of Chainlit in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.9.4), your application is affected.

Note: The pip show chainlit command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-918: Server-Side Request Forgery (SSRF), where the web server receives a url or similar request from an upstream component and retrieves the contents of this url, but it does not sufficiently ensure that the request is being sent to the expected destination. In Chainlit, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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.

CVE-2026-22219 Affected Chainlit Versions

1 component(s)
Fixed Versions:
2.9.4
Product / Package Ecosystem Affected Versions Fixed Version
chainlit
PyPI
< 2.9.4
2.9.4

References

Frequently Asked Questions

What is CVE-2026-22219?
CVE-2026-22219 is a security vulnerability in Chainlit involving Chainlit contain a server-side request forgery (SSRF) vulnerability under CWE-918: Server-Side Request Forgery (SSRF).
Which Chainlit versions are affected?
Affected versions include releases prior to 2.9.4 across affected packages: chainlit.
What version fixes CVE-2026-22219?
Upgrading to 2.9.4 (or the latest patched release for your respective branch) resolves the vulnerability.
Is chainlit affected?
Yes, chainlit is affected in releases prior to 2.9.4. Upgrade your dependency to 2.9.4 or later.
What is the CVSS score of CVE-2026-22219?
CVE-2026-22219 has a CVSS v3.1 base score of 7.7 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N.
What CWE is associated with CVE-2026-22219?
CVE-2026-22219 is classified under CWE-918: Server-Side Request Forgery (SSRF) (The web server receives a URL or similar request from an upstream component and retrieves the contents of this URL, but it does not sufficiently ensure that the request is being sent to the expected destination.).
How can I check PyPI dependencies for CVE-2026-22219?
Run the dependency tree command: 'pip show chainlit'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-2g59-m95p-pgfq",
  "modified" : "2026-02-02T22:22:24Z",
  "published" : "2026-01-20T00:30:28Z",
  "aliases" : [ "CVE-2026-22219" ],
  "summary" : "Chainlit contain a server-side request forgery (SSRF) vulnerability",
  "details" : "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.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:H/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "chainlit"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.9.4"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-22219"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/Chainlit/chainlit/commit/ffc3cce648b343b933e10e85ee5805c7e02ab3bf"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/Chainlit/chainlit"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/Chainlit/chainlit/releases/tag/2.9.4"
  }, {
    "type" : "WEB",
    "url" : "https://www.vulncheck.com/advisories/chainlit-sqlalchemy-data-layer-ssrf-via-project-element"
  }, {
    "type" : "WEB",
    "url" : "https://www.zafran.io/resources/chainleak-critical-ai-framework-vulnerabilities-expose-data-enable-cloud-takeover"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-918" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-01-21T01:07:02Z",
    "nvd_published_at" : "2026-01-20T00:15:49Z"
  }
}