Vulnerability · Published Sep 30, 2024 · Assigned by GitHub_M
CVE-2024-47178basic-auth-connect's callback uses time unsafe string comparison
High 8.7
In plain English
A high-severity security flaw in basic-auth-connect from expressjs. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 44% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 4.0)8.7High
Exploit odds (30 days)0.5%top 55.5% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | basic-auth-connect | 1.1.0 | GHSA-7p89-p6hx-q4fw |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| expressjs | basic-auth-connect | < 1.1.0 |
Weakness: CWE-208 · Vector: 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