CVE-2020-26160

jwt-go: access restriction bypass vulnerability

Published Sep 30, 2020 CVSS 3.1 · 7.5 High EPSS 2.2% KEV · Not listed
Description
jwt-go before 4.0.0-preview1 allows attackers to bypass intended access restrictions in situations with []string{} for m["aud"] (which is allowed by the specification). Because the type assertion fails, "" is the value of aud. This is a security problem if the JWT token is presented to a service that lacks its own audience check.

Analysis

No analysis available yet

Remediation

No remediation available yet

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2021-1212 jwt-go before 4.0.0-preview1 allows attackers to bypass intended access restrictions in situations with []string{} for m["aud"] (which is allowed by the specification). Because the type assertion fails, "" is the value of aud. This is a security problem if the JWT token is presented to a service that lacks its own audience check.
Github GHSA Github GHSA GHSA-w73w-5m7g-f7qc Authorization bypass in github.com/dgrijalva/jwt-go
History

No history.

Weaknesses
  • CWE-284

    Improper Access Control

  • CWE-287

    Improper Authentication

  • CWE-755

    Improper Handling of Exceptional Conditions

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Aug 4, 2024, 3:49 PM
Reserved
Sep 30, 2020, 12:00 AM
Status
Modified
Published
Sep 30, 2020, 6:15 PM
Modified
Jun 17, 2026, 3:07 AM
Severity
Moderate
Public date
Sep 15, 2020, 12:00 AM