{"id":"CVE-2026-27480","published":"2026-02-21T09:14:30Z","modified":"2026-02-24T18:13:51Z","title":"Static Web Server: Timing-Based Username Enumeration in Basic Authentication","vendor":"static-web-server","product":"static-web-server","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00388,"percentile":0.3375,"provenance":"source"},"cwes":[{"id":"CWE-204","name":"Observable Response Discrepancy"}],"references":[{"url":"https://github.com/static-web-server/static-web-server/security/advisories/GHSA-qhp6-635j-x7r2","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/static-web-server/static-web-server/commit/7bf0fd425eb10dac9bf9ef5febce12c4dd039ce1","tags":["x_refsource_MISC"]}],"priority":{"score":10.5,"factors":[{"name":"EPSS percentile","points":6.75},{"name":"CVSS severity","points":3.71}]},"vendorSlug":"static-web-server","affectedVersions":[{"vendor":"static-web-server","product":"static-web-server","versions":[">= 2.1.0, < 2.41.0"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-02-24T18:13:36.026175Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"crates.io","package":"static-web-server","vulnerableRanges":[">=2.1.0, <2.41.0"],"patched":["2.41.0"],"from":["GHSA-qhp6-635j-x7r2"],"provenance":"source"}],"summary":{"text":"The flaw is a timing-based username enumeration weakness in the Basic Authentication handling of Static Web Server (static-web-server), which checks whether a username exists before verifying the password, so valid and invalid usernames produce measurably different response times. An attacker with network access and no authentication can measure those response-time differences to identify valid accounts, which can then be used for targeted brute-force or credential-stuffing attacks, with no user interaction or special configuration required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:02:35Z"},"euvd":{"id":"EUVD-2026-7717","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2024-32966","published":"2024-05-01","fixed":"2.30.0","kev":false},{"cve":"CVE-2025-67487","published":"2025-12-09","fixed":"2.40.1","kev":false,"link":{"from":"CVE-2025-67487","to":"CVE-2026-27480","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"crates.io:static-web-server","fromFixed":"2.40.1","toFixed":"2.41.0","daysApart":74}]}},{"cve":"CVE-2026-27480","published":"2026-02-21","fixed":"2.41.0","kev":false}],"package":"crates.io:static-web-server"}}