Medium
express vulnerable to XSS via response.redirect()
Type: advisorySources: OSV
Express.js minimalist web framework for node. In express < 4.20.0, passing untrusted user input - even after sanitizing it - to response.redirect() may execute untrusted code. This issue is patched in express 4.20.0.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2024-43796
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 4 Nov 2026, 20:11 UTC · Revision 1
Source evidence
express vulnerable to XSS via response.redirect()
core-osv · Original sourcePublished 10 Sept 2024, 14:36 UTC
Express.js minimalist web framework for node. In express < 4.20.0, passing untrusted user input - even after sanitizing it - to response.redirect() may execute untrusted code. This issue is patched in express 4.20.0.
osv:CVE-2024-43796
Complete source record
{
"id": "e20baaf273a40962009ab6376f544ea0418931fb2e858a819f09d9840827448d",
"url": "https://osv.dev/vulnerability/CVE-2024-43796",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "express vulnerable to XSS via response.redirect()",
"summary": "Express.js minimalist web framework for node. In express < 4.20.0, passing untrusted user input - even after sanitizing it - to response.redirect() may execute untrusted code. This issue is patched in express 4.20.0.",
"evidence": "osv:CVE-2024-43796",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2024-43796",
"aliases": [
"CVE-2024-43796",
"GHSA-qw6h-vgh9-j6wx"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/expressjs/express",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "21df421ebc7a5249bb31101da666bbf22adc3f18"
},
{
"fixed": "54271f69b511fea198471e6ff3400ab805d6b553"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:openjsf:express:*:*:*:*:*:node.js:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "4.20.0"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "54271f69b511fea198471e6ff3400ab805d6b553"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"4.19.1",
"4.19.0",
"4.18.3",
"4.18.2",
"4.18.1",
"4.18.0",
"4.17.3",
"4.17.2",
"4.17.1",
"4.17.0",
"4.16.4",
"4.16.3",
"4.16.2",
"4.16.1",
"4.16.0",
"4.15.5",
"4.15.4",
"4.15.3",
"4.15.2",
"4.15.1",
"4.15.0",
"4.14.1",
"4.14.0",
"4.13.4",
"4.13.3",
"4.13.2",
"4.13.1",
"4.13.0",
"4.12.4",
"4.12.3",
"4.12.2",
"4.12.1",
"4.12.0",
"4.11.2",
"4.11.1",
"4.11.0",
"4.10.8",
"4.10.7",
"4.10.6",
"4.10.5",
"4.10.4",
"4.10.3",
"4.10.2",
"4.10.1",
"4.10.0",
"4.9.8",
"4.9.7",
"4.9.6",
"4.9.5",
"4.9.4",
"4.9.3",
"4.9.2",
"4.9.1",
"4.9.0",
"4.8.8",
"4.8.7",
"4.8.6",
"4.8.5",
"4.8.4",
"4.8.3",
"4.8.2",
"4.8.1",
"4.8.0",
"4.7.4",
"4.7.3",
"4.7.2",
"4.7.1",
"4.7.0",
"4.6.1",
"4.6.0",
"4.5.1",
"4.5.0",
"4.4.4",
"4.4.3",
"4.4.2",
"4.4.1",
"4.4.0",
"4.3.2",
"4.3.1",
"4.3.0",
"4.2.0",
"4.1.1",
"4.1.0",
"4.0.0",
"4.0.0-rc4",
"4.0.0-rc3",
"4.0.0-rc2",
"4.0.0-rc1",
"3.4.7",
"3.4.6",
"3.4.5",
"3.4.4",
"3.4.3",
"3.4.2",
"3.4.0",
"3.3.8",
"3.3.7",
"3.3.6",
"3.3.5",
"3.3.4",
"3.3.3",
"3.3.2",
"3.3.1",
"3.3.0",
"3.2.6",
"3.2.5",
"3.2.4",
"3.2.3",
"3.2.2",
"3.2.1",
"3.2.0",
"3.1.2",
"3.1.1",
"3.1.0",
"3.0.6",
"3.0.5",
"3.0.4",
"3.0.3",
"3.0.2",
"3.0.1",
"3.0.0rc3",
"3.0.0rc2",
"3.0.0rc1",
"3.0.0beta7",
"3.0.0beta6",
"3.0.0beta5",
"3.0.0beta4",
"3.0.0beta3",
"3.0.0beta2",
"3.0.0beta1",
"3.0.0alpha5",
"3.0.0alpha4",
"3.0.0alpha3",
"3.0.0alpha2",
"3.0.0alpha1",
"2.4.3",
"2.4.2",
"2.4.1",
"2.4.0",
"2.3.12",
"2.3.11",
"2.3.10",
"2.3.9",
"2.3.8",
"2.3.7",
"2.3.6",
"2.3.5",
"2.3.4",
"2.3.3",
"2.3.2",
"2.3.1",
"2.3.0",
"2.2.2",
"2.2.1",
"2.2.0",
"2.1.1",
"2.1.0",
"2.0.0",
"2.0.0rc3",
"2.0.0rc2",
"2.0.0rc",
"2.0.0beta3",
"2.0.0beta2",
"1.0.0",
"1.0.0rc4",
"1.0.0rc3",
"1.0.0rc2",
"1.0.0rc",
"1.0.0beta2",
"1.0.0beta",
"0.14.0",
"0.13.0",
"0.12.0",
"0.11.0",
"0.10.1",
"0.10.0",
"0.9.0",
"0.8.0",
"0.7.6",
"0.7.5",
"0.7.4",
"0.7.3",
"0.7.2",
"0.7.0",
"0.6.0",
"0.5.0",
"0.4.0",
"0.3.0",
"0.2.1",
"0.2.0",
"0.1.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-43796.json"
}
}
],
"modified": "2026-10-28T02:30:39.083286829Z",
"provider": "osv",
"references": [
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/43xxx/CVE-2024-43796.json",
"https://github.com/expressjs/express/security/advisories/GHSA-qw6h-vgh9-j6wx",
"https://nvd.nist.gov/vuln/detail/CVE-2024-43796",
"https://github.com/expressjs/express/commit/54271f69b511fea198471e6ff3400ab805d6b553"
],
"provider_metadata": {
"cwe_ids": [
"CWE-79"
],
"cna_assigner": "GitHub_M",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/43xxx/CVE-2024-43796.json"
}
},
"related_cves": [
{
"value": "CVE-2024-43796",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 506533,
"published_at": "2024-09-10T14:36:27.38+00:00"
}