CVEfocus › CVE database › CVE-2024-43796

CVE-2024-43796express vulnerable to XSS via response.redirect()

CVSS 5.0 MediumEPSS 0.6% (higher than 45% of CVEs)Published 2024-09-10Updated 2024-09-10Assigner: GitHub_M

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.

CWE-79

What to do

Fixed builds are available from Debian, npm: see the table below for the fixed version per release.

Debian, Red Hat, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

3Fixed
11Fix pending
3Will not fix
17Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04node-expressNot affected
vulnerable_code_not_present
Ubuntu 25.10node-expressNot affected
vulnerable_code_not_present
Ubuntu 24.04node-expressFix pending4.19.2+~cs8.36.21-1ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2024-43796
Ubuntu 22.04node-expressFix pending4.17.3+~4.17.13-1ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2024-43796
Ubuntu 20.04node-expressFix pending4.17.1-2ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2024-43796
Ubuntu 18.04node-expressFix pending4.1.1~dfsg-1ubuntu0.18.04.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2024-43796
Ubuntu 16.04node-expressFix pending4.1.1~dfsg-1ubuntu0.16.04.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2024-43796
Debian 14node-expressFixed4.21.0+~cs8.36.26-1DEBIAN-CVE-2024-43796
Debian 13node-expressFixed4.21.0+~cs8.36.26-1DEBIAN-CVE-2024-43796
Debian 12node-expressFix pendingDEBIAN-CVE-2024-43796
Red Hat Enterprise Linux 10cldr-emoji-annotationFix pending
Affected
Red Hat Enterprise Linux 10cldr-emoji-annotation-dtdFix pending
Affected
Red Hat Enterprise Linux 10cockpit-ha-clusterNot affected
Red Hat Enterprise Linux 10pcsNot affected
Red Hat Enterprise Linux 10pcs-snmpNot affected
Red Hat Enterprise Linux 9cldr-emoji-annotationFix pending
Affected
Red Hat Enterprise Linux 9cldr-emoji-annotation-dtdFix pending
Affected
Red Hat Enterprise Linux 9gjsNot affected
Red Hat Enterprise Linux 9gjs-develNot affected
Red Hat Enterprise Linux 9pcsNot affected
Red Hat Enterprise Linux 9pcs-snmpNot affected
Red Hat Enterprise Linux 9polkitNot affected
Red Hat Enterprise Linux 9polkit-develNot affected
Red Hat Enterprise Linux 9polkit-docsNot affected
Red Hat Enterprise Linux 9polkit-libsNot affected
Red Hat Enterprise Linux 8cldr-emoji-annotationFix pending
Affected
Red Hat Enterprise Linux 8mozjs60Not affected
Red Hat Enterprise Linux 8mozjs60-develNot affected
Red Hat Enterprise Linux 8pcsNot affected
Red Hat Enterprise Linux 8pcs-snmpNot affected
Red Hat Enterprise Linux 7thunderbirdWill not fix
Out of support scope
Red Hat Enterprise Linux 6firefoxWill not fix
Out of support scope
Red Hat Enterprise Linux 6thunderbirdWill not fix
Out of support scope
npm libraryexpressFixed5.0.0GHSA-qw6h-vgh9-j6wx

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.