CVE-2026-27480
MEDIUM 5.3CVSS 3.1Static Web Server affected by timing-based username enumeration in Basic Authentication due to early response on invalid usernames
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.
- Published
- 21 Feb 2026
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-204
- Also known as
- GHSA-qhp6-635j-x7r2
- Sources
- NVDJSONOSV GHSA-qhp6-635j-x7r2JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | 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 |
| OSV | GitHub | 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 | static-web-server | static_web_servercpe:2.3:a:static-web-server:static_web_server:*:*:*:*:*:rust:*:* |
>= 2.1.0, < 2.41.0 | 2.41.0 |
| OSV | crates.io | static-web-server | >= 2.1.0, < 2.41.0 | 2.41.0 |
References
- https://github.com/static-web-server/static-web-server/commit/7bf0fd425eb10dac9bf9ef5febce12c4dd039ce1 · Patch, WEB
- https://github.com/static-web-server/static-web-server/security/advisories/GHSA-qhp6-635j-x7r2 · Exploit, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-27480 · ADVISORY
- https://github.com/static-web-server/static-web-server · PACKAGE
History
- 25 Nov 2026 21:01 UTC · NVD: first stored (published 21 Feb 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 20 Feb 2026)