Express.js Open Redirect in malformed URLs
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Spoofing
- Confidentiality · integrity · availability
- Low · Low · None
- Fix status
- Partial Red Hat: 11 fixed, 25 without a fix
Attack profile from CVSS 3.1 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-601.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| expressjs | express | 4.14.0 to before 4.19.0; 5.0.0-alpha.1 to before 5.0.0-beta.3 | 4.19.0, 5.0.0-beta.3 | Patch available | CNA |
| — | express (npm) | before 4.19.2 | 4.19.2 | Patch available | GHSA-rv95-896h-c2vc |
| — | express (npm) | 5.0.0-alpha.1 to before 5.0.0-beta.3 | 5.0.0-beta.3 | Patch available | GHSA-rv95-896h-c2vc |
- express Vendorexpressjs Affected 4.14.0 to before 4.19.0; 5.0.0-alpha.1 to before 5.0.0-beta.3 Fixed in 4.19.0, 5.0.0-beta.3 Patch available CNA
- express (npm) Vendor— Affected before 4.19.2 Fixed in 4.19.2 Patch available GHSA-rv95-896h-c2vc
- express (npm) Vendor— Affected 5.0.0-alpha.1 to before 5.0.0-beta.3 Fixed in 5.0.0-beta.3 Patch available GHSA-rv95-896h-c2vc
CPE configurations NVD · 11
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:openjsf:express:*:*:*:*:*:node.js:*:* | before 4.19.2 | Vulnerable | fast-uri |
| cpe:2.3:a:openjsf:express:5.0.0:alpha1:*:*:*:node.js:*:* | 5.0.0 alpha1 | Vulnerable | fast-uri |
| cpe:2.3:a:openjsf:express:5.0.0:alpha2:*:*:*:node.js:*:* | 5.0.0 alpha2 | Vulnerable | fast-uri |
| cpe:2.3:a:openjsf:express:5.0.0:alpha3:*:*:*:node.js:*:* | 5.0.0 alpha3 | Vulnerable | fast-uri |
| cpe:2.3:a:openjsf:express:5.0.0:alpha4:*:*:*:node.js:*:* | 5.0.0 alpha4 | Vulnerable | fast-uri |
| cpe:2.3:a:openjsf:express:5.0.0:alpha5:*:*:*:node.js:*:* | 5.0.0 alpha5 | Vulnerable | fast-uri |
| cpe:2.3:a:openjsf:express:5.0.0:alpha6:*:*:*:node.js:*:* | 5.0.0 alpha6 | Vulnerable | fast-uri |
| cpe:2.3:a:openjsf:express:5.0.0:alpha7:*:*:*:node.js:*:* | 5.0.0 alpha7 | Vulnerable | fast-uri |
| cpe:2.3:a:openjsf:express:5.0.0:alpha8:*:*:*:node.js:*:* | 5.0.0 alpha8 | Vulnerable | fast-uri |
| cpe:2.3:a:openjsf:express:5.0.0:beta1:*:*:*:node.js:*:* | 5.0.0 beta1 | Vulnerable | fast-uri |
- cpe:2.3:a:openjsf:express:*:*:*:*:*:node.js:*:* Versions before 4.19.2 Vulnerable ·fast-uri
- cpe:2.3:a:openjsf:express:5.0.0:alpha1:*:*:*:node.js:*:* Versions 5.0.0 alpha1 Vulnerable ·fast-uri
- cpe:2.3:a:openjsf:express:5.0.0:alpha2:*:*:*:node.js:*:* Versions 5.0.0 alpha2 Vulnerable ·fast-uri
- cpe:2.3:a:openjsf:express:5.0.0:alpha3:*:*:*:node.js:*:* Versions 5.0.0 alpha3 Vulnerable ·fast-uri
- cpe:2.3:a:openjsf:express:5.0.0:alpha4:*:*:*:node.js:*:* Versions 5.0.0 alpha4 Vulnerable ·fast-uri
- cpe:2.3:a:openjsf:express:5.0.0:alpha5:*:*:*:node.js:*:* Versions 5.0.0 alpha5 Vulnerable ·fast-uri
- cpe:2.3:a:openjsf:express:5.0.0:alpha6:*:*:*:node.js:*:* Versions 5.0.0 alpha6 Vulnerable ·fast-uri
- cpe:2.3:a:openjsf:express:5.0.0:alpha7:*:*:*:node.js:*:* Versions 5.0.0 alpha7 Vulnerable ·fast-uri
- cpe:2.3:a:openjsf:express:5.0.0:alpha8:*:*:*:node.js:*:* Versions 5.0.0 alpha8 Vulnerable ·fast-uri
- cpe:2.3:a:openjsf:express:5.0.0:beta1:*:*:*:node.js:*:* Versions 5.0.0 beta1 Vulnerable ·fast-uri
Remediation
- Fix · CNA express (expressjs) Fixed in 4.19.0, 5.0.0-beta.3
- Fix · GHSA-rv95-896h-c2vc express (npm) Fixed in 4.19.2 Advisory →
- Fix · GHSA-rv95-896h-c2vc express (npm) Fixed in 5.0.0-beta.3 Advisory →
Red Hat 10 advisories
- RHSA-2025:8551 Released 2025-06-04 · Red Hat rating ImportantRed Hat OpenShift Data Foundation 4.14.18 Bug Fix Update
- RHODF 4.14 for RHEL 9 odf4/ocs-client-console-rhel9, odf4/odf-console-rhel9, odf4/odf-multicluster-console-rhel9 +1
- RHSA-2025:8544 Released 2025-06-04 · Red Hat rating ImportantRed Hat OpenShift Data Foundation 4.15.14 Bug Fix Update
- RHODF 4.15 for RHEL 9 odf4/mcg-rhel9-operator, odf4/ocs-client-console-rhel9, odf4/odf-console-rhel9 +2
- RHSA-2025:8479 Released 2025-06-04 · Red Hat rating ImportantRHODF-4.16-RHEL-9 security update
- RHODF 4.16 for RHEL 9 odf4/cephcsi-rhel9, odf4/mcg-rhel9-operator, odf4/ocs-client-console-rhel9 +4
Show 7 more Red Hat advisories
- RHSA-2025:8059 Released 2025-05-21 · Red Hat rating ImportantRed Hat OpenShift Data Foundation 4.17.7 Bug Fix Update
- RHODF 4.17 for RHEL 9 odf4/cephcsi-rhel9, odf4/mcg-rhel9-operator, odf4/ocs-client-console-rhel9 +8
- RHSA-2025:4511 Released 2025-05-06 · Red Hat rating ImportantRHODF-4.18-RHEL-9 security update
- RHODF 4.18 for RHEL 9 odf4/cephcsi-rhel9, odf4/mcg-rhel9-operator, odf4/ocs-client-console-rhel9 +7
- RHSA-2024:7624 Released 2024-10-03 · Red Hat rating ImportantRed Hat OpenShift Data Foundation 4.14.11 security and bug fix update
- RHODF 4.14 for RHEL 9 odf4/cephcsi-rhel9, odf4/mcg-core-rhel9
- RHSA-2024:7164 Released 2024-09-26 · Red Hat rating ImportantMigration Toolkit for Containers (MTC) 1.8.4 security and bug fix update
- 8Base-RHMTC-1.8 rhmtc/openshift-migration-controller-rhel8, rhmtc/openshift-migration-registry-rhel8, rhmtc/openshift-migration-ui-rhel8
- RHSA-2024:6211 Released 2024-09-03 · Red Hat rating ImportantRed Hat OpenShift Service Mesh Containers for 2.6.1 security update
- RHOSSM 2.6 for RHEL 8 openshift-service-mesh/grafana-rhel8, openshift-service-mesh/istio-cni-rhel8, openshift-service-mesh/istio-must-gather-rhel8 +6
- RHOSSM 2.6 for RHEL 9 openshift-service-mesh/proxyv2-rhel9
- RHSA-2024:4873 Released 2024-07-25 · Red Hat rating ImportantApicurio Registry (container images) release and security update [ 2.6.1 GA ]
- Red Hat build of Apicurio Registry 2.6.1 GA
- RHSA-2024:3868 Released 2024-06-17 · Red Hat rating ImportantNetwork Observability 1.6.0 for OpenShift
- NETOBSERV 1.6 for RHEL 9 network-observability/network-observability-cli-rhel9, network-observability/network-observability-console-plugin-rhel9, network-observability/network-observability-ebpf-agent-rhel9 +3
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| A-MQ Interconnect 1 | Affected | No fix yet |
| Logging Subsystem for Red Hat OpenShift | Affected | No fix planned: Will not fix |
| Migration Toolkit for Applications 6 | Affected | No fix planned: Will not fix |
| Migration Toolkit for Applications 7 | Affected | No fix yet |
| Migration Toolkit for Runtimes | Affected | No fix yet |
| Node HealthCheck Operator | Affected | No fix planned: Will not fix |
| Red Hat 3scale API Management Platform 2 | Affected | No fix yet |
| Red Hat Advanced Cluster Security 3 | Affected | No fix planned: Will not fix |
| Red Hat Advanced Cluster Security 4 | Affected | No fix yet |
| Red Hat Developer Hub 1 | Affected | No fix planned: Will not fix |
| Red Hat Discovery 1 | Affected | No fix planned: Will not fix |
| Red Hat Enterprise Linux 6 | Affected | No fix yet |
| Red Hat Enterprise Linux 7 | Affected | No fix planned: Will not fix |
| Red Hat Enterprise Linux 8 | Affected | No fix yet |
| Red Hat OpenShift AI (RHOAI) | Affected | No fix planned: Will not fix |
| Red Hat OpenShift Container Platform 3.11 | Affected | No fix planned: Will not fix |
| Red Hat OpenShift Container Platform 4 | Affected | No fix planned: Will not fix |
| Red Hat OpenShift Data Science (RHODS) | Affected | No fix planned: Will not fix |
| Red Hat OpenShift GitOps | Affected | No fix yet |
| Red Hat OpenShift Virtualization 4 | Affected | No fix yet |
| Red Hat OpenShift distributed tracing 2 | Affected | No fix planned: Will not fix |
| Red Hat OpenShift distributed tracing 3 | Affected | No fix planned: Will not fix |
| Red Hat Openshift Container Storage 4 | Affected | No fix yet |
| Red Hat Quay 3 | Affected | No fix planned: Will not fix |
| Red Hat Satellite 6 | Affected | No fix yet |
| 8Base-RHMTC-1.8 | Fixed | RHSA-2024:7164 |
| NETOBSERV 1.6 for RHEL 9 | Fixed | RHSA-2024:3868 |
| OpenShift Pipelines version 1.16 for RHEL 8 | Fixed | — |
| RHODF 4.14 for RHEL 9 | Fixed | RHSA-2024:7624, RHSA-2025:8551 |
| RHODF 4.15 for RHEL 9 | Fixed | RHSA-2025:8544 |
| RHODF 4.16 for RHEL 9 | Fixed | RHSA-2025:8479 |
| RHODF 4.17 for RHEL 9 | Fixed | RHSA-2025:8059 |
| RHODF 4.18 for RHEL 9 | Fixed | RHSA-2025:4511 |
| RHOSSM 2.6 for RHEL 8 | Fixed | RHSA-2024:6211 |
| RHOSSM 2.6 for RHEL 9 | Fixed | RHSA-2024:6211 |
| Red Hat build of Apicurio Registry 2.6.1 GA | Fixed | RHSA-2024:4873 |
Not affected: 32 products
- 8Base-RHMTC-1.8
- Cryostat 2
- Logging Subsystem for Red Hat OpenShift
- Migration Toolkit for Virtualization
- Multicluster Engine for Kubernetes
- OpenShift Serverless
- RHODF 4.14 for RHEL 9
- RHODF 4.15 for RHEL 9
- RHODF 4.16 for RHEL 9
- RHODF 4.17 for RHEL 9
- RHODF 4.18 for RHEL 9
- Red Hat Advanced Cluster Management for Kubernetes 2
- Red Hat Advanced Cluster Security 4
- Red Hat Ansible Automation Platform 2
- Red Hat Data Grid 8
- Red Hat Developer Hub 1
- Red Hat Enterprise Linux 10
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
- Red Hat Fuse 7
- Red Hat Integration Camel K 1
- Red Hat JBoss Data Grid 7
- Red Hat JBoss Enterprise Application Platform 7
- Red Hat JBoss Enterprise Application Platform Expansion Pack
- Red Hat OpenShift Dev Spaces
- Red Hat OpenShift distributed tracing 2
- Red Hat OpenShift distributed tracing 3
- Red Hat OpenStack Platform 17.1
- Red Hat Process Automation 7
- Red Hat Satellite 6
- Red Hat build of Apache Camel - HawtIO 4
- Red Hat build of OptaPlanner 8
Timeline
- 2026-10-02 Threatist record created from CVE-2024-29041
- 2026-10-03 Alias added: GHSA-rv95-896h-c2vc
- 2026-10-27 Affected versions changed · Red Hat
References
Patch 3
More expressjs vulnerabilities
- TI-2024-08602 Open redirect in expressjs express CVSS 3.1MEDIUM 4.7
- TI-2026-03033 Multer vulnerable to Denial of Service via uncontrolled recursion CVSS 4.0HIGH 8.7
- TI-2026-02853 Multer vulnerable to Denial of Service via incomplete cleanup CVSS 4.0HIGH 8.7
- TI-2026-01995 Multer vulnerable to Denial of Service via resource exhaustion CVSS 4.0HIGH 8.7
- TI-2025-31125 Multer vulnerable to Denial of Service via unhandled exception CVSS 4.0HIGH 8.7
- TI-2025-30337 Multer vulnerable to Denial of Service from maliciously crafted requests CVSS 3.1HIGH 7.5
Sources
- CVE-2024-29041 · CVE Program
- CVE-2024-29041 · NVD
- FIRST EPSS
- GHSA-rv95-896h-c2vc · GitHub Advisory Database · CC BY 4.0
- CVE-2024-29041 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences