# CVE-2026-27480: Static Web Server: Timing-Based Username Enumeration in Basic Authentication

- Severity: Medium 5.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A: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.39%, higher than 35% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-02-20T18:25:27.000Z
- Modified: 2026-06-17T10:27:13.590Z
- Also known as: GHSA-qhp6-635j-x7r2
- Weaknesses: CWE-204
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

Static Web Server (SWS) is a production-ready web server suitable for static web files or assets. In versions 2.1.0 through 2.40.1, a timing-based username enumeration vulnerability in Basic Authentication allows attackers to identify valid users by exploiting early responses for invalid usernames, enabling targeted brute-force or credential-stuffing attacks. SWS checks whether a username exists before verifying the password, causing valid usernames to follow a slower code path (e.g., bcrypt hashing) while invalid usernames receive an immediate 401 response. This timing discrepancy allows attackers to enumerate valid accounts by measuring response-time differences. This issue has been fixed in version 2.41.0.

(As written by CVE List.)

## Affected

- static-web-server static-web-server: >= 2.1.0, < 2.41.0
- static-web-server (crates.io): from 2.1.0 before 2.41.0
- static-web-server static_web_server: from 2.1.0 before 2.41.0

## Every score

- GitHub_M: 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`
- GitHub: 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/static-web-server/static-web-server/security/advisories/GHSA-qhp6-635j-x7r2> (exploit, vendor-advisory, web)
- <https://github.com/static-web-server/static-web-server/commit/7bf0fd425eb10dac9bf9ef5febce12c4dd039ce1> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-27480> (advisory)
- <https://github.com/static-web-server/static-web-server> (package)

## Sources

- CVE List: [CVE-2026-27480](https://www.cve.org/CVERecord?id=CVE-2026-27480), CVE Terms of Use, modified 2026-02-24
- GitHub Advisory Database: [GHSA-qhp6-635j-x7r2](https://github.com/advisories/GHSA-qhp6-635j-x7r2), CC-BY-4.0, modified 2026-02-23
- NVD: [CVE-2026-27480](https://nvd.nist.gov/vuln/detail/CVE-2026-27480), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-27480 · Whole record: https://cve.day/CVE-2026-27480.json · Rebuilt by cve.day 2026-11-25T22:59:14.611Z
