GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(deps): bump deepmerge-ts from 7.1.5 to 8.0.1 by lazerg · Pull Request #30054 · prisma/orm

Conversation

@lazerg

@lazerg lazerg commented Aug 17, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

What this fixes

pnpm audit --prod is what test-template.yml gates on, and on v7 it currently reports one high advisory: GHSA-ggr8-5vv4-36mx / CVE-2026-40345, uncontrolled recursion in deepmerge-ts, reached through packages__config>deepmerge-ts. Patched in 8.0.0.

Since @prisma/config pins the exact version, every downstream install is held at 7.1.5 and package managers cannot dedupe up to a patched release, so consumers have to carry their own overrides / resolutions to clear the finding.

Changes

Bumps deepmerge-ts from 7.1.5 to 8.0.1 in packages/config, plus the lockfile.

I bumped the manifest instead of adding a pnpm-workspace.yaml override, since everything in that block is a transitive dependency. deepmerge-ts is declared directly by @prisma/config, so an override would quiet the audit here while the published manifest still pointed downstream at 7.1.5.

8.0.0 is a major release, so I checked its breaking changes against the only call site, the deepmerge passed as the c12 merger in loadConfigTsOrJs:

  • Map values now merge recursively by default, and config objects do not carry Maps.
  • deepmergeInto is not used here, only the plain deepmerge export is.
  • The DeepMergeMetaMetaData and DeepMergeIntoFunctionUtils renames touch types this package never references.

The @ts-expect-error above merger is still required, so the c12 type mismatch it covers is unchanged.

How I checked

  • pnpm audit --prod: No known vulnerabilities found, against 1 high before the bump
  • pnpm --filter @prisma/config test: 142 passed, 2 skipped
  • pnpm --filter "@prisma/config..." build and tsc --noEmit -p packages/config both clean
  • CI=true pnpm install --frozen-lockfile passes
  • Advisory itself: merging two self-referential objects throws RangeError: Maximum call stack size exceeded on 7.1.5 and returns normally on 8.0.1

Fixes #30052

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

samjoffe, HussainMayoof, and bjiusc reacted with thumbs up emoji
All reactions
  • 👍 3 reactions
@lazerg
fix(deps): bump deepmerge-ts from 7.1.5 to 8.0.1
10689fd
@coderabbitai

coderabbitai Bot commented Aug 17, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yml

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 76551794-0bf0-4ff7-906d-b9e59f4e464c

📥 Commits

Reviewing files that changed from the base of the PR and between 05ce490 and 10689fd.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (1)
  • packages/config/package.json

Included review availability: Your plan includes up to 10 reviews per rolling hour; 9 remain after this review.


📝 Walkthrough

Walkthrough

@prisma/config updates its pinned deepmerge-ts dependency from 7.1.5 to 8.0.1.

Changes

Dependency security update

Layer / File(s) Summary
Update deepmerge-ts dependency
packages/config/package.json
The pinned deepmerge-ts version changes from 7.1.5 to 8.0.1.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Merge Risk: ⚪ Minimal · up to 10689

This localized dependency update removes the reported vulnerability and has passed the stated tests, builds, type checks, audit, and frozen-lockfile installation; no actionable merge-blocking risk remains.

Suggested labels: lgtm

Suggested reviewers: aqrln, jacek-prisma

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Linked Issues check ❓ Inconclusive The package update meets the patched-version requirement, but lockfile changes and removal of the exact pin cannot be verified because pnpm-lock.yaml was excluded. Include reviewable evidence that pnpm-lock.yaml updates the dependency and that the package specification no longer forces vulnerable version 7.1.5.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly identifies the dependency update from deepmerge-ts 7.1.5 to 8.0.1.
Out of Scope Changes check ✅ Passed The reviewed change only updates deepmerge-ts in @prisma/config, which directly supports the linked vulnerability-remediation objectives.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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
  • X
  • Mastodon
  • Reddit
  • LinkedIn

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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@lazerg

lazerg commented Aug 17, 2026

Copy link
Copy Markdown
Contributor Author

The PR Code Security run failed before any job started: that workflow hands secrets: inherit to reusable workflows, and pull requests from forks do not get those secrets. Nothing in this change touches it.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@bipolarrr bipolarrr mentioned this pull request Aug 18, 2026
refactor(orphan): separate reaper test responsibilities pcugame/pcugame.github.io-infra#36
Merged
@codspeed

codspeed Bot commented Aug 18, 2026

Copy link
Copy Markdown

Merging this PR will improve performance by 22.36%

⚠️ Different runtime environments detected

Some benchmarks with significant performance changes were compared across different runtime environments,
which may affect the accuracy of the results.

Open the report in CodSpeed to investigate

⚡ 1 improved benchmark
✅ 16 untouched benchmarks
⏩ 30 skipped benchmarks1

Performance Changes

Benchmark BASE HEAD Efficiency
⚡ getBinaryTargetForCurrentPlatform 2.1 ms 1.7 ms +22.36%

