Allocation of Resources Without Limits or Throttling Affecting expat package, versions [,2.7.2)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.08% (24th percentile)

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-CONAN-EXPAT-13003672
  • published24 Sept 2025
  • disclosed15 Sept 2025
  • creditUnknown

Introduced: 15 Sep 2025

NewCVE-2025-59375  (opens in a new tab)
CWE-770  (opens in a new tab)

How to fix?

Upgrade expat to version 2.7.2 or higher.

Overview

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling via the parser process. An attacker can cause excessive memory consumption by submitting a specially crafted XML document, resulting in service disruption due to resource exhaustion.

Workaround

This vulnerability can be mitigated by limiting XML input size and complexity before parsing, avoiding acceptance of compressed or deeply nested XML, and applying OS-level resource controls (such as ulimit or setrlimit()) to cap memory usage, or running the parser in a sandboxed or isolated process with strict memory and CPU limits.

CVSS Base Scores

version 4.0
version 3.1