Authorization Bypass Through User-Controlled Key Affecting github.com/emicklei/go-restful package, versions <2.16.0


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Social Trends
Exploit Maturity
Proof of Concept
EPSS
2.92% (86th percentile)

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 Learn

Learn about Authorization Bypass Through User-Controlled Key vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-GOLANG-GITHUBCOMEMICKLEIGORESTFUL-16153922
  • published23 Apr 2026
  • disclosed7 Jun 2022
  • creditM0rphling

Introduced: 7 Jun 2022

CVE-2022-1996  (opens in a new tab)
CWE-639  (opens in a new tab)

How to fix?

Upgrade github.com/emicklei/go-restful to version 2.16.0 or higher.

Overview

Affected versions of this package are vulnerable to Authorization Bypass Through User-Controlled Key which is capable of breaking CORS policy and allowing any page to make requests, and retrieve data on behalf of other users.

CVSS Base Scores

version 3.1