Tip

Curious why this is faster? Comment @codspeedbot explain why this is faster on this PR, or directly use the CodSpeed MCP with your agent.


Comparing lazerg:fix/issue-30052-deepmerge-ts-8 (10689fd) with v7 (05ce490)

Open in CodSpeed

Footnotes

  1. 30 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

abhiChexy
abhiChexy approved these changes Aug 18, 2026
View reviewed changes
@JS-mark JS-mark mentioned this pull request Aug 19, 2026
WEB-49: restore Prisma production audit gate JS-mark/Bridgent#8
Merged
@mrivas00 mrivas00 mentioned this pull request Aug 19, 2026
fix(deps): force deepmerge-ts to 8.x to patch CVE-2026-40345 undp/carbon-footprint-program#602
Merged
@joe-cole1 joe-cole1 mentioned this pull request Aug 20, 2026
Remove temporary global deepmerge-ts override after upstream fixes ship joe-cole1/rsvp-to-me#603
Closed
12 tasks
mrivas00 added a commit to undp/carbon-footprint-program that referenced this pull request Aug 20, 2026
@mrivas00
fix(deps): force deepmerge-ts to 8.x to patch CVE-2026-40345 (#602)
93f1140
* fix(deps): force deepmerge-ts to 8.x to patch CVE-2026-40345

@prisma/config pins deepmerge-ts at exactly 7.1.5, which is vulnerable to
GHSA-ggr8-5vv4-36mx (stack exhaustion when merging recursive object graphs).
It reaches the production tree through @prisma/client's optional dependency on
the prisma CLI, so both supply-chain gates fail on every PR: `pnpm audit --prod`
(1 high) and the Trivy scan of the api image (1 HIGH, fix available).

Dependabot cannot resolve it -- it reports `security_update_not_possible`
because the exact pin caps the resolvable version at 7.1.5 -- and no published
@prisma/config carries the bump yet, so a workspace override is the only path.
The upstream fix is still open:
prisma/orm#30054

The override is unscoped rather than parent-scoped, per the primary rule in
pnpm-workspace.yaml: @prisma/config is the only consumer in the tree, and an
unscoped override already breaks the exact pin.

* docs(deps): link upstream tracking issue in deepmerge-ts override

The override comment only pointed at the community PR. Add the upstream
issue that tracks the bump (prisma/orm#30052) so the reason the override
exists is readable from the issue alone, without inferring it from a PR diff.
subhanlone added a commit to subhanlone/bidvault-backend that referenced this pull request Aug 21, 2026
@subhanlone @claude
ci: gate on npm advisories, with exceptions that cannot outlive their…
6aebadc
… reason

Nothing audited the dependency tree in either repo. Both were at zero advisories
on 2026-08-09 and nothing has watched since, which is how a high-severity one
appeared on 2026-08-16 and sat unnoticed until it was tripped over by accident.

The gate fails two ways. An advisory not recorded in audit-allowlist.json fails
the build. So does a recorded entry that no longer matches any advisory — so when
upstream ships a fix, CI breaks and says to delete the entry, instead of leaving a
stale "we looked at this once" note in the repo. Both proven: emptying the
allowlist fails with the advisory named, and a phantom entry fails as obsolete.

One entry, deepmerge-ts GHSA-ggr8-5vv4-36mx (CVE-2026-40345), accepted with the
analysis recorded in the allowlist. In short: the only path is
prisma -> @prisma/config -> deepmerge-ts, and @prisma/config calls deepmerge in
exactly one place, loadConfigTsOrJs(), merging prisma.config.ts layers through
c12. This repo has no prisma.config.* file and that input is never
request-influenced, while the CVSS 8.2 assumes an app feeding attacker-controlled
JSON to the public API.

No fix exists to take: every stable prisma from 6.19.3 to 7.9.1, and the 7.10.0
dev prereleases, pin "deepmerge-ts": "7.1.5" exactly. deepmerge-ts 8.0.0 shipped
2026-08-16. `npm audit fix --force` proposes prisma 6.12.0, a major downgrade. An
override would force past an exact pin across a major, which is not something this
project does. prisma/orm#30054 has the bump and is mergeable; the entry names
it, and the stale check is what makes sure we act on it.

Plain .mjs with no dependencies, byte-identical in both repos.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01XYeFzET7gtfvEKMs47kshi
@quiqueg

quiqueg commented Sep 8, 2026

Copy link
Copy Markdown

@lazerg this appears to be superseded by #30189

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@lazerg

lazerg commented Sep 9, 2026

Copy link
Copy Markdown
Contributor Author

Yes, you are right (

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@lazerg lazerg closed this Sep 9, 2026
@subhanlone subhanlone mentioned this pull request Nov 27, 2026
Bring the deepmerge-ts allowlist entry's text up to date subhanlone/bidvault-backend#63
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

1 more reviewer
@abhiChexy abhiChexy abhiChexy approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@lazerg @quiqueg @abhiChexy
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.