BREACHSPIDER
CVE databaseVendorsIntelFeaturesDevelopersDocsPricingSign inStart free trial

CVE-2024-29041 in Openjsf Express

Medium 6.1 Fix available

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

Affects 1 product from 1 vendor. Facts below cite their sources.

CVSS 3.16.1
EPSS0.9%
EPSS percentile59th
FixAvailable

Remotely exploitable over the network, low complexity, no authentication required, requires user interaction, can impact systems beyond the vulnerable component, no availability impact.

Affected products and versions

VendorProductAffected versions
Openjsf Express 5.0.0 < 4.19.2

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

No official vendor advisory link on record. See the CVE record.

Vendor PSIRT: [email protected]

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official description

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.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2024-29041
BreachSpider IDBS-2024-GLOBAL-050967-M
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Published2024-03-25
Last modified2025-12-18
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-601: CWE-601

CWE-1286: CWE-1286

Related attack patterns (CAPEC)

CAPEC-178 Cross-Site Flashing via CWE-601

CAPEC-66 SQL Injection via CWE-1286

CAPEC-676 NoSQL Injection via CWE-1286

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

Express.js versions prior to 4.19.0 and all pre-release alpha and beta versions of 5.0 are vulnerable to an open redirect attack due to improper handling of malformed URLs during redirection.

An attacker can exploit this vulnerability by providing a specially crafted URL to a web application using an affected version of Express.js. The application, when performing a redirect using this URL, may inadvertently redirect users to an external, potentially malicious site.

Questions

What is CVE-2024-29041?

Express.js versions prior to 4.19.0 and all pre-release alpha and beta versions of 5.0 are vulnerable to an open redirect attack due to improper handling of malformed URLs during redirection.

What is the CVSS score for CVE-2024-29041?

CVE-2024-29041 has CVSS 6.1 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N. EPSS: 0.9%.

Is CVE-2024-29041 actively exploited?

No confirmed active exploitation of CVE-2024-29041 as of 2026-05-30.

How do I remediate CVE-2024-29041?

Priority: MEDIUM. PSIRT: [email protected]

What systems are affected by CVE-2024-29041?

CVE-2024-29041 affects Openjsf Express.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Openjsf","product":"Express","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2025-12-18.