Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
b99f74d
[WEB-7946] fix: add rate limiting to email/password sign-in and sign-…
mguptahub Aug 27, 2026
79b6075
[WEB-8103] fix: stop leaking webhook HMAC secret_key on reads (#9382)
mguptahub Aug 27, 2026
2146cfd
[WEB-8110] fix: sanitize page list order_by against an allowlist (#9387)
mguptahub Aug 27, 2026
1e1248a
[WEB-8283] fix: bind Spaces board object IDs to the anchor's project …
mguptahub Aug 27, 2026
5c4d9b1
[WEB-8352] fix(security): scope SubIssuesEndpoint to the URL project …
mguptahub Aug 27, 2026
e3324b6
fix(api): validate assignees/labels in IssueSerializer instead of sil…
houssaineamzil Sep 2, 2026
c9b56cf
[GIT-221] fix(cycle): guard against no end_date when archiving cycle …
Rahulcheryala Sep 2, 2026
cd98fab
fix(api): avoid re-crawling issue link on update when url is unchange…
Tyagiquamar Sep 7, 2026
fea9426
[INFRA-962] fix(minio): pull MinIO images from quay.io instead of the…
pratapalakshmi Sep 15, 2026
a5595ea
[WEB-8289] fix: scope draft-to-issue conversion to the draft owner (#…
mguptahub Sep 15, 2026
b2dd757
[WEB-9166] fix(project): scope project-join membership lookup to the …
sriramveeraghanta Sep 22, 2026
6fc1010
chore: bump version to 1.4.3
sriramveeraghanta Sep 22, 2026
c6be1fa
chore: upgrade pnpm to 11.10, turbo to latest, fix dependabot alert (…
sriramveeraghanta Sep 1, 2026
a97680d
chore(deps): bump sanitize-html (#9736)
dependabot[bot] Sep 2, 2026
00ecb12
[INFRA-843] fix(security): clear nightly Trivy findings (#9773)
pratapalakshmi Sep 7, 2026
1258f53
fix(security): clear the 2026-09-10 nightly Trivy findings (#9806)
pratapalakshmi Sep 10, 2026
ec1e5de
fix(deps): resolve dependabot security alerts (#9839)
sriramveeraghanta Sep 15, 2026
5fcc65f
fix(security): bump the fast-uri pin to 3.1.8 (#9919)
pratapalakshmi Oct 1, 2026
5864647
[INFRA-804] fix(airgapped and minio): harden community restore-airgap…
akshat5302 Oct 1, 2026
b348e44
[INFRA-1039] fix(deployments): find the latest release when the GitHu…
akshat5302 Oct 1, 2026
90717e5
fix: address v1.4.3 release review comments (#9925)
sriramveeraghanta Oct 1, 2026
28301f7
[INFRA-1089] chore(deps): switch MinIO image to pgsty/silo (#9962) (#…
sriramveeraghanta Oct 8, 2026
dc93e16
[SECUR-247] fix(security): require project membership to publish (#10…
sriramveeraghanta Oct 16, 2026
bc0b1bb
[GIT-384] Fix voting on published work items with no votes (#10103)
Rahulcheryala Oct 23, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions apps/admin/Dockerfile.admin
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ RUN corepack enable pnpm

FROM base AS builder

RUN pnpm add -g turbo@2.9.18
RUN pnpm add -g turbo@2.10.11

COPY . .

Expand Down Expand Up @@ -77,7 +77,11 @@ RUN pnpm turbo run build --filter=admin

FROM nginx:1.31-alpine AS production

RUN apk update && apk upgrade --no-cache && rm -rf /var/cache/apk/*
# OS security updates. --available forces reinstall from the current repos;
# bump APK_SECURITY_PATCH to bust buildx's cached layer (keyed on this command
# string), otherwise a rebuild silently re-ships the old packages.
ARG APK_SECURITY_PATCH=2026-09-07
RUN echo "apk-security-patch ${APK_SECURITY_PATCH}" && apk update && apk upgrade --no-cache --available && rm -rf /var/cache/apk/*
Comment thread
sriramveeraghanta marked this conversation as resolved.
Resolved

COPY apps/admin/nginx/nginx.conf /etc/nginx/nginx.conf
COPY --from=installer /app/apps/admin/build/client /usr/share/nginx/html/god-mode
Expand Down
2 changes: 1 addition & 1 deletion apps/admin/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "admin",
"version": "1.4.2",
"version": "1.4.3",
"private": true,
"description": "Admin UI for Plane",
"license": "AGPL-3.0",
Expand Down
13 changes: 8 additions & 5 deletions apps/api/Dockerfile.api
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
FROM python:3.12.10-alpine
FROM python:3.12.12-alpine

# set environment variables
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
ENV PIP_DISABLE_PIP_VERSION_CHECK=1
ENV INSTANCE_CHANGELOG_URL=https://sites.plane.so/pages/691ef037bcfe416a902e48cb55f59891/

# Update system packages for security
RUN apk update && apk upgrade
# OS security updates. --available forces reinstall from the current repos;
# bump APK_SECURITY_PATCH to bust buildx's cached layer (keyed on this command
# string), otherwise a rebuild silently re-ships the old packages.
ARG APK_SECURITY_PATCH=2026-09-07
RUN echo "apk-security-patch ${APK_SECURITY_PATCH}" && apk update && apk upgrade --available

WORKDIR /code

Expand All @@ -22,7 +25,7 @@ COPY requirements.txt ./
COPY requirements ./requirements
RUN apk add --no-cache libffi-dev
RUN apk add --no-cache --virtual .build-deps \
"bash~=5.2" \
"bash~=5.3" \
"g++" \
"gcc" \
"cargo" \
Expand All @@ -45,7 +48,7 @@ COPY plane plane/
COPY templates templates/
COPY package.json package.json

RUN apk --no-cache add "bash~=5.2"
RUN apk --no-cache add "bash~=5.3"
COPY ./bin ./bin/

RUN mkdir -p /code/plane/logs
Expand Down
2 changes: 1 addition & 1 deletion apps/api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "plane-api",
"version": "1.4.2",
"version": "1.4.3",
"private": true,
"description": "API server powering Plane's backend",
"license": "AGPL-3.0"
Expand Down
32 changes: 23 additions & 9 deletions apps/api/plane/api/serializers/issue.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,18 +105,32 @@ def validate(self, data):

# Validate assignees are from project
if data.get("assignees", []):
data["assignees"] = ProjectMember.objects.filter(
project_id=self.context.get("project_id"),
is_active=True,
role__gte=15,
member_id__in=data["assignees"],
).values_list("member_id", flat=True)
valid_assignee_ids = set(
ProjectMember.objects.filter(
project_id=self.context.get("project_id"),
is_active=True,
role__gte=15,
member_id__in=data["assignees"],
).values_list("member_id", flat=True)
Comment thread
sriramveeraghanta marked this conversation as resolved.
Resolved
)
invalid_assignee_ids = set(data["assignees"]) - valid_assignee_ids
if invalid_assignee_ids:
raise serializers.ValidationError(
f"Assignees {list(invalid_assignee_ids)} are not active members of this project"
)
data["assignees"] = list(valid_assignee_ids)

# Validate labels are from project
if data.get("labels", []):
data["labels"] = Label.objects.filter(
project_id=self.context.get("project_id"), id__in=data["labels"]
).values_list("id", flat=True)
valid_label_ids = set(
Label.objects.filter(
project_id=self.context.get("project_id"), id__in=data["labels"]
).values_list("id", flat=True)
)
invalid_label_ids = set(data["labels"]) - valid_label_ids
if invalid_label_ids:
raise serializers.ValidationError(f"Labels {list(invalid_label_ids)} do not belong to this project")
data["labels"] = list(valid_label_ids)

# Check state is from the project only else raise validation error
if (
Expand Down
2 changes: 1 addition & 1 deletion apps/api/plane/api/views/cycle.py
Original file line number Diff line number Diff line change
Expand Up @@ -813,7 +813,7 @@ def post(self, request, slug, project_id, cycle_id):
Only cycles that have ended can be archived.
"""
cycle = Cycle.objects.get(pk=cycle_id, project_id=project_id, workspace__slug=slug)
if cycle.end_date >= timezone.now():
if cycle.end_date is None or cycle.end_date >= timezone.now():
return Response(
{"error": "Only completed cycles can be archived"},
status=status.HTTP_400_BAD_REQUEST,
Expand Down
7 changes: 6 additions & 1 deletion apps/api/plane/api/views/intake.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,12 @@ def patch(self, request, slug, project_id, issue_id):
"description_json": description_json,
}

issue_serializer = IssueSerializer(issue, data=issue_data, partial=True)
issue_serializer = IssueSerializer(
issue,
data=issue_data,
context={"project_id": project_id, "workspace_id": issue.workspace_id},
partial=True,
)

if not issue_serializer.is_valid():
return Response(issue_serializer.errors, status=status.HTTP_400_BAD_REQUEST)
Expand Down
5 changes: 4 additions & 1 deletion apps/api/plane/api/views/issue.py
Original file line number Diff line number Diff line change
Expand Up @@ -1307,10 +1307,13 @@ def patch(self, request, slug, project_id, issue_id, pk):
issue_link = IssueLink.objects.get(workspace__slug=slug, project_id=project_id, issue_id=issue_id, pk=pk)
requested_data = json.dumps(request.data, cls=DjangoJSONEncoder)
current_instance = json.dumps(IssueLinkSerializer(issue_link).data, cls=DjangoJSONEncoder)
previous_url = issue_link.url
serializer = IssueLinkSerializer(issue_link, data=request.data, partial=True)
if serializer.is_valid():
serializer.save()
crawl_work_item_link_title.delay(serializer.data.get("id"), serializer.data.get("url"))
updated_url = serializer.data.get("url")
if updated_url and updated_url != previous_url:
crawl_work_item_link_title.delay(serializer.data.get("id"), updated_url)
issue_activity.delay(
type="link.activity.updated",
requested_data=requested_data,
Expand Down
8 changes: 6 additions & 2 deletions apps/api/plane/app/permissions/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,16 @@ def has_permission(self, request, view):
project_id=view.project_id,
is_active=True,
).exists()
## Only workspace owners or admins can create the projects
# Scope POST to the URL project, as the other two branches already do.
# A workspace-only check let any member create sub-resources in a project
# they do not belong to — including a deploy board, which returns the
# public anchor and exposes a Secret project to anonymous callers.
if request.method == "POST":
return WorkspaceMember.objects.filter(
return ProjectMember.objects.filter(
workspace__slug=view.workspace_slug,
member=request.user,
role__in=[ROLE.ADMIN.value, ROLE.MEMBER.value],
project_id=view.project_id,
is_active=True,
).exists()

Expand Down
24 changes: 24 additions & 0 deletions apps/api/plane/app/serializers/webhook.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,30 @@ def _validate_webhook_url(self, url):
if any(hostname == domain or hostname.endswith("." + domain) for domain in disallowed_domains):
raise serializers.ValidationError({"url": "URL domain or its subdomain is not allowed."})

def to_representation(self, instance):
data = super().to_representation(instance)
# secret_key is the HMAC signing secret. It is only revealed on creation
# and secret regeneration (opt-in via the show_secret_key context flag),
# never on list/retrieve/update.
#
# This context flag — not the fields= allowlists in views/webhook/base.py —
# is the sole enforcement point. Those fields= kwargs are dead
# on two independent levels, so do not assume fixing either one re-activates
# them:
# 1. DynamicBaseSerializer.__init__ pops the caller's fields= and then
# overwrites it with self.expand (serializers/base.py:16-18), so the
# requested allowlist never reaches _filter_fields at all.
# 2. _filter_fields never *removes* anything even when it does receive a
# list — it builds `allowed` purely to add expansion serializers for
# names not already present, then returns self.fields unfiltered
# (serializers/base.py:45-119).
# A future one-line `fields = fields or self.expand` fix addresses only (1);
# (2) still has to be made restrictive before any fields= allowlist can be
# relied on for confidentiality.
if not self.context.get("show_secret_key"):
data.pop("secret_key", None)
return data

def create(self, validated_data):
url = validated_data.get("url", None)
self._validate_webhook_url(url)
Expand Down
2 changes: 1 addition & 1 deletion apps/api/plane/app/views/cycle/archive.py
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ def get(self, request, slug, project_id, pk=None):
def post(self, request, slug, project_id, cycle_id):
cycle = Cycle.objects.get(pk=cycle_id, project_id=project_id, workspace__slug=slug)

if cycle.end_date >= timezone.now():
if cycle.end_date is None or cycle.end_date >= timezone.now():
return Response(
{"error": "Only completed cycles can be archived"},
status=status.HTTP_400_BAD_REQUEST,
Expand Down
6 changes: 5 additions & 1 deletion apps/api/plane/app/views/issue/link.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,14 @@ def partial_update(self, request, slug, project_id, issue_id, pk):
requested_data = json.dumps(request.data, cls=DjangoJSONEncoder)
current_instance = json.dumps(IssueLinkSerializer(issue_link).data, cls=DjangoJSONEncoder)

previous_url = issue_link.url

serializer = IssueLinkSerializer(issue_link, data=request.data, partial=True)
if serializer.is_valid():
serializer.save()
crawl_work_item_link_title.delay(serializer.data.get("id"), serializer.data.get("url"))
updated_url = serializer.data.get("url")
if updated_url and updated_url != previous_url:
crawl_work_item_link_title.delay(serializer.data.get("id"), updated_url)

issue_activity.delay(
type="link.activity.updated",
Expand Down
42 changes: 34 additions & 8 deletions apps/api/plane/app/views/issue/sub_issue.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,14 @@ class SubIssuesEndpoint(BaseAPIView):

@method_decorator(gzip_page)
def get(self, request, slug, project_id, issue_id):
# SECURITY: scope the parent lookup to the URL project. ProjectEntityPermission
# only checks that the caller belongs to `project_id`, not that `issue_id` lives
# in it, so an unscoped filter leaks sub-issue metadata across projects in the
# same workspace.
sub_issues = (
Issue.issue_objects.filter(parent_id=issue_id, workspace__slug=slug)
Issue.issue_objects.filter(
parent_id=issue_id, workspace__slug=slug, project_id=project_id
)
.annotate(
cycle_id=Subquery(
CycleIssue.objects.filter(issue=OuterRef("id"), deleted_at__isnull=True).values("cycle_id")[:1]
Expand Down Expand Up @@ -202,7 +208,17 @@ def get(self, request, slug, project_id, issue_id):

# Assign multiple sub issues
def post(self, request, slug, project_id, issue_id):
parent_issue = Issue.issue_objects.get(pk=issue_id)
# SECURITY: bind the parent issue to the URL workspace + project. A bare
# pk lookup let any project member re-parent issues under a parent in a
# different project/workspace.
parent_issue = Issue.issue_objects.filter(
pk=issue_id, workspace__slug=slug, project_id=project_id
).first()
if parent_issue is None:
return Response(
{"error": "Parent issue not found"},
status=status.HTTP_404_NOT_FOUND,
)
sub_issue_ids = request.data.get("sub_issue_ids", [])

if not len(sub_issue_ids):
Expand All @@ -211,30 +227,40 @@ def post(self, request, slug, project_id, issue_id):
status=status.HTTP_400_BAD_REQUEST,
)

# Scope to workspace to prevent cross-tenant IDOR
sub_issues = Issue.issue_objects.filter(id__in=sub_issue_ids, workspace__slug=slug)
# Scope to workspace + project to prevent cross-project/cross-tenant IDOR
sub_issues = Issue.issue_objects.filter(
id__in=sub_issue_ids, workspace__slug=slug, project_id=project_id
)

for sub_issue in sub_issues:
sub_issue.parent = parent_issue

_ = Issue.objects.bulk_update(sub_issues, ["parent"], batch_size=10)

updated_sub_issues = Issue.issue_objects.filter(id__in=sub_issue_ids).annotate(state_group=F("state__group"))
# Only the issues that were actually re-parented — i.e. the project-scoped
# `sub_issues`, not the raw caller-supplied ids. Otherwise a cross-project id
# (excluded from the update above) would still fire issue_activity, whose task
# does an unscoped Issue.objects.get and bumps updated_at on a foreign issue.
scoped_sub_issue_ids = [str(sub_issue.id) for sub_issue in sub_issues]

updated_sub_issues = Issue.issue_objects.filter(
id__in=scoped_sub_issue_ids, workspace__slug=slug, project_id=project_id
).annotate(state_group=F("state__group"))

# Track the issue
_ = [
issue_activity.delay(
type="issue.activity.updated",
requested_data=json.dumps({"parent": str(issue_id)}),
actor_id=str(request.user.id),
issue_id=str(sub_issue_id),
issue_id=sub_issue_id,
project_id=str(project_id),
current_instance=json.dumps({"parent": str(sub_issue_id)}),
current_instance=json.dumps({"parent": sub_issue_id}),
epoch=int(timezone.now().timestamp()),
notification=True,
origin=base_host(request=request, is_app=True),
)
for sub_issue_id in sub_issue_ids
for sub_issue_id in scoped_sub_issue_ids
]

# create's a dict with state group name with their respective issue id's
Expand Down
19 changes: 17 additions & 2 deletions apps/api/plane/app/views/page/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
UserRecentVisit,
)
from plane.utils.error_codes import ERROR_CODES
from plane.utils.order_queryset import PAGE_ORDER_BY_ALLOWLIST, sanitize_order_by

# Local imports
from ..base import BaseAPIView, BaseViewSet
Expand Down Expand Up @@ -100,9 +101,23 @@ def get_queryset(self):
.select_related("workspace")
.select_related("owned_by")
.annotate(is_favorite=Exists(subquery))
.order_by(self.request.GET.get("order_by", "-created_at"))
.prefetch_related("labels")
.order_by("-is_favorite", "-created_at")
# Sanitize the user-supplied order_by against an allowlist: Django
# resolves the field at call time, so an unknown field raises
# FieldError (500 DoS) and a relation path (e.g. owned_by__password)
# enables ORM relational traversal. Favourites stay
# pinned first; the sanitized user ordering is the secondary sort
# (a single .order_by() so it is not overridden), with id as a
# stable tiebreak for pagination.
.order_by(
"-is_favorite",
sanitize_order_by(
self.request.GET.get("order_by", "-created_at"),
PAGE_ORDER_BY_ALLOWLIST,
default="-created_at",
),
"id",
)
.annotate(
project=Exists(
ProjectPage.objects.filter(page_id=OuterRef("id"), project_id=self.kwargs.get("project_id"))
Expand Down
6 changes: 6 additions & 0 deletions apps/api/plane/app/views/project/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -561,6 +561,12 @@ def create(self, request, slug, project_id):
},
)

# project_id comes from the URL and was never checked against slug, so a
# caller could aim their own workspace at another tenant's project id.
# Defence in depth: the permission class now binds both.
if not Project.objects.filter(pk=project_id, workspace__slug=slug).exists():
return Response({"error": "Project does not exist"}, status=status.HTTP_404_NOT_FOUND)

project_deploy_board, _ = DeployBoard.objects.get_or_create(
entity_name="project", entity_identifier=project_id, project_id=project_id
)
Expand Down
15 changes: 12 additions & 3 deletions apps/api/plane/app/views/project/invite.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,9 +249,16 @@ def post(self, request, slug, project_id, pk):
workspace_member.is_active = True
workspace_member.save()

# Check if the user was already a member of project then activate the user
# Check if the user was already a member of the invited project
# then activate the user. The lookup must be scoped to
# `project_id` — a workspace-wide lookup reactivates whatever
# membership the user already had (typically a project they were
# removed from) and leaves the invited project without a member
# row (SECUR-234).
project_member = ProjectMember.objects.filter(
workspace_id=project_invite.workspace_id, member=user
workspace_id=project_invite.workspace_id,
project_id=project_id,
member=user,
).first()
if project_member is None:
# Create a Project Member
Expand All @@ -261,8 +268,10 @@ def post(self, request, slug, project_id, pk):
role=project_invite.role,
)
else:
# The invitation's role is what the inviting admin chose; the
# stale role on a deactivated row must not survive the rejoin.
project_member.is_active = True
project_member.role = project_member.role
project_member.role = project_invite.role
project_member.save()

return Response(
Expand Down
Loading
Loading