A Stored Cross-Site Scripting (XSS) vulnerability was identified in the social feature of parisneo/lollms, affecting the latest version prior to 2.2.0. The vulnerability exists in the `create_post` function within `backend/routers/social/__init__.py`, where user-provided content is directly assigned to the `DBPost` model without sanitization. This allows attackers to inject and store malicious JavaScript, which is executed in the browsers of users viewing the Home Feed, including administrators. This can lead to account takeover, session hijacking, and wormable attacks. The issue is resolved in version 2.2.0.
The vulnerability is located in the `create_post` function in the `backend/routers/social/__init__.py` file. User-supplied content is directly assigned to the `DBPost` model without any sanitization or input validation. Malicious JavaScript payload is permanently stored in the database and executed in the browser of every user viewing the main application feed. Due to the possibility of automatic attack propagation, the vulnerability may have a worm-like nature (wormable).
An attacker can cause account takeover of users and administrators, session hijacking, and wormable attacks, which are self-propagating attacks affecting subsequent users viewing infected content.
The lollms platform should be updated to version 2.2.0, where the issue has been resolved. The patch is available in the vendor references and in commit 9767b882dbc893c388a286856beeaead69b8292a in the GitHub repository.
All versions of parisneo/lollms prior to version 2.2.0.
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:HLollms
APPLollms≤ 2.1.0
Related vulnerabilities
Słaby klucz JWT umożliwia privilege escalation w parisneo/lollms
Brak uwierzytelnienia w endpoint /api/files/extract-text w Lollms
Path Traversal w lollms — nieautoryzowany odczyt plików na Windows
A Server-Side Request Forgery (SSRF) vulnerability exists in parisneo/lollms versions prior to 2.2.0, specific...
A critical security vulnerability in parisneo/lollms versions up to 2.2.0 allows any authenticated user to acc...