chore(deps): fix defu prototype pollution vulnerability#14615
Merged
Conversation
Add pnpm override to force defu>=6.1.5, resolving the prototype pollution vulnerability via __proto__ key in defaults argument (GHSA-737v-mqg7-c878). defu is a transitive dependency of tsdown. The override ensures all resolved versions are patched. Co-Authored-By: unknown <>
Regenerating the lockfile resolves defu to 6.1.6 naturally without an override, since tsdown declares "defu": "^6.1.4" which is semver-compatible with the patched version. Co-Authored-By: unknown <>
Contributor
|
@davidkonigsberg Good call — the override is not required. I removed it in the latest commit. Simply regenerating the lockfile resolves |
davidkonigsberg
approved these changes
Apr 4, 2026
There was a problem hiding this comment.
Claude Code Review
This repository is configured for manual code reviews. Comment @claude review to trigger a review and subscribe this PR to future pushes, or @claude review once for a one-time review.
Tip: disable this comment in your organization's Code Review settings.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
Refs Dependabot Alert #1408
Resolves HIGH severity prototype pollution vulnerability in
defu(CVE-2026-35209 / GHSA-737v-mqg7-c878). Versions <= 6.1.4 allow__proto__key injection viaObject.assign({}, defaults)in the internal_defufunction.Changes Made
pnpm-lock.yaml—defuresolved from6.1.4→6.1.6.github/dependabot-alerts/alert-1408.mdNo override needed.
defuis a transitive dependency oftsdown@0.20.1(a dev build tool), which declares"defu": "^6.1.4". Regenerating the lockfile naturally resolves to the patched version since6.1.6satisfies that range.Testing
Human Review Checklist
defu@6.1.6is compatible withtsdown@0.20.1's^6.1.4range (it is — patch bump)defuversion bump (3 locations inpnpm-lock.yaml)Link to Devin session: https://app.devin.ai/sessions/0cfa4ad34e0f4b42853813c79a279e2c