<?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://db.gcve.eu</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, 01 Dec 2026 04:08:33 +0000</lastBuildDate>
    <item>
      <title>GHSA-rf6f-7fwh-wjgh — Prototype Pollution via parse() in NodeJS flatted</title>
      <link>https://db.gcve.eu/vuln/ghsa-rf6f-7fwh-wjgh</link>
      <description>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; npm: flatted&lt;/p&gt;
&lt;p&gt;---
  **Summary**&lt;/p&gt;
&lt;p&gt;The parse() function in flatted can use attacker-controlled string values from the parsed JSON as direct array index
  keys, without validating that they are numeric. Since the internal input buffer is a JavaScript Array, accessing it
  with the key &amp;#34;\_\_proto\_\_&amp;#34; returns Array.prototype via the inherited getter. This object is then treated as a legitimate
   parsed value and assigned as a property of the output object, effectively leaking a live reference to Array.prototype
   to the consumer. Any code that subsequently writes to that property will pollute the global prototype.&lt;/p&gt;
&lt;p&gt;---
  **Root Cause**&lt;/p&gt;
&lt;p&gt;File: esm/index.js:29 (identical in cjs/index.js)
```
  const resolver = (input, lazy, parsed, $) =&amp;gt; output =&amp;gt; {
    for (let ke = keys(output), {length} = ke, y = 0; y &amp;lt; length; y++) {
      const k = ke[y];
      const value = output[k];    
      if (value instanceof Primitive) {
        const tmp = input[value];      // Bug is here
```&lt;/p&gt;
&lt;p&gt;No validation that value is a safe numeric index input is built as a plain Array. JavaScript&amp;#39;s property lookup on arrays traverses the prototype chain for non-numeric  keys. The key &amp;#34;\_\_proto\_\_&amp;#34; resolves to Array.prototype, which:&lt;/p&gt;
&lt;p&gt;- has type &amp;#34;object&amp;#34; → passes the typeof tmp === object guard at line 30
  - is not in the parsed Set yet → passes the !parsed.has(tmp) guard.
  - The reference to Array.prototype is then enqueued in lazy and later unconditionally assigned to the output object.
  ---
  **Replication S…&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; npm: flatted&lt;/p&gt;
&lt;p&gt;---
  **Summary**&lt;/p&gt;
&lt;p&gt;The parse() function in flatted can use attacker-controlled string values from the parsed JSON as direct array index
  keys, without validating that they are numeric. Since the internal input buffer is a JavaScript Array, accessing it
  with the key &amp;#34;\_\_proto\_\_&amp;#34; returns Array.prototype via the inherited getter. This object is then treated as a legitimate
   parsed value and assigned as a property of the output object, effectively leaking a live reference to Array.prototype
   to the consumer. Any code that subsequently writes to that property will pollute the global prototype.&lt;/p&gt;
&lt;p&gt;---
  **Root Cause**&lt;/p&gt;
&lt;p&gt;File: esm/index.js:29 (identical in cjs/index.js)
```
  const resolver = (input, lazy, parsed, $) =&amp;gt; output =&amp;gt; {
    for (let ke = keys(output), {length} = ke, y = 0; y &amp;lt; length; y++) {
      const k = ke[y];
      const value = output[k];    
      if (value instanceof Primitive) {
        const tmp = input[value];      // Bug is here
```&lt;/p&gt;
&lt;p&gt;No validation that value is a safe numeric index input is built as a plain Array. JavaScript&amp;#39;s property lookup on arrays traverses the prototype chain for non-numeric  keys. The key &amp;#34;\_\_proto\_\_&amp;#34; resolves to Array.prototype, which:&lt;/p&gt;
&lt;p&gt;- has type &amp;#34;object&amp;#34; → passes the typeof tmp === object guard at line 30
  - is not in the parsed Set yet → passes the !parsed.has(tmp) guard.
  - The reference to Array.prototype is then enqueued in lazy and later unconditionally assigned to the output object.
  ---
  **Replication S…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://db.gcve.eu/vuln/ghsa-rf6f-7fwh-wjgh</guid>
    </item>
  </channel>
</rss>
