CVE-2024-47178 json
basic-auth-connect's callback uses time unsafe string comparison
published 2024-09-30 2 y ago modified 2026-06-17 4 mo ago also GHSA-7p89-p6hx-q4fw , EUVD-2024-2748
- cvss
- 5.3
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.5%
- EPSS 0.5% chance of exploitation in 30 days, percentile 44%
- public exploits
- 0
- none known
Summary
basic-auth-connect is Connect's Basic Auth middleware in its own module. basic-auth-connect < 1.1.0 uses a timing-unsafe equality comparison that can leak timing information. This issue has been fixed in basic-auth-connect 1.1.0.
Patch / fix
- npm basic-auth-connect 1.1.0
- expressjs basic-auth-connect 1.1.0
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2024-47178 updated cvss 5.3
basic-auth-connect: timing-unsafe equality comparison can leak timing information
-
Red Hat Fuse 7 basic-auth-connect basic-auth-connectaffected: workaround, no fix planned “Out of support scope”
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 2 y ago
Exploit prediction
0.52% chance of exploitation in the next 30 days, higher than 44% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/expressjs/basic-auth-connect/security/advisories/GHSA-7p89-p6hx-q4fw referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 8.7 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N |
| CNA | 4.0 | 8.7 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| NVD | 3.1 | 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
| GitHub | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | basic-auth-connect | <1.1.0 |
1.1.0 |
Affected products
- expressjs basic-auth-connect
Classification
- Weakness
-
- CWE-208 Observable Timing Discrepancy
References
-
github.com
/expressjs/basic-auth-connect/commit/bac1e6a8530e1efd0028800b9b588a37adb0d203
web, patch
-
github.com
/expressjs/basic-auth-connect/security/advisories/GHSA-7p89-p6hx-q4fw
web, exploit, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2024-47178
advisory
-
github.com
/expressjs/basic-auth-connect
package
Sources
- CVE List CVE-2024-47178
- GitHub Advisory GHSA-7p89-p6hx-q4fw
- NVD CVE-2024-47178
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.