Cache Deception Vulnerability in Better Call Package

better-call Updated 14 Dec 2025

Summary

11/07/2025
MODERATE
Yes i
Moderate
4.9

GHSA-hq75-xg7r-rx6c: Better Call routing bug can lead to Cache Deception. Affects better-call versions < 1.0.12. Fixed in 1.0.12. 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

Better Call is an npm package designed to facilitate routing in applications, particularly those that require authentication and session management. It is often used in conjunction with other libraries, such as better-auth, to streamline user authentication processes. However, due to its reliance on CDN caching for static assets, it is susceptible to cache deception attacks, which can lead to unauthorized access to sensitive user data.

Vulnerability Detail

The vulnerability arises from insufficient path sanitization in the request processing logic of the Better Call library. Specifically, the library splits the request path using a base path configuration but fails to validate the remaining path components adequately. This oversight allows attackers to craft requests that appear to be legitimate static asset requests, which can bypass CDN cache exclusion rules. As a result, sensitive data may be served to unauthorized users, exposing user sessions and personal information.

How To Fix

Minimum fixed version

1.0.12

This is the first release that contains the fix.

npm install better-call@1.0.12

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

Workaround

As a temporary workaround, consider disabling CDN caching for routes that handle sensitive data until you can update to the patched version. This can help mitigate the risk of cache deception attacks while you implement the necessary updates.

Conclusion

The Better Call package has a cache deception vulnerability that can expose sensitive user data due to insufficient path sanitization. It is crucial to update to version 1.0.12 or later to mitigate this risk. Additionally, using tools like Vulert can help monitor for vulnerabilities in your application.

See every vulnerability recorded for better-call →

Share this vulnerability

FAQ

Cache deception is a type of attack where an attacker tricks a caching mechanism into serving sensitive data to unauthorized users by crafting requests that appear to be legitimate.

You can check if your application is affected by using Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to analyze your package-lock.json without any signup.

If exploited, this vulnerability can lead to unauthorized access to user sessions and personal data, compromising user privacy and security.

Yes, you can temporarily disable CDN caching for sensitive routes to reduce the risk of cache deception attacks until you can update to the patched version.

If an immediate update is not possible, implement the workaround by disabling CDN caching for affected routes and monitor your application for any suspicious activity.

How To Fix

Minimum fixed version

1.0.12

This is the first release that contains the fix.

npm install better-call@1.0.12

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