CVE catalog

CVE-2024-29041

Express vulnerabilities

[CVE catalog]

Severity
Medium · CVSS 6.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Published
Source
[NVD] · [CVE record]
EPSS
0.79% · Oct 27, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debiannode-expresssid5.2.1+~cs12.3.9-1fixed
Debiannode-expressforky5.2.1+~cs12.3.9-1fixed
Debiannode-expresstrixie4.21.2+~cs8.36.27-2fixed
Debiannode-expressbookworm4.18.2+~4.17.14-1vulnerable
Ubuntunode-expressnobleNot reportedvulnerable
Ubuntunode-expressnoble4.19.2+~cs8.36.21-1ubuntu0.1~esm1fixed
NpmexpressNot reported5.0.0-beta.3fixed
Ubuntunode-expresspro4.18.2+~cs8.34.50-1vulnerable
Ubuntunode-expresspro4.19.2+~cs8.36.21-1vulnerable
Ubuntunode-expresspro4.19.2+~cs8.36.21-1ubuntu0.1~esm1fixed
Ubuntunode-expresspro4.17.1-3vulnerable
Ubuntunode-expresspro4.17.1+~cs4.17.13-1vulnerable
Ubuntunode-expresspro4.17.2+~4.17.13-1vulnerable
Ubuntunode-expresspro4.17.3+~4.17.13-1vulnerable
Ubuntunode-expresspro4.17.3+~4.17.13-1ubuntu0.1~esm1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debiannode-expresssourcesid4.19.2+~cs8.36.21-1not yet assignedNot reported[1068346]
Debiannode-expresssourceforky4.19.2+~cs8.36.21-1not yet assignedNot reported[1068346]
Debiannode-expresssourcetrixie4.19.2+~cs8.36.21-1not yet assignedNot reported[1068346]
Debiannode-expresssourcebookworm(unfixed)not yet assignedNot reported[1068346]
Ubuntunode-expressdebnoble4.19.2+~cs8.36.21-1ubuntu0.1~esm1Not reportedNot reportedNot reported
NpmexpressnpmNot reported5.0.0-beta.3Not reportedGHSA-RV95-896H-C2VCNot reported
Ubuntunode-expressdebpro4.19.2+~cs8.36.21-1ubuntu0.1~esm1Not reportedUSN-7581-1Not reported
Ubuntunode-expressdebpro4.17.3+~4.17.13-1ubuntu0.1~esm1Not reportedUBUNTU-CVE-2024-29041Not reported

[Debian bug #1068346]

Notes

[bookworm] node-express: Minor issue

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [node-express]Affected
    Details (2)
    • 4.18.2+~4.17.14-1 · all · bookworm

      Affected

      usn · node-express · debian · bookworm; usn · node-express · debian · 12

    • 4.18.2+~4.17.14-1 · all · bookworm

      Affected

      usn · node-express · debian · bookworm; usn · node-express · debian · 12

[Debian 13 (Trixie)]

  • Details (2)
    • 4.21.2+~cs8.36.27-2 · all · trixie

      Fixed · Fixed: 4.19.2+~cs8.36.21-1

      usn · node-express · debian · 13

    • 4.21.2+~cs8.36.27-2 · all · trixie

      Fixed · Fixed: 4.19.2+~cs8.36.21-1

      usn · node-express · debian · 13

Observed:

References