# CVE-2024-29041: Express.js Open Redirect in malformed URLs

- Priority: **Routine**
- Reason: Not severe (CVSS 6.1, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2024-03-25 · Modified: 2024-08-02
- Aliases: UBUNTU-CVE-2024-29041, DEBIAN-CVE-2024-29041, CGA-246g-68px-6v33, CGA-2p45-hw3w-26pc, CGA-56v2-q689-3hv9, CGA-5fpp-75wg-fmm4, CGA-622c-cc9v-q3vf, CGA-6742-8crj-wwr7, CGA-6hvp-g4jh-44ff, CGA-756v-hfwh-p9hp, CGA-84h8-pp2w-7fx9, CGA-c9p3-3w5r-65rw, CGA-c9ph-hj5p-43p3, CGA-cm4h-8xhh-p3gr, CGA-cwcg-g23v-f3px, CGA-f98j-9x78-6x7v, CGA-g83x-9p87-924g, CGA-gv53-x7hr-h8p4, CGA-hx79-rh8r-fgj4, CGA-mcjp-j8rf-rmxv, CGA-mcvj-8xhg-p4m5, CGA-mrv8-hrv6-vc5q, CGA-mwjf-vpj8-q3rj, CGA-pgp7-4h34-3mj2, CGA-qm4x-p2qv-c5wv, CGA-qq9w-h6c2-h25m, CGA-r6qr-m3xr-gvjj, CGA-rfw3-hjf4-x7jm, CGA-rgjh-r7x8-rvvm, CGA-rmmj-v9m9-cpp7, CGA-rvqg-82qv-w7m2, CGA-vhrc-r5jm-frgh, CGA-vpp6-665c-vffj, CGA-x9hf-6996-j9gm, GHSA-rv95-896h-c2vc, CGA-89rf-97cj-9p8w, CGA-92xx-3cm3-5634
- Record: https://cvemate.com/vulnerability/CVE-2024-29041 · JSON: https://cvemate.com/vulnerability/CVE-2024-29041/json

## Description

```text
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.
```

## Signals

- CVSS: 6.1 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- EPSS: 0.786%, percentile 57.467%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 38)

- chainguard arangodb-3.11 (Chainguard): \< 3.11.14.5-r25
- chainguard argo-workflows (Chainguard): \< 3.6.5-r2
- chainguard kubeflow-centraldashboard (Chainguard): \< 1.8.0-r3
- chainguard kubeflow-pipelines (Chainguard): \< 2.4.0-r9
- chainguard kubeflow-pipelines-apiserver (Chainguard): \< 2.4.0-r9
- chainguard kubeflow-pipelines-cache\_server (Chainguard): \< 2.4.0-r9
- chainguard kubeflow-pipelines-cache-deployer (Chainguard): \< 2.4.0-r9
- chainguard kubeflow-pipelines-cache-deployer-compat (Chainguard): \< 2.4.0-r9
- chainguard kubeflow-pipelines-frontend (Chainguard): \< 2.4.0-r9
- chainguard kubeflow-pipelines-metadata-envoy-config (Chainguard): \< 2.4.0-r9
- chainguard kubeflow-pipelines-metadata-writer (Chainguard): \< 2.4.0-r9
- chainguard kubeflow-pipelines-metadata-writer-compat (Chainguard): \< 2.4.0-r9
- chainguard kubeflow-pipelines-persistence\_agent (Chainguard): \< 2.4.0-r9
- chainguard kubeflow-pipelines-scheduledworkflow (Chainguard): \< 2.4.0-r9
- chainguard kubeflow-pipelines-viewer-crd-controller (Chainguard): \< 2.4.0-r9
- chainguard sqlpad (Chainguard): \< 7.4.1-r3
- chainguard sqlpad-compat (Chainguard): \< 7.4.1-r3
- wolfi argo-workflows (Wolfi): \< 3.6.5-r2
- wolfi kubeflow-centraldashboard (Wolfi): \< 1.8.0-r3
- wolfi kubeflow-pipelines (Wolfi): \< 2.4.0-r9

## References

- <https://github.com/expressjs/express/security/advisories/GHSA-rv95-896h-c2vc>
- <https://github.com/koajs/koa/issues/1800>
- <https://github.com/expressjs/express/pull/5539>
- <https://github.com/expressjs/express/commit/0867302ddbde0e9463d0564fea5861feb708c2dd>
- <https://github.com/expressjs/express/commit/0b746953c4bd8e377123527db11f9cd866e39f94>
- <https://expressjs.com/en/4x/api.html#res.location>
- <https://ubuntu.com/security/CVE-2024-29041>
- <https://www.cve.org/CVERecord?id=CVE-2024-29041>
- <https://ubuntu.com/security/notices/USN-7581-1>
- <https://security-tracker.debian.org/tracker/CVE-2024-29041>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/29xxx/CVE-2024-29041.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2024-29041>
- <https://github.com/expressjs/express>

---

Data as of 2026-12-05T05:19:18.709Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
