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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Chainlit | chainlit | ≤ 2.12.0 | — |
References
- Product Repository product
- Vulnerable files_dir property and rmtree sink technical-description
- Client-supplied sessionId assignment technical-description
- PyPI Package product
- VulnCheck Advisory: Chainlit through 2.12.0 Path Traversal via socket.io sessionId third-party-advisory