<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0">
  <channel>
    <title>Most recent entries from all</title>
    <link>https://vulnerability.circl.lu</link>
    <description>Contains only the most 10 recent entries.</description>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <generator>python-feedgen</generator>
    <language>en</language>
    <lastBuildDate>Tue, 29 Sep 2026 10:32:51 +0000</lastBuildDate>
    <item>
      <title>GHSA-737v-mqg7-c878 — defu: Prototype pollution via `__proto__` key in defaults argument</title>
      <link>https://vulnerability.circl.lu/vuln/ghsa-737v-mqg7-c878</link>
      <description>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; npm: defu&lt;/p&gt;
&lt;p&gt;### Impact&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;A crafted payload containing a `__proto__` key can override intended default values in the merged result:&lt;/p&gt;
&lt;p&gt;```js
import { defu } from &amp;#39;defu&amp;#39;&lt;/p&gt;
&lt;p&gt;const userInput = JSON.parse(&amp;#39;{&amp;#34;__proto__&amp;#34;:{&amp;#34;isAdmin&amp;#34;:true}}&amp;#39;)
const config = defu(userInput, { isAdmin: false })&lt;/p&gt;
&lt;p&gt;config.isAdmin // true — attacker overrides the server default
```&lt;/p&gt;
&lt;p&gt;### Root Cause&lt;/p&gt;
&lt;p&gt;The internal `_defu` function used `Object.assign({}, defaults)` to copy the defaults object. `Object.assign` invokes the `__proto__` setter, which replaces the resulting object&amp;#39;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.&lt;/p&gt;
&lt;p&gt;### Fix&lt;/p&gt;
&lt;p&gt;Replace `Object.assign({}, defaults)` with object spread (`{ ...defaults }`), which uses `[[DefineOwnProperty]]` and does not invoke the `__proto__` setter.&lt;/p&gt;
&lt;p&gt;### Affected Versions&lt;/p&gt;
&lt;p&gt;&amp;lt;= 6.1.4&lt;/p&gt;
&lt;p&gt;### Credits&lt;/p&gt;
&lt;p&gt;Reported by [@BlackHatExploitation](https://github.com/BlackHatExploitation)&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; npm: defu&lt;/p&gt;
&lt;p&gt;### Impact&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;A crafted payload containing a `__proto__` key can override intended default values in the merged result:&lt;/p&gt;
&lt;p&gt;```js
import { defu } from &amp;#39;defu&amp;#39;&lt;/p&gt;
&lt;p&gt;const userInput = JSON.parse(&amp;#39;{&amp;#34;__proto__&amp;#34;:{&amp;#34;isAdmin&amp;#34;:true}}&amp;#39;)
const config = defu(userInput, { isAdmin: false })&lt;/p&gt;
&lt;p&gt;config.isAdmin // true — attacker overrides the server default
```&lt;/p&gt;
&lt;p&gt;### Root Cause&lt;/p&gt;
&lt;p&gt;The internal `_defu` function used `Object.assign({}, defaults)` to copy the defaults object. `Object.assign` invokes the `__proto__` setter, which replaces the resulting object&amp;#39;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.&lt;/p&gt;
&lt;p&gt;### Fix&lt;/p&gt;
&lt;p&gt;Replace `Object.assign({}, defaults)` with object spread (`{ ...defaults }`), which uses `[[DefineOwnProperty]]` and does not invoke the `__proto__` setter.&lt;/p&gt;
&lt;p&gt;### Affected Versions&lt;/p&gt;
&lt;p&gt;&amp;lt;= 6.1.4&lt;/p&gt;
&lt;p&gt;### Credits&lt;/p&gt;
&lt;p&gt;Reported by [@BlackHatExploitation](https://github.com/BlackHatExploitation)&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/ghsa-737v-mqg7-c878</guid>
    </item>
  </channel>
</rss>
