CVE-2024-29041 Affecting node-express package, versions <4.17.3+~4.17.13-1ubuntu0.1~esm1


Severity

Recommended
medium

Based on Ubuntu security rating.

Threat Intelligence

EPSS
0.03% (7th 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 IDSNYK-UBUNTU2204-NODEEXPRESS-6500437
  • published20 Jun 2025
  • disclosed25 Mar 2024

Introduced: 25 Mar 2024

CVE-2024-29041  (opens in a new tab)

How to fix?

Upgrade Ubuntu:22.04 node-express to version 4.17.3+4.17.13-1ubuntu0.1esm1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream node-express package and not the node-express package as distributed by Ubuntu. See How to fix? for Ubuntu:22.04 relevant fixed versions and status.

Express.js minimalist web framework for node. Versions of Express.js prior to 4.19.0 and all pre-release alpha and beta versions of 5.0 are affected by an open redirect vulnerability using malformed URLs. When a user of Express performs a redirect using a user-provided URL Express performs an encode using encodeurl on the contents before passing it to the location header. This can cause malformed URLs to be evaluated in unexpected ways by common redirect allow list implementations in Express applications, leading to an Open Redirect via bypass of a properly implemented allow list. The main method impacted is res.location() but this is also called from within res.redirect(). The vulnerability is fixed in 4.19.2 and 5.0.0-beta.3.

CVSS Base Scores

version 3.1