CVE-2025-69202: axios-cache-interceptor Vulnerable to Cache Poisoning via Ignored HTTP Vary Header

axios-cache-interceptor Updated 30 Dec 2025

Summary

30/12/2025
Yes i
Moderate
6.0

CVE-2025-69202: axios-cache-interceptor Vulnerable to Cache Poisoning via Ignored HTTP Vary Header. Affects axios-cache-interceptor versions < 1.11.1. Fixed in 1.11.1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

axios-cache-interceptor is a popular library in the npm ecosystem that enables caching of HTTP requests made with Axios. It is designed to enhance performance by reducing the number of requests to upstream services. However, this library has a critical vulnerability that arises from its method of generating cache keys, which does not take into account the Authorization header. This oversight can lead to serious security issues, particularly in server-side applications that handle requests from multiple users with different authentication tokens.

Vulnerability Detail

The vulnerability stems from the way axios-cache-interceptor generates cache keys solely based on the URL, ignoring important request headers such as Authorization. When a server responds with a Vary: Authorization header, indicating that the response can differ based on the auth token, axios-cache-interceptor fails to account for this, resulting in all requests sharing the same cache. This can lead to authorization bypass, where users receive incorrect cached data, potentially exposing sensitive information across different authenticated sessions.

How To Fix

Minimum fixed version

1.11.1

This is the first release that contains the fix.

npm install axios-cache-interceptor@1.11.1

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

If upgrading is not immediately possible, consider implementing a custom caching strategy that includes the Authorization header in the cache key generation. Below is an example of how to manually create a cache key that includes the Authorization header:

const cacheKey = `${url}-${authHeader}`;
const response = await cachedAxios.get(url, { headers: { Authorization: authHeader, cacheKey } });

Conclusion

The axios-cache-interceptor library has a significant vulnerability that can lead to cache poisoning and authorization bypass. It is crucial for developers using this library in server-side applications to upgrade to version 1.11.1 or later to mitigate the risk. Implementing a custom caching strategy can serve as a temporary workaround until the upgrade is completed.

See every vulnerability recorded for axios-cache-interceptor →

Share this vulnerability

FAQ

The vulnerability can lead to authorization bypass, where users may receive cached responses intended for other users, exposing sensitive data.

Server-side applications that use axios-cache-interceptor to cache requests from multiple users with different authentication tokens are affected.

You can use Vulert, which monitors open-source vulnerabilities in your software. Check your application against this vulnerability using the Vulert playground at Vulert Scanner.

The CVSS score of this vulnerability is 6.0, indicating a moderate level of severity.

No, the upgrade to version 1.11.1 or later does not require any code changes as the protection is automatic.

How To Fix

Minimum fixed version

1.11.1

This is the first release that contains the fix.

npm install axios-cache-interceptor@1.11.1

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback