Skip to content

chore(monorepo): update pnpm.catalog.default defu to ^6.1.5 [security]#13

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/npm-defu-vulnerability
Open

chore(monorepo): update pnpm.catalog.default defu to ^6.1.5 [security]#13
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/npm-defu-vulnerability

Conversation

@renovate

@renovate renovate Bot commented Apr 19, 2026

Copy link
Copy Markdown

This PR contains the following updates:

Package Change Age Confidence
defu ^6.1.4^6.1.5 age confidence

defu: Prototype pollution via __proto__ key in defaults argument

CVE-2026-35209 / GHSA-737v-mqg7-c878

More information

Details

Impact

Applications that pass unsanitized user input (e.g. parsed JSON request bodies, database records, or config files from untrusted sources) as the first argument to defu() are vulnerable to prototype pollution.

A crafted payload containing a __proto__ key can override intended default values in the merged result:

import { defu } from 'defu'

const userInput = JSON.parse('{"__proto__":{"isAdmin":true}}')
const config = defu(userInput, { isAdmin: false })

config.isAdmin // true — attacker overrides the server default
Root Cause

The internal _defu function used Object.assign({}, defaults) to copy the defaults object. Object.assign invokes the __proto__ setter, which replaces the resulting object's [[Prototype]] with attacker-controlled values. Properties inherited from the polluted prototype then bypass the existing __proto__ key guard in the for...in loop and land in the final result.

Fix

Replace Object.assign({}, defaults) with object spread ({ ...defaults }), which uses [[DefineOwnProperty]] and does not invoke the __proto__ setter.

Affected Versions

<= 6.1.4

Credits

Reported by @​BlackHatExploitation

Severity

  • CVSS Score: 7.5 / 10 (High)
  • Vector String: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

References

This data is provided by the GitHub Advisory Database (CC-BY 4.0).


Release Notes

unjs/defu (defu)

v6.1.5

Compare Source

compare changes

🩹 Fixes
  • Prevent prototype pollution via __proto__ in defaults (#​156)
  • Ignore inherited enumerable properties (11ba022)
🏡 Chore
✅ Tests
  • Add more tests for plain objects (b65f603)
🤖 CI
❤️ Contributors

Configuration

📅 Schedule: (in timezone America/New_York)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Enabled.

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.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate Bot requested a review from a team April 19, 2026 05:58
@renovate

renovate Bot commented Apr 19, 2026

Copy link
Copy Markdown
Author

Branch automerge failure

This PR was configured for branch automerge. However, this is not possible, so it has been raised as a PR instead.

@renovate renovate Bot enabled auto-merge April 19, 2026 05:58
@renovate renovate Bot requested review from a team and sullivanpj as code owners April 19, 2026 05:58
@deepsource-io

deepsource-io Bot commented Apr 19, 2026

Copy link
Copy Markdown

DeepSource Code Review

We reviewed changes in 6a18e0a...d2b2b78 on this pull request. Below is the summary for the review, and you can see the individual issues we found as inline review comments.

See full review on DeepSource ↗

PR Report Card

Overall Grade   Security  

Reliability  

Complexity  

Hygiene  

Code Review Summary

Analyzer Status Updated (UTC) Details
JavaScript Jun 14, 2026 6:57p.m. Review ↗
Shell Jun 14, 2026 6:57p.m. Review ↗

Important

AI Review is run only on demand for your team. We're only showing results of static analysis review right now. To trigger AI Review, comment @deepsourcebot review on this thread.

@renovate renovate Bot force-pushed the renovate/npm-defu-vulnerability branch from 2b84ccb to 61bcfd3 Compare April 30, 2026 01:48
@renovate renovate Bot changed the title chore(monorepo): update pnpm.catalog.default defu to ^6.1.7 [security] chore(monorepo): update pnpm.catalog.default defu to ^6.1.5 [security] May 3, 2026
@renovate renovate Bot force-pushed the renovate/npm-defu-vulnerability branch from 61bcfd3 to 21d8450 Compare May 3, 2026 07:52
@renovate renovate Bot force-pushed the renovate/npm-defu-vulnerability branch from 21d8450 to 3775097 Compare May 13, 2026 04:14
@renovate renovate Bot changed the title chore(monorepo): update pnpm.catalog.default defu to ^6.1.5 [security] chore(monorepo): update pnpm.catalog.default defu to ^6.1.7 [security] May 13, 2026
@socket-security

socket-security Bot commented May 13, 2026

Copy link
Copy Markdown

No dependency changes detected. Learn more about Socket for GitHub.

👍 No dependency changes detected in pull request

@renovate renovate Bot changed the title chore(monorepo): update pnpm.catalog.default defu to ^6.1.7 [security] chore(monorepo): update pnpm.catalog.default defu to ^6.1.5 [security] May 14, 2026
@renovate renovate Bot force-pushed the renovate/npm-defu-vulnerability branch 2 times, most recently from 6fcb64a to a84709b Compare May 16, 2026 07:22
@renovate renovate Bot changed the title chore(monorepo): update pnpm.catalog.default defu to ^6.1.5 [security] chore(monorepo): update pnpm.catalog.default defu to ^6.1.7 [security] May 16, 2026
@renovate renovate Bot force-pushed the renovate/npm-defu-vulnerability branch from a84709b to 204376c Compare May 17, 2026 07:41
@renovate renovate Bot changed the title chore(monorepo): update pnpm.catalog.default defu to ^6.1.7 [security] chore(monorepo): update pnpm.catalog.default defu to ^6.1.5 [security] May 17, 2026
@renovate renovate Bot changed the title chore(monorepo): update pnpm.catalog.default defu to ^6.1.5 [security] chore(monorepo): update pnpm.catalog.default defu to ^6.1.7 [security] May 23, 2026
@renovate renovate Bot force-pushed the renovate/npm-defu-vulnerability branch from 204376c to b708e03 Compare May 23, 2026 03:45
@renovate renovate Bot changed the title chore(monorepo): update pnpm.catalog.default defu to ^6.1.7 [security] chore(monorepo): update pnpm.catalog.default defu to ^6.1.5 [security] May 24, 2026
@renovate renovate Bot force-pushed the renovate/npm-defu-vulnerability branch from b708e03 to 3ed1da9 Compare May 24, 2026 07:28
@renovate renovate Bot changed the title chore(monorepo): update pnpm.catalog.default defu to ^6.1.5 [security] chore(monorepo): update pnpm.catalog.default defu to ^6.1.7 [security] May 30, 2026
@renovate renovate Bot force-pushed the renovate/npm-defu-vulnerability branch from 3ed1da9 to 5559976 Compare May 30, 2026 19:35
@renovate renovate Bot changed the title chore(monorepo): update pnpm.catalog.default defu to ^6.1.7 [security] chore(monorepo): update pnpm.catalog.default defu to ^6.1.5 [security] Jun 6, 2026
@renovate renovate Bot force-pushed the renovate/npm-defu-vulnerability branch from 5559976 to 53ab902 Compare June 6, 2026 11:29
@renovate renovate Bot changed the title chore(monorepo): update pnpm.catalog.default defu to ^6.1.5 [security] chore(monorepo): update pnpm.catalog.default defu to ^6.1.7 [security] Jun 13, 2026
@renovate renovate Bot force-pushed the renovate/npm-defu-vulnerability branch from 53ab902 to a0906b9 Compare June 13, 2026 03:58
@renovate renovate Bot changed the title chore(monorepo): update pnpm.catalog.default defu to ^6.1.7 [security] chore(monorepo): update pnpm.catalog.default defu to ^6.1.5 [security] Jun 14, 2026
@renovate renovate Bot force-pushed the renovate/npm-defu-vulnerability branch from a0906b9 to d2b2b78 Compare June 14, 2026 18:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants