{"id":"CVE-2024-47178","published":"2024-09-30T15:09:59Z","modified":"2024-09-30T16:01:32Z","title":"basic-auth-connect's callback uses time unsafe string comparison","vendor":"expressjs","product":"basic-auth-connect","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.7,"severity":"HIGH","version":"4.0","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00522,"percentile":0.45226,"provenance":"source"},"cwes":[{"id":"CWE-208","name":"Observable Timing Discrepancy"}],"references":[{"url":"https://github.com/expressjs/basic-auth-connect/security/advisories/GHSA-7p89-p6hx-q4fw","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/expressjs/basic-auth-connect/commit/bac1e6a8530e1efd0028800b9b588a37adb0d203","tags":["x_refsource_MISC"]}],"priority":{"score":15.1,"factors":[{"name":"EPSS percentile","points":9.05},{"name":"CVSS severity","points":6.09}]},"vendorSlug":"expressjs","affectedVersions":[{"vendor":"expressjs","product":"basic-auth-connect","versions":["< 1.1.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-09-30T16:01:21.696056Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"basic-auth-connect","vulnerableRanges":["<1.1.0"],"patched":["1.1.0"],"from":["GHSA-7p89-p6hx-q4fw"],"provenance":"source"}],"summary":{"text":"The basic-auth-connect module, Connect's Basic Auth middleware from expressjs, contains a flaw in its callback where credentials are checked with a timing-unsafe equality comparison, allowing timing information to leak. An attacker with network access can exploit this without authentication, requiring no user interaction and no special configuration, to observe response timing and gain information about the credential comparison.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:28:40Z"},"euvd":{"id":"EUVD-2024-2748","exploited":false,"provenance":"source"}}