# CVE-2024-47178: basic-auth-connect's callback uses time unsafe string comparison

- Severity: High 8.7 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.52%, higher than 45% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-09-30T15:09:59.513Z
- Modified: 2026-06-17T07:56:40.830Z
- Also known as: GHSA-7p89-p6hx-q4fw
- Weaknesses: CWE-208
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- expressjs basic-auth-connect: < 1.1.0; before 1.1.0
- basic-auth-connect (npm): before 1.1.0

## Every score

- GitHub_M: CVSS:4.0 8.7 High `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`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:4.0 High `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`
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`

## References

- <https://github.com/expressjs/basic-auth-connect/security/advisories/GHSA-7p89-p6hx-q4fw> (exploit, third-party-advisory, web)
- <https://github.com/expressjs/basic-auth-connect/commit/bac1e6a8530e1efd0028800b9b588a37adb0d203> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-47178> (advisory)
- <https://github.com/expressjs/basic-auth-connect> (package)

## Sources

- CVE List: [CVE-2024-47178](https://www.cve.org/CVERecord?id=CVE-2024-47178), CVE Terms of Use, modified 2024-09-30
- GitHub Advisory Database: [GHSA-7p89-p6hx-q4fw](https://github.com/advisories/GHSA-7p89-p6hx-q4fw), CC-BY-4.0, modified 2024-09-30
- NVD: [CVE-2024-47178](https://nvd.nist.gov/vuln/detail/CVE-2024-47178), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-47178 · Whole record: https://cve.day/CVE-2024-47178.json · Rebuilt by cve.day 2026-11-25T22:58:45.898Z
