Skip to content

fix(deps): override effect to 3.22.4 for CVE-2026-121707 - #375

Merged
samuelmbabhazi merged 1 commit into
mainfrom
fix/effect-redos
Nov 20, 2026
Merged

samuelmbabhazi merged 1 commit into
mainfrom
fix/effect-redos

Conversation

@samuelmbabhazi

@samuelmbabhazi samuelmbabhazi commented Nov 20, 2026 •

Copy link
Copy Markdown
Collaborator

What changed

A pnpm override moves effect from 3.20.0 to 3.22.4.

Why

Trivy now reports CVE-2026-121707 (high, ReDoS in Schema.TemplateLiteral, fixed in 3.22.1) in effect 3.20.0. It comes with @prisma/config, which prisma needs, and prisma ships in the control plane image because migrations run with prisma migrate deploy. The filesystem scan and the control plane image scan fail on every pull request until it is fixed (#373, #374).

@prisma/config 7.10.1 pins effect 3.20.0 exactly and no newer stable Prisma exists, so an override is the fix, as for the other transitive advisories in pnpm-workspace.yaml. 3.22.4 was published on 22 October, past the 7-day minimumReleaseAge; 3.22.5 is too recent.

How it was tested

  • pnpm install: the lockfile has one effect, 3.22.4.
  • pnpm gen:prisma: the Prisma client generates with it.
  • CI runs the migrations (integration tests) and both Trivy scans.

Security considerations

Closes a high advisory in a dependency of the control plane image. Remove the override once Prisma depends on a fixed effect.

Summary by CodeRabbit

  • Chores
    • Updated dependency resolution so older versions of a supporting package use a newer compatible release. This keeps package installs consistent across the workspace without changing any user-facing features.

effect 3.20.0 comes with @prisma/config, which ships in the control plane image for migrations. 3.22.4 is past the 7-day minimum release age.

Signed-off-by: samuel mbabhazi <[email protected]>
@coderabbitai

coderabbitai Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The workspace configuration adds an override that resolves effect versions below 3.22.1 to version 3.22.4.

Changes: Effect dependency override

Layer / File(s) Summary
Configure the effect override
pnpm-workspace.yaml
The workspace override resolves effect versions below 3.22.1 to version 3.22.4. Comments identify the advisory and dependency path.

Estimated code review effort: 2 (Simple) | ~8 minutes

Change: Other

Merge Risk: Minimal · up to 76349

This updates a transitive dependency to a patched version to address a reported ReDoS vulnerability in the image used for migrations. No actionable merge-blocking risk is identified, and the override can be removed once Prisma updates its own dependency.

Architecture risk: Low · up to 76349

The change affects 1 system.

Changed systems: pnpm-workspace.yaml

Architecture concerns
No architecture-level concerns identified.

Review details

Systems and components

  • observed — pnpm-workspace.yaml (service) was modified; 1 changed file maps to changed impact.

Before / after behavior

  • observed — Modified behavior in pnpm-workspace.yaml: Adds an override resolving effect versions below 3.22.1 to 3.22.4, with comments identifying the advisory and dependency path.
Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names the main change: a pnpm override that moves effect to 3.22.4 to fix CVE-2026-121707. The raw summary confirms the only file change is the pnpm-workspace.yaml override for effect below …
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the main change: a pnpm override that moves effect to 3.22.4 to fix CVE-2026-121707. The raw summary confirms the only file change is the pnpm-workspace.yaml override for effect below 3.22.1. The title is specific, concise, and in conventional commit form.

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
Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between a9f2cf2 and 76349ed.

Files ignored due to path filters: 1

  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml, !pnpm-lock.yaml
Files selected for processing: 1

  • pnpm-workspace.yaml

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.

@samuelmbabhazi
samuelmbabhazi merged commit ce5613b into main Nov 20, 2026
22 checks passed
@samuelmbabhazi
samuelmbabhazi deleted the fix/effect-redos branch November 20, 2026 10:16
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.

1 participant