Description
Chainlit through 2.12.0 fails to validate the client-supplied socket.io sessionId parameter, allowing unauthenticated attackers to traverse filesystem paths by injecting absolute or relative path sequences. Attackers can craft malicious sessionId values that escape the upload directory and recursively delete arbitrary directories accessible to the service process.
Severity (CVSS)
| Base score | 8.8 |
|---|---|
| Severity | High |
| Version | CVSS 4.0 |
| Vector | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N |
| Provided by | CNA |
Weaknesses
- CWE-22 — CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Chainlit | chainlit | 0 to <=2.12.0 |
References
- https://github.com/Chainlit/chainlit (product)
- https://github.com/Chainlit/chainlit/blob/2.12.0/backend/chainlit/session.py (technical-description)
- https://github.com/Chainlit/chainlit/blob/2.12.0/backend/chainlit/socket.py (technical-description)
- https://pypi.org/project/chainlit/ (product)
- https://www.vulncheck.com/advisories/chainlit-through-2.12.0-path-traversal-via-socket-io-sessionid (third-party-advisory)
Generated from the official CVE List on 10 Sep 2026 07:03 UTC.