Allocation of Resources Without Limits or Throttling Affecting domutils package, versions >=2.8.0 <4.1.0


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Allocation of Resources Without Limits or Throttling vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-DOMUTILS-23745872
  • published4 Dec 2026
  • disclosed4 Dec 2026
  • creditUnknown

Introduced: 4 Dec 2026

NewCVE-2026-145164  (opens in a new tab)
CWE-770  (opens in a new tab)

How to fix?

Upgrade domutils to version 4.1.0 or higher.

Overview

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling via getFeed() in src/feeds.ts, when parsing RSS or Atom feeds containing nested item or entry elements. Because getFeed() collected item and entry elements at any depth below the feed root, an item nested inside another item was treated as an independent item, and its media elements were collected again for every enclosing item. This causes N nested items around M media:content elements to produce N × M media objects, exhausting the Node.js heap and terminating the process in a way that try/catch cannot prevent.

PoC

import { parseDocument } from "htmlparser2";
import { getFeed } from "domutils";

const n = 400;
const xml = "<rss><channel>" + "<item>".repeat(n) +
  '<media:content url="x"/>'.repeat(n) + "</item>".repeat(n) +
  "</channel></rss>";
const feed = getFeed(parseDocument(xml, { xmlMode: true }).children);
console.log(feed.items.reduce((sum, item) => sum + item.media.length, 0));
// 160000 with domutils 4.0.2 (15 KB of input)

CVSS Base Scores

version 4.0
version 3.1