HTTP Header Injection Affecting github.com/oauth2-proxy/oauth2-proxy/v7/pkg/middleware package, versions <7.13.0


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-GOLANG-GITHUBCOMOAUTH2PROXYOAUTH2PROXYV7PKGMIDDLEWARE-13876663
  • published12 Nov 2025
  • disclosed10 Nov 2025
  • creditSid 猫

Introduced: 10 Nov 2025

NewCVE-2025-64484  (opens in a new tab)
CWE-644  (opens in a new tab)

How to fix?

Upgrade github.com/oauth2-proxy/oauth2-proxy/v7/pkg/middleware to version 7.13.0 or higher.

Overview

Affected versions of this package are vulnerable to HTTP Header Injection via the processing of HTTP headers containing underscores, which are normalized to dashes by certain upstream applications. Authenticated users can escalate privileges by injecting specially crafted X_Forwarded-* headers that bypass filtering logic. This is only exploitable if the upstream application normalizes underscores to dashes in HTTP headers.

Workaround

This vulnerability can be mitigated by ensuring that filtering and processing logic in upstream services do not treat underscores and hyphens in headers as equivalent.

CVSS Base Scores

version 4.0
version 3.1