axios-cache-interceptor@1.9.1 vulnerabilities

Cache interceptor for axios

  • latest version

    1.11.4

  • latest non vulnerable version

  • first published

    4 years ago

  • latest version published

    13 hours ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the axios-cache-interceptor package. This does not include vulnerabilities belonging to this package’s dependencies.

    Fix vulnerabilities automatically

    Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.

    Fix for free
    VulnerabilityVulnerable Version
    • M
    Cache Poisoning

    axios-cache-interceptor is a Cache interceptor for axios

    Affected versions of this package are vulnerable to Cache Poisoning by ignoring the Vary HTTP header. An attacker can access unauthorized cached responses to obtain sensitive user data by sending requests with multiple different authorization tokens, as the cache does not differentiate based on the Authorization header when an upstream service uses the Vary: Authorization response header.

    Note: This is only exploitable if the application is server-side, handles requests from multiple users with different authorization tokens, and the upstream service relies on the Vary header to differentiate cache entries.

    How to fix Cache Poisoning?

    Upgrade axios-cache-interceptor to version 1.11.1 or higher.

    <1.11.1