jira/apps/api/plane/app/views/issue
Manish Gupta af1be50b48
[WEB-8074] fix: scope IssueListEndpoint to guest created_by (#9374)
* [WEB-8074] fix: scope IssueListEndpoint to guest created_by

IssueListEndpoint.get (/workspaces/<slug>/projects/<project_id>/issues/list/)
returned any issue whose id was passed in ?issues=, without the guest
created_by restriction its sibling IssueViewSet.list enforces. A project GUEST
(role=5) on a project with guest_view_all_features=False could read issues they
did not author by supplying their ids (GHSA-32c7-84jc-4w67).

Replicate the guest scope: when the requester is an active role=5 ProjectMember
and not project.guest_view_all_features, filter the queryset to
created_by=request.user. Applied to the base queryset so it flows through
filtering, annotation and grouping.

Contract regression tests cover the restricted guest (own-only), a full member
(sees all), and a guest with guest_view_all_features enabled (sees all);
fail-before verified.

Co-authored-by: Plane AI <noreply@plane.so>

* Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Plane AI <noreply@plane.so>
Co-authored-by: Dheeraj Kumar Ketireddy <dheeraj.ketireddy@plane.so>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-07-16 16:03:25 +05:30
..
activity.py chore: add copyright (#8584) 2026-01-27 13:54:22 +05:30
archive.py chore: add copyright (#8584) 2026-01-27 13:54:22 +05:30
attachment.py [WEB-7892] fix(security): scope attachment PATCH/DELETE/GET by issue_id, drop created_by overwrite (GHSA-5mxw-g5mw-3v3w) (#9315) 2026-07-01 17:41:08 +05:30
base.py [WEB-8074] fix: scope IssueListEndpoint to guest created_by (#9374) 2026-07-16 16:03:25 +05:30
comment.py chore: add copyright (#8584) 2026-01-27 13:54:22 +05:30
label.py chore: add copyright (#8584) 2026-01-27 13:54:22 +05:30
link.py chore: add copyright (#8584) 2026-01-27 13:54:22 +05:30
reaction.py chore: add copyright (#8584) 2026-01-27 13:54:22 +05:30
relation.py [WEB-7727] fix(security): scope issue ID validation to workspace/project in bulk endpoints (#9269) 2026-06-20 17:07:42 +05:30
sub_issue.py [WEB-7727] fix(security): scope issue ID validation to workspace/project in bulk endpoints (#9269) 2026-06-20 17:07:42 +05:30
subscriber.py chore: add copyright (#8584) 2026-01-27 13:54:22 +05:30
version.py chore: add copyright (#8584) 2026-01-27 13:54:22 +05:30