CVE-2024-29041
Express.js Open Redirect in malformed URLs
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.
Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.
Severity and exploitation evidence
EPSS: 0.786% · score date 2026-11-19. EPSS is an estimated probability over the next 30 days, not proof of exploitation.
CISA KEV: not included in the checked catalog; exploitation may still occur. Last checked: 2026-11-19T17:59:58.648Z. Public exploit availability is not used to set this status.
CVSS 3.1 · 6.1 · published by GitHub_MCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Assessment source · checked 2026-11-19T12:57:09.834Z
Verification by field
| Field | Status | Checked at (UTC) | Source |
|---|---|---|---|
| kev | verified | 2026-11-19T17:59:58.648Z | CISA KEV |
| cvss | verified | 2026-11-19T12:57:09.834Z | CVE Program |
| epss | verified | 2026-11-19T16:04:38.218Z | FIRST EPSS |
| patches | verified | 2026-11-19T12:51:57.186Z | OSV |
| affected | verified | 2026-11-19T12:57:09.834Z | CVE Program |
| lifecycle | verified | 2026-11-19T12:57:09.834Z | CVE Program |
Affected versions and configuration
expressjs express; default status: unknown: >=4.14.0, <4.19.0 [affected; scheme: unspecified]; >=5.0.0-alpha.1, <5.0.0-beta.3 [affected; scheme: unspecified]
Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.
CVE Program · cve-json · full conditions
{
"affected": [
{
"vendor": "expressjs",
"product": "express",
"versions": [
{
"status": "affected",
"version": ">=4.14.0, <4.19.0"
},
{
"status": "affected",
"version": ">=5.0.0-alpha.1, <5.0.0-beta.3"
}
]
}
],
"additionalContainers": [
{
"title": "CISA ADP Vulnrichment",
"metrics": [
{
"other": {
"type": "ssvc",
"content": {
"id": "CVE-2024-29041",
"role": "CISA Coordinator",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"version": "2.0.3",
"timestamp": "2024-03-26T13:59:28.274744Z"
}
}
}
],
"providerMetadata": {
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP",
"dateUpdated": "2024-06-04T17:57:16.909Z"
}
},
{
"title": "CVE Program Container",
"references": [
{
"url": "https://github.com/expressjs/express/security/advisories/GHSA-rv95-896h-c2vc",
"name": "https://github.com/expressjs/express/security/advisories/GHSA-rv95-896h-c2vc",
"tags": [
"x_refsource_CONFIRM",
"x_transferred"
]
},
{
"url": "https://github.com/koajs/koa/issues/1800",
"name": "https://github.com/koajs/koa/issues/1800",
"tags": [
"x_refsource_MISC",
"x_transferred"
]
},
{
"url": "https://github.com/expressjs/express/pull/5539",
"name": "https://github.com/expressjs/express/pull/5539",
"tags": [
"x_refsource_MISC",
"x_transferred"
]
},
{
"url": "https://github.com/expressjs/express/commit/0867302ddbde0e9463d0564fea5861feb708c2dd",
"name": "https://github.com/expressjs/express/commit/0867302ddbde0e9463d0564fea5861feb708c2dd",
"tags": [
"x_refsource_MISC",
"x_transferred"
]
},
{
"url": "https://github.com/expressjs/express/commit/0b746953c4bd8e377123527db11f9cd866e39f94",
"name": "https://github.com/expressjs/express/commit/0b746953c4bd8e377123527db11f9cd866e39f94",
"tags": [
"x_refsource_MISC",
"x_transferred"
]
},
{
"url": "https://expressjs.com/en/4x/api.html#res.location",
"name": "https://expressjs.com/en/4x/api.html#res.location",
"tags": [
"x_refsource_MISC",
"x_transferred"
]
}
],
"providerMetadata": {
"orgId": "af854a3a-2127-422b-91ae-364da2661108",
"shortName": "CVE",
"dateUpdated": "2024-08-02T01:03:51.705Z"
}
}
]
}Archived source JSONOSV · osv · full conditions
{
"id": "GHSA-rv95-896h-c2vc",
"aliases": [
"CVE-2024-29041"
],
"affected": [
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0"
},
{
"fixed": "4.19.2"
}
]
}
],
"package": {
"name": "express",
"purl": "pkg:npm/express",
"ecosystem": "npm"
},
"versions": [],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/03/GHSA-rv95-896h-c2vc/GHSA-rv95-896h-c2vc.json"
}
},
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "5.0.0-alpha.1"
},
{
"fixed": "5.0.0-beta.3"
}
]
}
],
"package": {
"name": "express",
"purl": "pkg:npm/express",
"ecosystem": "npm"
},
"versions": [],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/03/GHSA-rv95-896h-c2vc/GHSA-rv95-896h-c2vc.json"
}
}
],
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
}
],
"upstream": [],
"withdrawn": null,
"references": [
{
"url": "https://github.com/expressjs/express/security/advisories/GHSA-rv95-896h-c2vc",
"type": "WEB"
},
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2024-29041",
"type": "ADVISORY"
},
{
"url": "https://github.com/koajs/koa/issues/1800",
"type": "WEB"
},
{
"url": "https://github.com/expressjs/express/pull/5539",
"type": "WEB"
},
{
"url": "https://github.com/expressjs/express/commit/0867302ddbde0e9463d0564fea5861feb708c2dd",
"type": "WEB"
},
{
"url": "https://github.com/expressjs/express/commit/0b746953c4bd8e377123527db11f9cd866e39f94",
"type": "WEB"
},
{
"url": "https://expressjs.com/en/4x/api.html#res.location",
"type": "WEB"
},
{
"url": "https://github.com/expressjs/express",
"type": "PACKAGE"
}
],
"relatedGitRanges": [],
"database_specific": {
"cwe_ids": [
"CWE-1286",
"CWE-601"
],
"severity": "MODERATE",
"github_reviewed": true,
"nvd_published_at": "2024-03-25T21:15:46Z",
"github_reviewed_at": "2024-03-25T19:40:26Z"
}
}Archived source JSONCorrection evidence
Distribution packages and upstream releases are distinct. ESM channels may require the corresponding Ubuntu entitlement. Notes and branch ranges are not installable package versions. OSV fixed boundaries are ecosystem-specific version thresholds, not proof that a package is currently available or installed.
| Evidence type | Distribution / release | Package | Channel | Version or source note | Source |
|---|---|---|---|---|---|
| ecosystem-boundary | npm / package | express | Not a distribution channel | 4.19.2 | Official record |
| ecosystem-boundary | npm / package | express | Not a distribution channel | 5.0.0-beta.3 | Official record |
Vendor notices and operational guidance
No connected vendor notice is available for this record.
Original sources and dates
- OSVConsulted: 2026-11-19T12:51:57.186ZArchived source JSON
Source publication: 2024-03-25T19:40:26.000Z
Source modification: 2026-09-10T03:50:10.750ZDocument fingerprint
3c7469214b745c37e68db49dffb3f0a6d520a2a5191a7648e02930e290608ff9 - CVE ProgramConsulted: 2026-11-19T12:57:09.834ZArchived source JSON
Source publication: 2024-03-25T20:20:06.205Z
Source modification: 2024-08-02T01:03:51.705ZDocument fingerprint
3401eb4adf6a6214e61e568ade18522f05947892e78b06c6bde76ac186603c3f - CISA KEVConsulted: 2026-11-19T17:59:58.648ZArchived source JSON
Source publication: not supplied
Source modification: 2026-11-18T19:17:41.0354ZDocument fingerprint
a35fdc67c7d9802988dcfc1d3ff1198da327948d1db122ab7692ac201055ac56 - FIRST EPSSConsulted: 2026-11-19T16:04:38.218ZArchived source JSON
Source publication: not supplied
Source modification: not suppliedDocument fingerprint
55a64ee9ca0f1d908a48c56be557bd1ef72d684d2b38b659335bfacedc0274cc
Official status history
- UNKNOWN → PUBLISHED · · evidence