VDB

CVE-2024-29041

CVE-2024-29041 PUBLISHED CVSS 6.1 MEDIUM

Express.js Open Redirect in malformed URLs

Reported by github_m · Published March 25, 2024

express is fixed in 5.0.0-beta.3 and 4.19.2 (npm)

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`](https://github.com/pillarjs/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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
expressnpm5.0.0-beta.3, 4.19.2
argo-workflowsChainguard3.6.5-r2
arangodb-3.11Chainguard3.11.14.5-r25

Risk scores

CVSS 3.1
6.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Affected products

VendorProductVersions
expressjsexpress>=4.14.0, <4.19.0, >=5.0.0-alpha.1, <5.0.0-beta.3
chainguardargo-workflows0
npmexpress5.0.0-alpha.1, 0
expressjsexpress
chainguardarangodb-3.110
expressjsexpress5.0.0-alpha.1, 4.14.0
chainguardsqlpad0
wolfikubeflow-pipelines0
wolfisqlpad0
chainguardkubeflow-centraldashboard0
chainguardkubeflow-pipelines0
wolfiargo-workflows0
wolfikubeflow-centraldashboard0

Timeline

  • Mar 25, 2024 CVE Published
  • Mar 26, 2024 EPSS Score (30 in total, the first dated here)
  • Oct 4, 2024 Coalition ESS Score (10 in total, the first dated here)
  • Jan 14, 2026 Security Advisory (19 in total, the first dated here)
  • Nov 8, 2026 Distribution Patch (18 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2024-29041
vulnetix vdb fixes CVE-2024-29041

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-29041/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›