This advisory has been withdrawn by its source. The report below is preserved for the record.
High · 7.5 Microsoft GHSA-ch52-4w7c-c8xp CVE-2026-93748
http-cache-semantics: Cross-User Cache Disclosure via max-stale Directive (CVE-2026-93748)
A flaw in http-cache-semantics (versions up to and including 4.2.0) allows unauthenticated attackers to abuse the client max-stale directive to retrieve cached responses belonging to other users, including session cookies. No fixed version is currently available.
By PatchBriefing ·
Produced automatically from official sources with the help of AI. How we work →
AI summary
A vulnerability has been disclosed in http-cache-semantics, a widely used npm package for interpreting HTTP caching rules. The issue, tracked as CVE-2026-93748, allows an unauthenticated attacker to exploit the client's max-stale directive to obtain cached responses that belong to other users, including session cookies transmitted via Set-Cookie headers. As of publication, no fixed version of the package is available.
What happened
http-cache-semantics, a library used to implement HTTP caching logic, contains a flaw in how it handles the client-supplied max-stale directive. According to the GitHub Security Advisory, the library fails to properly validate cache entries that were deliberately zeroed out for security reasons. By sending a request for the same URL with a large max-stale value, an attacker can cause a shared cache to return a stale, security-zeroed entry that still contains sensitive data belonging to another user, including Set-Cookie session credentials.
Technical cause
The root cause is classified as CWE-524, Use of Cache Containing Sensitive Information. The library's cache-freshness logic does not properly enforce invalidation of entries that were zeroed for security purposes when a client requests a stale response via the max-stale directive. This allows the zeroed-but-still-sensitive cached data, such as authentication cookies, to be served to a different requester than the one it was originally generated for.
Why it matters
Because the attack requires no authentication and no user interaction, any party able to send requests through a shared cache using this library could potentially retrieve session credentials belonging to other users. This could lead to session hijacking or account takeover if the disclosed cookie grants authenticated access elsewhere, depending on how the caching application uses http-cache-semantics.
Who is affected
Any system using the npm package http-cache-semantics in versions up to and including 4.2.0 is affected. This package is a dependency used within caching proxies and HTTP client/server libraries, so exposure may extend to downstream applications that rely on it for shared-cache behavior.
Affected versions
All versions of http-cache-semantics from version 0 through and including 4.2.0 are affected, according to the published affected-range data.
Fixes and mitigation
No fixed version has been published for this issue at the time of writing. Site owners and developers using http-cache-semantics should monitor the GitHub Security Advisory and the npm package registry for an update. Until a fix is released, operators of shared caches may wish to review their configuration and consider disabling or restricting the use of the max-stale directive where sensitive, user-specific responses could be cached.
Recommended action
Audit any use of http-cache-semantics in your dependency tree, particularly in shared caching infrastructure that could serve responses across different users. Since no fixed version currently exists, track the advisory for updates and apply a fix as soon as one is released. In the interim, evaluate whether your caching layer honors client max-stale directives and whether that behavior can be constrained for endpoints that return user-specific or authentication-related data.
PatchBriefing score
7.5 / 10 · High
Official CVSS: 7.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS 0.0060 (43 percentile)
Why this score
The PatchBriefing score equals the official CVSS score; when this article covers several vulnerabilities, the highest one. Signals such as known exploitation and EPSS are listed separately and do not change the score.
Affected versions
- http-cache-semantics <= 4.2.0
- vulnerable
- http-cache-semantics ≥ 0 ≤ 4.2.0
- vulnerable
Reported fixes
No fixed version has been published for this issue at the time of writing. Site owners and developers using http-cache-semantics should monitor the GitHub Security Advisory and the npm package registry for an update. Until a fix is released, operators of shared caches may wish to review their configuration and consider disabling or restricting the use of the max-stale directive where sensitive, user-specific responses could be cached.
How this was built
3 source records were collected, matched and used to prepare the report above.
-
GitHub Advisory Database database
-
NVD (NIST) database
-
Microsoft Security Update Guide vendor
Revision history
- Generated
- Generated
- Published
- Generated