CVEfocus › CVE database › CVE-2026-27601

CVE-2026-27601Underscore.js has unlimited recursion in _.flatten and _.isEqual, potential for DoS attack

CVSS 8.2 HighEPSS 1.2% (higher than 68% of CVEs)Published 2026-03-03Updated 2026-03-04Assigner: GitHub_M

Underscore.js is a utility-belt library for JavaScript. Prior to 1.13.8, 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. Untrusted input must be used to create a recursive datastructure, for example using JSON.parse, with no enforced depth limit. The datastructure thus created must be passed to _.flatten or _.isEqual. In the case of _.flatten, the vulnerability can only be exploited if it is possible for a remote client to prepare a datastructure that consists of arrays at all levels AND if no finite depth limit is passed as the second argument to _.flatten. In the case of _.isEqual, the vulnerability can only be exploited if there exists a code path in which two distinct datastructures that were submitted by the same remote client are compared using _.isEqual. For example, if a client submits data that are stored in a database, and the same client can later submit another datastructure that is then compared to the data that were saved in the database previously, OR if a client submits a single request, but its data are parsed twice, creating two non-identical but equivalent datastructures that are then compared. Exceptions originating from the call to _.flatten or _.isEqual, as a result of a stack overflow, are not being caught. This vulnerability is fixed in 1.13.8.

CWE-770

What to do

Fixed builds are available from Debian, npm: see the table below for the fixed version per release.

Debian, Red Hat, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

2Fixed
47Fix pending
2Under investigation
2Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 24.04ruby-rails-assets-underscoreUnder investigationUBUNTU-CVE-2026-27601
Ubuntu 22.04ruby-rails-assets-underscoreUnder investigationUBUNTU-CVE-2026-27601
Ubuntu 20.04ruby-rails-assets-underscoreFix pendingUBUNTU-CVE-2026-27601
Ubuntu 18.04ruby-rails-assets-underscoreFix pendingUBUNTU-CVE-2026-27601
Debian 14underscoreFixed1.13.8~dfsg+~1.13.0-1DEBIAN-CVE-2026-27601
Debian 13underscoreFix pendingDEBIAN-CVE-2026-27601
Debian 12underscoreFix pendingDEBIAN-CVE-2026-27601
Red Hat Enterprise Linux 10firefoxFix pending
Fix deferred
Red Hat Enterprise Linux 10gjsFix pending
Fix deferred
Red Hat Enterprise Linux 10gjs-develFix pending
Fix deferred
Red Hat Enterprise Linux 10thunderbirdFix pending
Fix deferred
Red Hat Enterprise Linux 9aspnetcore-runtime-7.0Fix pending
Fix deferred
Red Hat Enterprise Linux 9aspnetcore-targeting-pack-7.0Fix pending
Fix deferred
Red Hat Enterprise Linux 9dotnet-apphost-pack-7.0Fix pending
Fix deferred
Red Hat Enterprise Linux 9dotnet-hostFix pending
Fix deferred
Red Hat Enterprise Linux 9dotnet-hostfxr-7.0Fix pending
Fix deferred
Red Hat Enterprise Linux 9dotnet-runtime-7.0Fix pending
Fix deferred
Red Hat Enterprise Linux 9dotnet-sdk-7.0Fix pending
Fix deferred
Red Hat Enterprise Linux 9dotnet-sdk-7.0-source-built-artifactsFix pending
Fix deferred
Red Hat Enterprise Linux 9dotnet-targeting-pack-7.0Fix pending
Fix deferred
Red Hat Enterprise Linux 9dotnet-templates-7.0Fix pending
Fix deferred
Red Hat Enterprise Linux 9dotnet7.0Fix pending
Fix deferred
Red Hat Enterprise Linux 9firefoxFix pending
Fix deferred
Red Hat Enterprise Linux 9firefox-x11Fix pending
Fix deferred
Red Hat Enterprise Linux 9gjsFix pending
Fix deferred
Red Hat Enterprise Linux 9gjs-develFix pending
Fix deferred
Red Hat Enterprise Linux 9grafanaWill not fix
Out of support scope
Red Hat Enterprise Linux 9grafana-selinuxWill not fix
Out of support scope
Red Hat Enterprise Linux 9netstandard-targeting-pack-2.1Fix pending
Fix deferred
Red Hat Enterprise Linux 9python-sphinx-docFix pending
Fix deferred
Red Hat Enterprise Linux 9python3-sphinxFix pending
Fix deferred
Red Hat Enterprise Linux 9python3-sphinx-latexFix pending
Fix deferred
Red Hat Enterprise Linux 9thunderbirdFix pending
Fix deferred
Red Hat Enterprise Linux 8firefoxFix pending
Fix deferred
Red Hat Enterprise Linux 8grafanaFix pending
Fix deferred
Red Hat Enterprise Linux 8grafana-azure-monitorFix pending
Fix deferred
Red Hat Enterprise Linux 8grafana-cloudwatchFix pending
Fix deferred
Red Hat Enterprise Linux 8grafana-elasticsearchFix pending
Fix deferred
Red Hat Enterprise Linux 8grafana-graphiteFix pending
Fix deferred
Red Hat Enterprise Linux 8grafana-influxdbFix pending
Fix deferred
Red Hat Enterprise Linux 8grafana-lokiFix pending
Fix deferred
Red Hat Enterprise Linux 8grafana-mssqlFix pending
Fix deferred
Red Hat Enterprise Linux 8grafana-mysqlFix pending
Fix deferred
Red Hat Enterprise Linux 8grafana-opentsdbFix pending
Fix deferred
Red Hat Enterprise Linux 8grafana-postgresFix pending
Fix deferred
Red Hat Enterprise Linux 8grafana-prometheusFix pending
Fix deferred
Red Hat Enterprise Linux 8grafana-selinuxFix pending
Fix deferred
Red Hat Enterprise Linux 8grafana-stackdriverFix pending
Fix deferred
Red Hat Enterprise Linux 8mozjs60Fix pending
Fix deferred
Red Hat Enterprise Linux 8mozjs60-develFix pending
Fix deferred
Red Hat Enterprise Linux 8thunderbirdFix pending
Fix deferred
Red Hat Enterprise Linux 7firefoxFix pending
Fix deferred
npm libraryunderscoreFixed1.13.8GHSA-qpx9-hpmf-5gmw

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.