{"id":"UBUNTU-CVE-2020-26160","details":"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.","modified":"2026-05-20T16:06:22.919346620Z","published":"2020-09-30T18:15:00Z","upstream":["CVE-2020-26160"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2020-26160"},{"type":"REPORT","url":"https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMDGRIJALVAJWTGO-596515"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2020-26160"},{"type":"REPORT","url":"https://github.com/golang-jwt/jwt/pull/12"}],"affected":[{"package":{"name":"golang-github-dgrijalva-jwt-go","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/golang-github-dgrijalva-jwt-go?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.3.0-1"],"ecosystem_specific":{"binaries":[{"binary_version":"2.3.0-1","binary_name":"golang-github-dgrijalva-jwt-go-dev"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-26160.json"}},{"package":{"name":"golang-github-dgrijalva-jwt-go","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/golang-github-dgrijalva-jwt-go?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.0.0.1+REALLY.2.6.0-1","3.0.0.1+REALLY.2.6.0-2","3.0.0.1+REALLY.2.6.0-3"],"ecosystem_specific":{"binaries":[{"binary_version":"3.0.0.1+REALLY.2.6.0-3","binary_name":"golang-github-dgrijalva-jwt-go-dev"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-26160.json"}},{"package":{"name":"golang-github-coreos-discovery-etcd-io","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/golang-github-coreos-discovery-etcd-io?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.0.0+git2019.04.19.git.78fb45d3c9-1"],"ecosystem_specific":{"binaries":[{"binary_name":"etcd-discovery","binary_version":"2.0.0+git2019.04.19.git.78fb45d3c9-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-26160.json"}},{"package":{"name":"golang-github-dgrijalva-jwt-go","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/golang-github-dgrijalva-jwt-go?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.0.0.1+REALLY.2.6.0-3","3.2.0-1"],"ecosystem_specific":{"binaries":[{"binary_name":"golang-github-dgrijalva-jwt-go-dev","binary_version":"3.2.0-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-26160.json"}},{"package":{"name":"golang-github-coreos-discovery-etcd-io","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/golang-github-coreos-discovery-etcd-io?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.0.0+git2019.04.19.git.78fb45d3c9-4"],"ecosystem_specific":{"binaries":[{"binary_name":"etcd-discovery","binary_version":"2.0.0+git2019.04.19.git.78fb45d3c9-4"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-26160.json"}},{"package":{"name":"golang-github-coreos-discovery-etcd-io","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/golang-github-coreos-discovery-etcd-io?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.0.0+git2019.04.19.git.78fb45d3c9-4build1","2.0.0+git2019.04.19.git.78fb45d3c9-4ubuntu0.24.04.1","2.0.0+git2019.04.19.git.78fb45d3c9-4ubuntu0.24.04.2","2.0.0+git2019.04.19.git.78fb45d3c9-4ubuntu0.24.04.3"],"ecosystem_specific":{"binaries":[{"binary_name":"etcd-discovery","binary_version":"2.0.0+git2019.04.19.git.78fb45d3c9-4ubuntu0.24.04.3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-26160.json"}},{"package":{"name":"golang-github-coreos-discovery-etcd-io","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/golang-github-coreos-discovery-etcd-io?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.0.0+git2019.04.19.git.78fb45d3c9-4build1"],"ecosystem_specific":{"binaries":[{"binary_name":"etcd-discovery","binary_version":"2.0.0+git2019.04.19.git.78fb45d3c9-4build1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-26160.json"}},{"package":{"name":"golang-github-coreos-discovery-etcd-io","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/golang-github-coreos-discovery-etcd-io?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.0.0+git2019.04.19.git.78fb45d3c9-4build1","2.0.0+git2019.04.19.git.78fb45d3c9-4build2"],"ecosystem_specific":{"binaries":[{"binary_name":"etcd-discovery","binary_version":"2.0.0+git2019.04.19.git.78fb45d3c9-4build2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-26160.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"},{"type":"Ubuntu","score":"medium"}]}