PT-2020-16317

CVE-2020-26160

·

Published

2020-09-30

·

Updated

2026-10-01

Description by

CVSS 2.0
7.8
High
MetricsAV:N/AC:L/Au:N/C:C/I:N/A:N
Name of the Vulnerable Software and Affected Versions jwt-go versions prior to 4.0.0-preview1 jwt-go before 4.0.0-preview1
Description The issue allows attackers to bypass intended access restrictions in situations where the audience claim in a JWT token is an array of strings, rather than a single string. This occurs because the type assertion fails when m["aud"] is []string{}, resulting in an empty string as the value of aud. This poses a security problem if the JWT token is presented to a service lacking its own audience check.
Recommendations For jwt-go versions prior to 4.0.0-preview1, migrate to golang-jwt at version 3.2.1. As a temporary workaround, consider implementing an audience check in services that verify JWT tokens to prevent bypassing of intended access restrictions.
Exploitability
Fix
Impacts
Vendors
Affected products
Related identifiers
GHSA-W73W-5M7G-F7QC
AZL-41684
CLEANSTART-2025-CI95096
GO-2020-0017
OPENSUSE-SU-2024:11428-1
OPENSUSE-SU-2024:11668-1
RHSA-2021:2042
SNYK-GOLANG-GITHUBCOMDGRIJALVAJWTGO-596515
Found an issue in the description? Have something to add? Feel free to write us 👾