Skip to content

[INFRA-843] fix(security): bump toml and djangorestframework for 2026-10-22 advisories - #10098

Merged
sriramveeraghanta merged 2 commits into
previewfrom
fix/security-scan-2026-10-23
Oct 23, 2026
Merged

sriramveeraghanta merged 2 commits into
previewfrom
fix/security-scan-2026-10-23

Conversation

@pratapalakshmi

@pratapalakshmi pratapalakshmi commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

What

  • Was: community legs were green in nightly run 39880448021, except plane-aio-community, whose preview tag is from 2026-10-19 (push builds never rebuild it). Advisories published 2026-10-22 16:16-16:38 UTC now hit the current preview images: re-scanned with today's Trivy DB, plane-backend:preview has 3 HIGH and plane-live:preview / plane-space:preview have 3 HIGH each, so tonight's run would go red on them.
    • toml 4.3.0 -> 5.0.1 (CVE-2026-114141/114143/114144): live, space, AIO
    • djangorestframework 3.17.2 -> 3.18.3 (CVE-2026-114136/114137/114138): backend, AIO
  • Now: both bumped. Lockfiles move only these packages. Companion to makeplane/plane-ee#10587 (same branch name, so one scan dispatch covers every leg).

Where to look

  1. 🟡 apps/api/pyproject.toml: djangorestframework==3.18.3 (exact pin; 3.17 -> 3.18 minor, the line plane-ee's backend already runs)
  2. 🟡 pnpm-workspace.yaml: toml override >=4.2.0 <5 -> >=5.0.1 <6. Every toml <= 5.0.0 is affected, so the <5 cap blocks the only fix. toml reaches us only via react-doctor -> effect, whose sole use is Toml.parse() in effect/unstable/cli; 5.x keeps that API.
  3. ⚪ pnpm-lock.yaml, apps/api/uv.lock: regenerated with the repo's pnpm 11.10.0 / uv 0.12.21

Watch out for: DRF 3.18 is a minor bump here (3.17.2 -> 3.18.3), unlike plane-ee's patch bump.

Blast Radius

  • Every API endpoint (DRF parsers, renderers, auth)
  • react-doctor dev CLI config parsing (toml). Reaches runtime images only via the node_modules copy

Proof

Important

Confidence: High. Rebuilt backend and live scan 0/0 with the CI Trivy command; current preview images reproduce the findings as a positive control.

  • Ran: Trivy 0.70.0 + plane-ee's .trivyignore.yaml (the one CI passes), DB of 2026-10-23 07:19 UTC:
    • apps/api/Dockerfile.api build from this branch: 0 vulns / 0 secrets, exit 0; rest_framework.VERSION == 3.18.3; python manage.py check reports no issues
    • apps/live/Dockerfile.live build: 0 / 0, exit 0; contains toml@5.0.1
    • Positive control: plane-backend:preview, plane-live:preview, plane-space:preview report exactly these packages; frontend/admin/proxy are clean
  • Not verified: API test suite; the community AIO rebuilt end to end

Rollout

  • Merging triggers the push build of preview, which refreshes every community image except plane-aio-community. Dispatch build-branch.yml on preview with aio_build=true to refresh that one.
  • Rollback: revert; no data or config changes.

Media

N/A

Links

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Chores
    • Updated the API framework and TOML parser to newer versions.
    • The parser update avoids releases covered by documented CPU-exhaustion advisories and changes how integers larger than JavaScript’s safe integer limit are handled. Depending on the input, very large TOML integers may therefore be represented differently.

pratapalakshmi and others added 2 commits October 23, 2026 13:04
CVE-2026-114141/114143/114144 (toml parser CPU DoS, published 2026-10-22)
cover every toml <= 5.0.0, so the "<5" cap on the override now blocks the
only fix. toml arrives solely via react-doctor -> effect (declares ^4.1.1),
whose one use is Toml.parse() in effect/unstable/cli; 5.x keeps that API and
only throws on integers beyond Number.MAX_SAFE_INTEGER instead of rounding.

The lockfile moves only toml 4.3.0 -> 5.0.1. Mirrors makeplane/plane-ee on
the same branch name, so one scan dispatch covers both repos' legs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
CVE-2026-114136 (JSONParser honours an attacker-named codec),
CVE-2026-114137 (TokenProxy.delete() revokes nothing) and CVE-2026-114138
(Accept-header parameter CPU DoS) were published 2026-10-22 16:16-16:18 UTC
and cover every release below 3.18.2. Exact pin, so the number moves:
3.17.2 -> 3.18.3, the newest 3.18 release. uv.lock moves only
djangorestframework.

Verified on a local Dockerfile.api build: python manage.py check reports no
issues, and Trivy 0.70.0 with .trivyignore.yaml reports 0 vulnerabilities
and 0 secrets.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings October 23, 2026 07:53

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@coderabbitai

coderabbitai Bot commented Oct 23, 2026

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Note

Currently processing new changes in this PR. This may take a few minutes, please wait...

⚙️ Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 2023cfba-e4ce-4639-aed6-9450782ba6f3
📥 Commits

Reviewing files that changed from the base of the PR and between 7805576 and 32060ed.

⛔ Files ignored due to path filters: 2
  • apps/api/uv.lock is excluded by !**/*.lock
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing: 2
  • apps/api/pyproject.toml
  • pnpm-workspace.yaml
+----------------------------------------------------------------------------------------------------+
| Don't live with broken windows. Fix bad designs, wrong decisions, and poor code when you see them. |
+----------------------------------------------------------------------------------------------------+
  \
   \     /)/)
        ( '')
        /  |
      o(___)
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@makeplane

makeplane Bot commented Oct 23, 2026

Copy link
Copy Markdown

@sriramveeraghanta
sriramveeraghanta merged commit 97eead2 into preview Oct 23, 2026
17 of 20 checks passed
@sriramveeraghanta
sriramveeraghanta deleted the fix/security-scan-2026-10-23 branch October 23, 2026 08:00
sriramveeraghanta pushed a commit that referenced this pull request Oct 23, 2026
…-10-22 advisories (#10098)

* [INFRA-843] fix(security): bump toml to 5.0.1

CVE-2026-114141/114143/114144 (toml parser CPU DoS, published 2026-10-22)
cover every toml <= 5.0.0, so the "<5" cap on the override now blocks the
only fix. toml arrives solely via react-doctor -> effect (declares ^4.1.1),
whose one use is Toml.parse() in effect/unstable/cli; 5.x keeps that API and
only throws on integers beyond Number.MAX_SAFE_INTEGER instead of rounding.

The lockfile moves only toml 4.3.0 -> 5.0.1. Mirrors makeplane/plane-ee on
the same branch name, so one scan dispatch covers both repos' legs.

* [INFRA-843] fix(security): bump djangorestframework to 3.18.3

CVE-2026-114136 (JSONParser honours an attacker-named codec),
CVE-2026-114137 (TokenProxy.delete() revokes nothing) and CVE-2026-114138
(Accept-header parameter CPU DoS) were published 2026-10-22 16:16-16:18 UTC
and cover every release below 3.18.2. Exact pin, so the number moves:
3.17.2 -> 3.18.3, the newest 3.18 release. uv.lock moves only
djangorestframework.

Verified on a local Dockerfile.api build: python manage.py check reports no
issues, and Trivy 0.70.0 with .trivyignore.yaml reports 0 vulnerabilities
and 0 secrets.
szymczag added a commit to szymczag/hangar that referenced this pull request Nov 18, 2026
Converge API packaging with upstream makeplane/plane v1.5.0 (66c95bd,
4906193, f7dbd74; makeplane#9950, makeplane#10098,
makeplane#10094).

The requirements/*.txt files become [project] dependencies and the
production, dev and test groups in pyproject.toml, pinned with hashes in
uv.lock (uv 0.12.21 via [tool.uv] required-version). The dependency set is
the fork's: python3-saml, xmlsec, webauthn, python-magic and mistune stay
as a separate block, posthog stays while event_tracking_task imports it,
ruff stays at 0.16.4 and its config stays in pyproject.toml. Bumped from
upstream: djangorestframework 3.18.3, urllib3>=2.8.0, certifi>=2026.10.19,
and the test-only httpx pin 0.24.1 -> 0.28.1, without which the shared
lock holds production at h11 0.14.0 (CVE-2025-43859). As upstream,
psycopg-c is production-only and psycopg-binary dev/test-only.

Dockerfile.api takes upstream's digest-pinned uv stage, bind-mounted for
the install step only, GRPC_DEFAULT_SSL_ROOTS_FILE_PATH and the removal
of pip from the runtime image, and keeps the fork's Alpine base and
packages, APK_SECURITY_PATCH, uid 10001 and the non-writable code tree.
uv's lock files are removed from /tmp in the same layer. The all-in-one
image, which copies the API's site-packages, already sets the gRPC roots
path and brings its own pip for supervisor.

The test image installs the dev and test groups at build time, and the
compose test entrypoint re-syncs against the mounted lock instead of
pip-installing requirements/test.txt. The S7 dependency test now reads
pyproject.toml and uv.lock, and new S1 checks pin the locked production
install, the absence of pip and uv in the runtime image, the gRPC roots
path and the uv image version.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants