Description
http-cache-semantics through 4.2.0 contains a cache validation vulnerability in the _varyMatches() function that fails to properly validate Vary header wildcards due to byte-for-byte string comparison. Attackers can request URLs previously fetched by other clients to receive cached responses intended for different users, disclosing sensitive information across clients.
Severity (CVSS)
| Base score | 8.2 |
|---|---|
| Severity | High |
| Version | CVSS 4.0 |
| Vector | CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N |
| Provided by | CNA |
Weaknesses
- CWE-436 — Interpretation Conflict
Affected products
| Vendor | Product | Versions |
|---|---|---|
| kornelski | http-cache-semantics | 0 to <=4.2.0 |
References
- https://github.com/kornelski/http-cache-semantics/issues/57 (issue-tracking)
- https://github.com/kornelski/http-cache-semantics (product)
- https://github.com/kornelski/http-cache-semantics/blob/f01112e954b83cfa8765b633ba880e5e980aa54c/index.js#L483-L501 (technical-description)
- https://www.vulncheck.com/advisories/http-cache-semantics-through-4.2.0-cross-client-cache-disclosure-via-vary-wildcard (third-party-advisory)
Generated from the official CVE List on 19 Sep 2026 07:08 UTC.