Uncaught Exception Affecting body-parser package, versions <1.20.9>=2.0.0 <2.4.0


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

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 Uncaught Exception vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-BODYPARSER-21431495
  • published22 Oct 2026
  • disclosed22 Oct 2026
  • creditGavin Stuart

Introduced: 22 Oct 2026

NewCVE-2026-111181  (opens in a new tab)
CWE-248  (opens in a new tab)

How to fix?

Upgrade body-parser to version 1.20.9, 2.4.0 or higher.

Overview

Affected versions of this package are vulnerable to Uncaught Exception via the read function in lib/read.js when processing a compressed request body that contains trailing bytes. An attacker can send a compressed body with trailing data, causing the decompression stream to emit an error on an already-finished stream with no error listener attached, which crashes the Node.js process.

CVSS Base Scores

version 4.0
version 3.1