Skip to content

chore(deps): fix defu prototype pollution vulnerability#14615

Merged
davidkonigsberg merged 3 commits into
mainfrom
dependabot-alert-1408-devin
Apr 4, 2026
Merged

chore(deps): fix defu prototype pollution vulnerability#14615
davidkonigsberg merged 3 commits into
mainfrom
dependabot-alert-1408-devin

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot commented Apr 4, 2026

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 via Object.assign({}, defaults) in the internal _defu function.

Changes Made

  • Regenerated pnpm-lock.yamldefu resolved from 6.1.46.1.6
  • Deleted scaffold file .github/dependabot-alerts/alert-1408.md

No override needed. defu is a transitive dependency of tsdown@0.20.1 (a dev build tool), which declares "defu": "^6.1.4". Regenerating the lockfile naturally resolves to the patched version since 6.1.6 satisfies that range.

Testing

  • CI passes (lockfile-only change scoped to dev tooling)

Human Review Checklist

  • Verify defu@6.1.6 is compatible with tsdown@0.20.1's ^6.1.4 range (it is — patch bump)
  • Confirm lockfile diff is limited to the defu version bump (3 locations in pnpm-lock.yaml)

Link to Devin session: https://app.devin.ai/sessions/0cfa4ad34e0f4b42853813c79a279e2c


Open with Devin

github-actions Bot and others added 2 commits April 4, 2026 12:36
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 <>
@devin-ai-integration devin-ai-integration Bot changed the title [Dependabot Alert #1408] HIGH: defu vulnerability chore(deps): fix defu prototype pollution vulnerability Apr 4, 2026
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 <>
@devin-ai-integration
Copy link
Copy Markdown
Contributor

@davidkonigsberg Good call — the override is not required. I removed it in the latest commit. Simply regenerating the lockfile resolves defu to 6.1.6 naturally, since tsdown declares "defu": "^6.1.4" which is semver-compatible with the patched version. The previous lockfile just had 6.1.4 pinned from an earlier resolution.

@davidkonigsberg davidkonigsberg marked this pull request as ready for review April 4, 2026 12:54
Copy link
Copy Markdown

@claude claude Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 1 additional finding.

Open in Devin Review

@davidkonigsberg davidkonigsberg merged commit ac4040c into main Apr 4, 2026
99 of 107 checks passed
@davidkonigsberg davidkonigsberg deleted the dependabot-alert-1408-devin branch April 4, 2026 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant