cve.bz

CVE-2024-29041 openjsf express: Open Redirect

6.1 mediumEPSS 0.8%Fix available

Medium (6.1) in openjsf express. EPSS 0.8% estimated probability of exploitation activity in the next 30 days. Fixed in express 4.19.2, 5.0.0-beta.3.

On this page
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.

Severity

CVSS 3.1

6.1 medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
EPSS
0.8% (unchanged from 0.8% a week ago; 0.8% 30 days ago) estimated probability of exploitation activity in the next 30 days; 57th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2024-03-26. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-601 URL Redirection to Untrusted Site (Open Redirect)
CWE-1286 Improper Validation of Syntactic Correctness of Input
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2024-29041 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-29041?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-29041?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-29041 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
openjsf:expressbefore 4.19.2
openjsf:express5.0.0:alpha1
openjsf:express5.0.0:alpha2
openjsf:express5.0.0:alpha3
openjsf:express5.0.0:alpha4
openjsf:express5.0.0:alpha5
openjsf:express5.0.0:alpha6
openjsf:express5.0.0:alpha7
openjsf:express5.0.0:alpha8
openjsf:express5.0.0:beta1
openjsf:express5.0.0:beta2

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-rv95-896h-c2vcnpmexpress<4.19.24.19.2
GHSA-rv95-896h-c2vcnpmexpress>=5.0.0-alpha.1 <5.0.0-beta.35.0.0-beta.3

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12node-expressno fix listedDEBIAN-CVE-2024-29041
Debian13, 14node-express4.19.2+~cs8.36.21-1DEBIAN-CVE-2024-29041
UbuntuPro:16.04:LTSnode-express4.1.1~dfsg-1ubuntu0.16.04.1~esm1UBUNTU-CVE-2024-29041 USN-7581-1
UbuntuPro:18.04:LTSnode-express4.1.1~dfsg-1ubuntu0.18.04.1~esm1UBUNTU-CVE-2024-29041 USN-7581-1
UbuntuPro:20.04:LTSnode-express4.17.1-2ubuntu0.1~esm1UBUNTU-CVE-2024-29041 USN-7581-1
UbuntuPro:22.04:LTSnode-express4.17.3+~4.17.13-1ubuntu0.1~esm1UBUNTU-CVE-2024-29041 USN-7581-1
UbuntuPro:24.04:LTSnode-express4.19.2+~cs8.36.21-1ubuntu0.1~esm1USN-7581-1
Azure Linux2nodejs-nodemonno fix listedAZL-43690
Azure Linux2reaper3.1.1-9AZL-37137
Azure Linux3nodejs-nodemonno fix listedAZL-44361

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

Red Hat

Red Hat rates this Important.

Red Hat's statement

Red Hat Fuse 7 only uses express as part of build time development dependency, it is not part of the final product delivery.

Upstream versions should not be relied upon for ultimate determination of affectedness. Red Hat might backport fixes from upstream versions on a case by case basis.

Red Hat's mitigation

Red Hat has investigated whether a possible mitigation exists for this issue, and has not been able to identify a practical example. Please update the affected package as soon as possible.

ProductPackageStateAdvisory
NETWORK-OBSERVABILITY-1.6.0-RHEL-9network-observability/network-observability-cli-rhel9:v1.6.0-66Fixed 2024-06-17RHSA-2024:3868
NETWORK-OBSERVABILITY-1.6.0-RHEL-9network-observability/network-observability-console-plugin-rhel9:v1.6.0-66Fixed 2024-06-17RHSA-2024:3868
NETWORK-OBSERVABILITY-1.6.0-RHEL-9network-observability/network-observability-ebpf-agent-rhel9:v1.6.0-66Fixed 2024-06-17RHSA-2024:3868
NETWORK-OBSERVABILITY-1.6.0-RHEL-9network-observability/network-observability-flowlogs-pipeline-rhel9:v1.6.0-66Fixed 2024-06-17RHSA-2024:3868
NETWORK-OBSERVABILITY-1.6.0-RHEL-9network-observability/network-observability-operator-bundle:1.6.0-78Fixed 2024-06-17RHSA-2024:3868
NETWORK-OBSERVABILITY-1.6.0-RHEL-9network-observability/network-observability-rhel9-operator:v1.6.0-66Fixed 2024-06-17RHSA-2024:3868
OpenShift-Pipelines-1.16-RHEL-8openshift-pipelines/pipelines-chains-controller-rhel8:v1.16.0-6Fixed 2024-10-09RHEA-2024:7870
OpenShift-Pipelines-1.16-RHEL-8openshift-pipelines/pipelines-cli-tkn-rhel8:v1.16.0-7Fixed 2024-10-09RHEA-2024:7870
OpenShift-Pipelines-1.16-RHEL-8openshift-pipelines/pipelines-console-plugin-rhel8:v1.16.0-52Fixed 2024-10-09RHEA-2024:7870
OpenShift-Pipelines-1.16-RHEL-8openshift-pipelines/pipelines-controller-rhel8:v1.16.0-7Fixed 2024-10-09RHEA-2024:7870
A-MQ Interconnect 1qpid-dispatchAffected
Cryostat 2expressNot affected
Logging Subsystem for Red Hat OpenShiftopenshift-logging/kibana6-rhel8Not affected
Logging Subsystem for Red Hat OpenShiftopenshift-logging/logging-view-plugin-rhel8Will not fix
Migration Toolkit for Applications 6expressWill not fix
Migration Toolkit for Applications 6mta/mta-ui-rhel9Will not fix
Migration Toolkit for Applications 7mta/mta-cli-rhel9Will not fix
Migration Toolkit for Applications 7mta/mta-ui-rhel9Affected
Migration Toolkit for RuntimesexpressAffected
Migration Toolkit for Virtualizationmigration-toolkit-virtualization/mtv-console-plugin-rhel9Not affected
134 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2024-29041.

Attack patterns (CAPEC)

  • CAPEC-178 Cross-Site Flashing Likelihood: Medium · Severity: Medium
  • CAPEC-66 SQL Injection Likelihood: High · Severity: High
  • CAPEC-676 NoSQL Injection Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON