CVE Catalog

CVE-2025-69202

MediumCVSS 6.5
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.32%

23th percentile - higher than 23% of all known CVEs

Summary

Axios Cache Interceptor is a cache interceptor for axios. Prior to version 1.11.1, when a server calls an upstream service using different auth tokens, axios-cache-interceptor returns incorrect cached responses, leading to authorization bypass. The cache key is generated only from the URL, ignoring request headers like Authorization. After v1.11.1, automatic Vary header support is enabled by default.

Risk Assessment

Server-side applications using axios-cache-interceptor to cache requests to upstream services may return incorrect cached data, bypassing authorization checks and leaking user data across different authenticated sessions. Browser/client-side applications (single user per browser session) are not affected.

Recommendation

Update axios-cache-interceptor to version 1.11.1 or later, which by default supports the Vary header and includes the authorization token in the cache key. Ensure upstream services correctly set the Vary: Authorization header.

Related vulnerabilities

Original NVD description (English source)

Axios Cache Interceptor is a cache interceptor for axios. Prior to version 1.11.1, when a server calls an upstream service using different auth tokens, axios-cache-interceptor returns incorrect cached responses, leading to authorization bypass. The cache key is generated only from the URL, ignoring request headers like `Authorization`. When the server responds with `Vary: Authorization` (indicating the response varies by auth token), the library ignores this, causing all requests to share the same cache regardless of authorization. Server-side applications (APIs, proxies, backend services) that use axios-cache-interceptor to cache requests to upstream services, handle requests from multiple users with different auth tokens, and upstream services replies on `Vary` to differentiate caches are affected. Browser/client-side applications (single user per browser session) are not affected. Services using different auth tokens to call upstream services will return incorrect cached data, bypassing authorization checks and leaking user data across different authenticated sessions. After `v1.11.1`, automatic `Vary` header support is now enabled by default. When server responds with `Vary: Authorization`, cache keys now include the authorization header value. Each user gets their own cache.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS