Skip to main content

axios-cache-interceptor CVE-2025-69202

MEDIUM
Use of Cache Containing Sensitive Information (CWE-524)
2025-12-29 security-advisories@github.com
6.0
CVSS 4.0 · Vendor: github
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain valid low-privilege auth token
  2. Delivery
    Send request to cached multi-tenant endpoint
  3. Exploit
    Library keys cache by URL only, ignoring Vary: Authorization
  4. Execution
    Receive another user's cached response
  5. Impact
    Authorization bypass and cross-session data disclosure

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V3 - Web Frontend Security Cache-Control for sensitive pages
Exploitation Conditions

Exploitable only in server-side deployments (APIs, proxies, backend services) that (1) use axios-cache-interceptor < 1.11.1 to cache requests to an upstream service, (2) serve multiple users with different Authorization tokens through the same cache instance, and (3) talk to an upstream that relies on the 'Vary: Authorization' response header to differentiate cached content. Limiting factors: the attacker must hold a valid auth token (PR:L) and success depends on another user's response already being cached for the same URL, making it timing/configuration dependent (AC:H/AT:P). Browser/client-side single-session applications are explicitly NOT affected, and the issue does not arise unless the upstream actually emits 'Vary: Authorization'.

Impact

This is a genuine but conditional authorization-bypass/information-disclosure flaw (CWE-524) whose real-world risk is moderate rather than urgent. The input CVSS 4.0 vector (AV:N/AC:H/AT:P/PR:L/UI:N, VC:H) scores 6.0 Medium, and the individual signals agree with that: AC:H and AT:P reflect that exploitation depends on cache-timing and a specific server/upstream configuration rather than a deterministic single request, PR:L reflects that the actor needs a valid (if low-privilege) auth token, and VC:H captures the cross-tenant data leakage. The multi-source signals are internally consistent and point to low urgency: EPSS is only 0.32% (22nd percentile), the CVE is NOT in CISA KEV, and there is no evidence of active exploitation. A public proof-of-concept DOES exist (in the GHSA advisory), but POC availability is a distinct signal from active exploitation and should not be conflated with it. The main caveat is that impact is highly deployment-dependent - it only manifests in server-side, multi-tenant proxy/API patterns where the upstream relies on 'Vary: Authorization' - so a blanket 'high-CVSS' reading would overstate risk; conversely, in an affected multi-tenant backend the confidentiality impact (leaking one user's data to another) is serious. No SSVC decision record was provided in the input, so SSVC exploitation/automatable/technical-impact values cannot be cross-referenced here.

Exploit ScenarioDerived

A Node.js backend uses axios-cache-interceptor to cache responses from an upstream API that returns per-user data and sets 'Vary: Authorization'. Because the cache key is derived only from the URL, user 123's cached response is served to user 456 (and vice versa) on a subsequent request to the same URL, leaking data across authenticated sessions. A working proof-of-concept demonstrating this cross-token cache collision is published in the GitHub Security Advisory (GHSA-x4m5-4cw8-vc44).

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Oct 01, 2026

Cached HTTP responses can be served to the wrong authenticated user in axios-cache-interceptor before 1.11.1, leaking data across sessions and bypassing authorization checks in server-side deployments. The library builds its cache key from the request URL alone and ignores the upstream's Vary: Authorization response header, so when a backend, proxy, or API serves multiple users with different bearer tokens through a single cache instance, an authenticated attacker holding a valid low-privileged token (CVSS PR:L) who requests the same URL can receive another user's cached response; exploitation is timing- and configuration-dependent because the victim's response must already be cached. Publicly available exploit code exists (a full proof-of-concept is published in the GitHub advisory), while EPSS is low at 0.32% (22nd percentile) and CISA KEV does not list this issue, making this a genuine but conditional authorization-bypass flaw of moderate rather than urgent risk.

RemediationAI

Vendor-released patch: upgrade axios-cache-interceptor to version 1.11.1 or later - no application code changes are required because automatic Vary header support is enabled by default in that release, so each authorization value gets its own cache entry (see the advisory at https://github.com/arthurfiorette/axios-cache-interceptor/security/advisories/GHSA-x4m5-4cw8-vc44 and the upstream commit https://github.com/arthurfiorette/axios-cache-interceptor/commit/49a808059dfc081b9cc23d48f243d55dfce15f01). If an immediate upgrade is not possible, the actionable compensating controls are: disable caching for authenticated upstream calls (set cache: false on those requests, or in the worst case remove the interceptor from the shared client), which eliminates the leak but shifts full request load and latency back onto the upstream service; or supply a custom cacheKey generator that explicitly incorporates the Authorization header value into the key, which restores per-user isolation at the cost of maintaining bespoke key logic and increasing cache entry count and memory usage. Restricting all upstream traffic that relies on Vary to a single shared credential removes the cross-user exposure but also removes the multi-tenant authorization model, and should be treated only as a temporary containment step until 1.11.1 is deployed.

Affected Packages

npm axios-cache-interceptor fix: 1.11.1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in npm

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

axios-cache-interceptor is a caching layer for the Axios HTTP client, used mainly in Node.js server-side applications such as APIs, proxies, and backend services (CPE: cpe:2.3:a:axios-cache-interceptor:axios_cache_interceptor:*:*:*:*:*:node.js:*:*). The root cause is CWE-524 (Use of Cache Containing Sensitive Information): the cache key was generated only from the request URL, so request headers such as Authorization were never part of the key, and the library ignored the upstream's Vary response header, which HTTP semantics (RFC 9111) define as the mechanism for indicating that a response varies by a named request header. When an upstream returns Vary: Authorization, every token should produce a distinct cache entry, but vulnerable versions collapsed them into one, causing cross-session cache poisoning and information disclosure. The fix commit 49a808059dfc081b9cc23d48f243d55dfce15f01 reworks header handling in the request interceptor and vary-extraction code (migrating from plain header objects to AxiosHeaders .get()/.set() accessors, updating CachedResponseMeta.vary types, and adjusting the stale-request logic), and from 1.11.1 onward automatic Vary support is enabled by default so the authorization header value is folded into the cache key. Note the vulnerability only manifests when the upstream service actually emits Vary: Authorization and the deployment shares one cache across multiple authenticated identities; browser/client-side single-session applications are explicitly not affected.

Know when Axios Cache Interceptor gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (github) PRIMARY 6.0 MEDIUM
CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:H/VI:N/VA:N/SC:L/SI:L/SA:N
vuln.today AI 7.1 HIGH

AC:H/PR:L because a valid token plus a pre-populated cross-user cache entry are needed; S:C and C:H because a cache-library flaw leaks another authorization context's data, with I:L for stale/incorrect served data and A:N.

3.1 AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:N
4.0 AV:N/AC:H/AT:P/PR:L/UI:N/VC:H/VI:N/VA:N/SC:L/SI:L/SA:N

Primary rating from Vendor (github).

CVSS VectorVendor: github

Attack Vector
Network
Attack Complexity
High
Attack Requirements
Present
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
Low
Subsequent system: Integrity
Low
Subsequent system: Availability
None

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.3%
Top 78% exploitable
Prevalence
Medium
popular optional axios caching library, but only server-side multi-tenant use is affected
Exploit
POC
Public exploit code exists
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC Yes
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

50
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +30
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Affected Products (CPE)CVE.org

cpe:2.3:a:axios-cache-interceptor:axios_cache_interceptor:*:*:*:*:*:node.js:*:*

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy