Skip to content
Heist/ feed
Back to feed
HighFix available

golang-github-dgrijalva-jwt-go — security advisory

Type: advisorySources: OSVAdvisory ID: DEBIAN-CVE-2020-26160

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.

Products
golang-github-dgrijalva-jwt-go
Affected versions
Not specified
Fixed versions
3.2.0-3
CVEs
CVE-2020-26160
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 13:12 UTC · Revision 1

Source evidence

DEBIAN-CVE-2020-26160

core-osv · Original source

Published 30 Sept 2020, 18:15 UTC

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.

osv:DEBIAN-CVE-2020-26160

golang-github-dgrijalva-jwt-go

Fixed versions: 3.2.0-3

Complete source record
{
  "id": "78ee29d2c438326c89d9b7fe61700c8205f9cdc91548fac7badfd2705b5a18f6",
  "url": "https://osv.dev/vulnerability/DEBIAN-CVE-2020-26160",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "DEBIAN-CVE-2020-26160",
    "summary": "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.",
    "evidence": "osv:DEBIAN-CVE-2020-26160",
    "products": [
      {
        "name": {
          "value": "golang-github-dgrijalva-jwt-go",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "3.2.0-3",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "high",
    "structured": {
      "id": "DEBIAN-CVE-2020-26160",
      "aliases": [
        "DEBIAN-CVE-2020-26160"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "3.2.0-3"
                }
              ]
            }
          ],
          "package": {
            "name": "golang-github-dgrijalva-jwt-go",
            "purl": "pkg:deb/debian/golang-github-dgrijalva-jwt-go?arch=source&distro=bookworm",
            "ecosystem": "Debian:12"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2020-26160.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        }
      ],
      "modified": "2026-10-26T12:01:58.134327795Z",
      "provider": "osv",
      "upstream": [
        "CVE-2020-26160"
      ],
      "references": [
        "https://security-tracker.debian.org/tracker/CVE-2020-26160"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2020-26160",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 451933,
  "published_at": "2020-09-30T18:15:27.397+00:00"
}