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.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
kornelski http-cache-semantics
Default version status: unaffected
0 to ≤ 4.2.0affected
pkg:npm/http-cache-semanticsReferences
- https://github.com/kornelski/http-cache-semantics/issues/57 ↗
- https://github.com/kornelski/http-cache-semantics ↗
- https://github.com/kornelski/http-cache-semantics/blob/f01112e954b83cfa8765b633ba880e5e980aa54c/index.js#L483-L501 ↗
- https://www.vulncheck.com/advisories/http-cache-semantics-through-4.2.0-cross-client-cache-disclosure-via-vary-wildcard ↗