express-basic-auth Timing Attack due to native string comparison instead of constant time string comparison
Key facts
- Attack vector
- —
- Privileges required
- —
- User interaction
- —
- Attack complexity
- —
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- —
- Fix status
- Fixed
No CVSS vector from any source. Fix status from GitHub. Impact type from CWE-208.
Summary
Versions of `express-basic-auth` prior to 1.1.7 are vulnerable to Timing Attacks. The package uses native string comparison instead of a constant time string comparison, which may lead to Timing Attacks. Timing Attacks can be used to increase the efficiency of brute-force attacks by removing the exponential increase in entropy gained from longer secrets. ## Recommendation Upgrade to version 1.1.7 or later.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | express-basic-auth (npm) | before 1.1.7 | 1.1.7 | Patch available | GHSA-c35v-qwqg-87jc |
- express-basic-auth (npm) Vendor— Affected before 1.1.7 Fixed in 1.1.7 Patch available GHSA-c35v-qwqg-87jc
Remediation
- Fix · GHSA-c35v-qwqg-87jc express-basic-auth (npm) Fixed in 1.1.7 Advisory →
Timeline
- 2026-10-03 Threatist record created from GHSA-c35v-qwqg-87jc
References
Other 6
- https://github.com/webpack-contrib/webpack-bundle-analyzer/issues/263
- https://github.com/LionC/express-basic-auth/pull/20
- https://github.com/LionC/express-basic-auth/pull/21
- https://github.com/LionC/express-basic-auth/commit/00bb29fdd638f5cda8025d4398be97d528ce3f6f
- https://github.com/LionC/express-basic-auth
- https://www.npmjs.com/advisories/827
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences