PYSEC-2026-401
parisneo/lollms vulnerable to stored XSS in the social feature
Quick fix
PYSEC-2026-401 — lollms: upgrade to the fixed version with the command below.
pip install --upgrade 'lollms>=2.2.0'Details
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.
Are you affected?
Enter the version of the package you're using.
Affected packages
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-1115[ADVISORY]
- https://github.com/parisneo/lollms/commit/9767b882dbc893c388a286856beeaead69b8292a[WEB]
- https://github.com/ParisNeo/lollms[PACKAGE]
- https://huntr.com/bounties/099aa4fe-7165-4337-889c-3fb4f1aa71aa[WEB]
- https://pypi.org/project/lollms[PACKAGE]
- https://github.com/advisories/GHSA-8wrq-fv5f-pfp2[ADVISORY]
Check it before you install it
One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.
curl -s https://vdb.ai.kr/v1/ai/check-packages \
-H 'Content-Type: application/json' \
-d '{"packages":["pkg:pypi/lollms"]}'