CVE-2024-47178
HIGH 8.7CVSS 4.0basic-auth-connect's callback uses time unsafe string comparison
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.
- Published
- 30 Sep 2024
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-208
- Also known as
- GHSA-7p89-p6hx-q4fw
- Sources
- NVDJSONOSV GHSA-7p89-p6hx-q4fwJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | HIGH 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 |
| OSV | GitHub | CVSS 4.0 | 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 | |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | expressjs | basic-auth-connectcpe:2.3:a:expressjs:basic-auth-connect:*:*:*:*:*:node.js:*:* |
< 1.1.0 | 1.1.0 |
| OSV | npm | basic-auth-connect | < 1.1.0 | 1.1.0 |
References
- https://github.com/expressjs/basic-auth-connect/commit/bac1e6a8530e1efd0028800b9b588a37adb0d203 · Patch, WEB
- https://github.com/expressjs/basic-auth-connect/security/advisories/GHSA-7p89-p6hx-q4fw · Exploit, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-47178 · ADVISORY
- https://github.com/expressjs/basic-auth-connect · PACKAGE
History
- 25 Nov 2026 20:56 UTC · NVD: first stored (published 30 Sep 2024)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 30 Sep 2024)