Repository navigation
chore(deps): bump deepmerge-ts and mariadb past audited vulnerabilities - #30189
Conversation
pnpm audit --prod fails on every PR with four advisories: - deepmerge-ts < 8.0.0: stack exhaustion on recursive object graphs (GHSA-ggr8-5vv4-36mx) - mariadb >= 3.4.0 < 3.4.6: cleartext password leak to a MitM despite ssl: true (GHSA-cqhc-2h57-wpxf), cleartext transmission of sensitive information (GHSA-42r5-vhpq-m858), and possible SQL injection under multibyte client charsets (GHSA-g5xc-5w98-jfvm) Bump deepmerge-ts 7.1.5 -> 8.0.2 and mariadb 3.4.5 -> 3.5.3. The mariadb 3.4.x line has no 3.4.6 release on npm; 3.5.3 is the current release that satisfies >= 3.4.6. deepmerge-ts 8 changes Map merging and deepmergeInto mutation. Neither matters here: @prisma/config only calls the basic deepmerge export on plain config objects. Signed-off-by: Oleksii Orlenko <[email protected]>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yml Review profile: ASSERTIVE Plan: Team Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (2)
Included review availability: Your plan provides up to 10 included reviews per hour; 8 remain after this review. 📝 WalkthroughWalkthroughTwo package manifests update the ChangesDependency updates
Estimated code review effort: 1 (Trivial) | ~2 minutes Merge Risk: ⚪ Minimal · up to This PR updates two vulnerable dependencies and the lockfile without any supplied merge-blocking concerns; no actionable risk remains beyond normal checks and review. Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Full details: Docstring CoverageExplanation No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0 files. (2 skipped: 2 unsupported.) ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
size-limit report 📦
|
Record prisma/orm#30189 as advisory historical evidence alongside the tracking issue while preserving the existing #3114 remediation policy.
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [@prisma/client](https://www.prisma.io) ([source](https://github.com/prisma/orm/tree/HEAD/packages/client)) | imports | patch | [`7.10.0` -> `7.10.1`](https://renovatebot.com/diffs/npm/@prisma%2fclient/7.10.0/7.10.1) | --- ### Release Notes <details> <summary>prisma/orm (@​prisma/client)</summary> ### [`v7.10.1`](https://github.com/prisma/orm/releases/tag/7.10.1) [Compare Source](prisma/orm@7.10.0...7.10.1) Prisma ORM 7.10.1 is a patch release. It fixes a bug where a nested interactive transaction could make later, unrelated transactions run inside the wrong transaction. It also updates dependencies that had security advisories. ##### Fixes ##### Prisma Client: nested `$transaction` no longer changes the options object you pass in If you passed the same options object to a nested `tx.$transaction(...)` and later to a top-level `prisma.$transaction(...)`, the nested call wrote the outer transaction's id into that object. Every later top-level transaction that used the object was then treated as nested inside that old transaction: - if the old transaction had committed, the new one failed with `P2028`; - if the old transaction was still open, the new one silently ran as a savepoint inside another request's transaction. ```ts const TX_OPTIONS = { timeout: 30_000, maxWait: 10_000 } await prisma.$transaction(async (tx) => { await tx.$transaction(async (inner) => { /* ... */ }, TX_OPTIONS) }) // Before 7.10.1, this call could fail with P2028 or join another transaction. await prisma.$transaction(async (tx) => { /* ... */ }, TX_OPTIONS) ``` Prisma Client no longer modifies the options object. ([#​30368](prisma/orm#30368), thanks [@​lazerg](https://github.com/lazerg)) ##### Prisma Migrate: refuse a shadow database that is the main database Prisma Migrate now refuses to run with error `P3025` when the shadow database URL points at the same database as the main database URL. Before, `prisma migrate diff --from-migrations` with that setup dropped the real schema, rebuilt it from the migrations, and reported an empty diff. ([prisma/prisma-engines#5851](prisma/prisma-engines#5851)) ##### MariaDB adapter: updated to `mariadb` 3.5.4 `@prisma/adapter-mariadb` now depends on `mariadb` 3.5.4, which fixes several security advisories in 3.5.3. The adapter no longer rewrites IPv6 hosts in connection strings, because `mariadb` 3.5.4 accepts them as written. IPv6 connection strings keep working without changes. ([#​30668](prisma/orm#30668)) ##### Dependency updates Dependencies with security advisories were updated: `mysql2`, `fast-uri`, `deepmerge-ts`, `mariadb` and `source-map-js`. ([#​30314](prisma/orm#30314), [#​30189](prisma/orm#30189), [#​30668](prisma/orm#30668)) </details> --- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate CLI](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4xNjguMiIsInVwZGF0ZWRJblZlciI6IjQ0LjE2OC4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119--> Reviewed-on: https://git.oirnoir.dev/OIRNOIR/YouTube-Helper-Server/pulls/59
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [@prisma/adapter-pg](https://github.com/prisma/orm) ([source](https://github.com/prisma/orm/tree/HEAD/packages/adapter-pg)) | imports | patch | [`7.10.0` -> `7.10.1`](https://renovatebot.com/diffs/npm/@prisma%2fadapter-pg/7.10.0/7.10.1) | --- ### Release Notes <details> <summary>prisma/orm (@​prisma/adapter-pg)</summary> ### [`v7.10.1`](https://github.com/prisma/orm/releases/tag/7.10.1) [Compare Source](prisma/orm@7.10.0...7.10.1) Prisma ORM 7.10.1 is a patch release. It fixes a bug where a nested interactive transaction could make later, unrelated transactions run inside the wrong transaction. It also updates dependencies that had security advisories. ##### Fixes ##### Prisma Client: nested `$transaction` no longer changes the options object you pass in If you passed the same options object to a nested `tx.$transaction(...)` and later to a top-level `prisma.$transaction(...)`, the nested call wrote the outer transaction's id into that object. Every later top-level transaction that used the object was then treated as nested inside that old transaction: - if the old transaction had committed, the new one failed with `P2028`; - if the old transaction was still open, the new one silently ran as a savepoint inside another request's transaction. ```ts const TX_OPTIONS = { timeout: 30_000, maxWait: 10_000 } await prisma.$transaction(async (tx) => { await tx.$transaction(async (inner) => { /* ... */ }, TX_OPTIONS) }) // Before 7.10.1, this call could fail with P2028 or join another transaction. await prisma.$transaction(async (tx) => { /* ... */ }, TX_OPTIONS) ``` Prisma Client no longer modifies the options object. ([#​30368](prisma/orm#30368), thanks [@​lazerg](https://github.com/lazerg)) ##### Prisma Migrate: refuse a shadow database that is the main database Prisma Migrate now refuses to run with error `P3025` when the shadow database URL points at the same database as the main database URL. Before, `prisma migrate diff --from-migrations` with that setup dropped the real schema, rebuilt it from the migrations, and reported an empty diff. ([prisma/prisma-engines#5851](prisma/prisma-engines#5851)) ##### MariaDB adapter: updated to `mariadb` 3.5.4 `@prisma/adapter-mariadb` now depends on `mariadb` 3.5.4, which fixes several security advisories in 3.5.3. The adapter no longer rewrites IPv6 hosts in connection strings, because `mariadb` 3.5.4 accepts them as written. IPv6 connection strings keep working without changes. ([#​30668](prisma/orm#30668)) ##### Dependency updates Dependencies with security advisories were updated: `mysql2`, `fast-uri`, `deepmerge-ts`, `mariadb` and `source-map-js`. ([#​30314](prisma/orm#30314), [#​30189](prisma/orm#30189), [#​30668](prisma/orm#30668)) </details> --- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate CLI](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4xNjguMiIsInVwZGF0ZWRJblZlciI6IjQ0LjE2OC4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119--> Reviewed-on: https://git.oirnoir.dev/OIRNOIR/YouTube-Helper-Server/pulls/58
Summary
pnpm audit --prod(the "Run pnpm audit (production dependencies only)" step of the Lint job) fails on every PR to this branch with four advisories:deepmerge-ts< 8.0.0 — stack exhaustion on recursive object graphs (GHSA-ggr8-5vv4-36mx), highmariadb>= 3.4.0 < 3.4.6 — cleartext password leak to a MitM despitessl: true(GHSA-cqhc-2h57-wpxf, high), cleartext transmission of sensitive information (GHSA-42r5-vhpq-m858, moderate), and possible SQL injection in Buffer parameter escaping under multibyte client charsets (GHSA-g5xc-5w98-jfvm, moderate)This PR bumps:
deepmerge-ts7.1.5 → 8.0.2 inpackages/config. The v8 breaking changes are Map deep-merging and adeepmergeIntomutation fix;@prisma/configuses neither — it only calls the basicdeepmergeexport on plain config objects (loadConfigFromFile.ts). v8 still ships dual CJS/ESM.mariadb3.4.5 → 3.5.3 inpackages/adapter-mariadb. The advisories say "patched >= 3.4.6", but npm has no 3.4.6 — the 3.4.x line ends at 3.4.5; 3.5.3 is the current release satisfying the range.Lockfile updated with the repo-pinned pnpm 11.13.1.
Testing performed
pnpm audit --prodagainst the updated lockfile: "No known vulnerabilities found".pnpm --filter @prisma/config test: 4 files, 142 passed, 2 skipped — includes the config-merge tests that exercisedeepmerge.pnpm --filter @prisma/adapter-mariadb test: 45 passed.Notes for the reviewer
Summary by CodeRabbit