Improper Restriction of Security Token Assignment Affecting github.com/apache/answer/internal/base/middleware package, versions <2.0.1


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.45% (36th 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 IDSNYK-GOLANG-GITHUBCOMAPACHEANSWERINTERNALBASEMIDDLEWARE-17339224
  • published15 Jun 2026
  • disclosed10 Jun 2026
  • creditSho Odagiri

Introduced: 10 Jun 2026

CVE-2026-25700  (opens in a new tab)
CWE-1259  (opens in a new tab)

How to fix?

Upgrade github.com/apache/answer/internal/base/middleware to version 2.0.1 or higher.

Overview

Affected versions of this package are vulnerable to Improper Restriction of Security Token Assignment due to the failure to invalidate previously issued administrative tokens after an administrator account is suspended, deleted, or deactivated. An attacker can maintain unauthorized access to administrative APIs by using a still-valid token.

CVSS Base Scores

version 4.0
version 3.1