CVE-2025-64484: OAuth2-Proxy Header Smuggling Vulnerability Leading to Privilege Escalation

oauth2-proxy Updated 14 Nov 2025

Summary

12/11/2025
Yes i
High
Not published

CVE-2025-64484: OAuth2-Proxy vulnerable to header smuggling via underscore, leading to potential privilege escalation. Affects oauth2-proxy versions < 7.13.0. Fixed in 7.13.0. How to fix ↓

Also tracked for

The same CVE-2025-64484 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.

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

OAuth2-Proxy is an open-source tool designed to act as a reverse proxy or middleware for applications, facilitating OAuth2 authentication. It is widely used in various setups, including those utilizing WSGI-based frameworks like Django, Flask, and FastAPI. The tool's primary function is to manage authentication and authorization for applications, but it has been found vulnerable to a specific issue that can lead to security risks.

Vulnerability Detail

The vulnerability arises from OAuth2-Proxy's handling of HTTP headers, specifically the normalization of underscores to dashes. In versions prior to 7.13.0, authenticated users could exploit this by injecting underscore variants of X-Forwarded-* headers, bypassing the proxy's filtering logic. This could potentially allow attackers to escalate privileges in the upstream application, although the authentication and authorization mechanisms of OAuth2 Proxy itself remain intact. The issue is particularly concerning for applications that do not properly handle such header variations.

How To Fix

Minimum fixed version

7.13.0

This is the first release that contains the fix.

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

Workaround

As a temporary workaround, ensure that the filtering and processing logic in upstream services does not treat underscores and hyphens in headers equivalently. This can be done by implementing strict header validation in the application code to differentiate between these characters.

Conclusion

CVE-2025-64484 highlights a significant vulnerability in OAuth2-Proxy that can lead to privilege escalation through header smuggling. Users are strongly advised to update to version 7.13.0 or later to mitigate this risk. For those unable to update immediately, implementing strict header validation can serve as a temporary measure.

See every vulnerability recorded for oauth2-proxy →

Share this vulnerability

FAQ

The impact includes potential privilege escalation in applications that rely on OAuth2-Proxy for authentication, allowing attackers to bypass security measures.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

All versions prior to 7.13.0 are affected by this vulnerability.

Yes, updating to version 7.13.0 or later addresses this vulnerability and secures your installation against the described issue.

If immediate updating is not possible, implement strict header validation in your upstream services as a temporary workaround.

Related vulnerabilities

Recent vulnerabilities recorded for oauth2-proxy.

How To Fix

Minimum fixed version

7.13.0

This is the first release that contains the fix.

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