{"id":"CVE-2020-26160","aliases":["CVE-2020-26160","GHSA-w73w-5m7g-f7qc","GO-2020-0017","SNYK-GOLANG-GITHUBCOMDGRIJALVAJWTGO-596515"],"related":["CGA-hv4q-5g38-wjr8"],"kind":"vulnerability","state":"published","title":"Authorization bypass in github.com/dgrijalva/jwt-go","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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"jwt-go 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. There is no patch available and users of jwt-go are advised to migrate to [golang-jwt](https://github.com/golang-jwt/jwt) at version 3.2.1","format":"markdown","source":"ghsa"},{"lang":"en","text":"If a JWT contains an audience claim with an array of strings, rather than a single string, and MapClaims.VerifyAudience is called with req set to false, then audience verification will be bypassed, allowing an invalid set of audiences to be provided.","format":"markdown","source":"go"},{"lang":"es","text":"jwt-go versiones anteriores a 4.0.0-preview1, permite a atacantes omitir las restricciones de acceso previstas en situaciones con []string{} para m[\"aud\"] (que está permitido por la especificación).&#xa0;Porque la aserción de tipo presenta un fallo, \"\" es el valor de aud.&#xa0;Este es un problema de seguridad si el token JWT es presentado para un servicio que carece de su propia comprobación de audiencia","source":"nvd"}],"published":"2020-09-30T12:57:10.000Z","modified":"2026-09-10T03:49:05.293Z","severity":{"scorer":"mitre","scheme":"CVSS:3.1","vector":"CVSS:3.1/AC:L/AV:N/A:N/C:H/I:N/PR:N/S:U/UI:N","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"mitre","scheme":"CVSS:3.1","vector":"CVSS:3.1/AC:L/AV:N/A:N/C:H/I:N/PR:N/S:U/UI:N","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:P/I:N/A:N","score":5,"rating":"MEDIUM"}],"cwes":["CWE-287","CWE-755"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0.0.0-20150717181359-44718f8a89b0","status":"affected","lastAffected":"3.2.0"}],"ecosystem":"Go","package":"github.com/dgrijalva/jwt-go","purl":"pkg:golang/github.com/dgrijalva/jwt-go","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"4.0.0-preview1"}],"ecosystem":"Go","package":"github.com/dgrijalva/jwt-go/v4","purl":"pkg:golang/github.com/dgrijalva/jwt-go/v4","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.0.0-20150717181359-44718f8a89b0","status":"affected"}],"ecosystem":"Go","package":"github.com/dgrijalva/jwt-go","purl":"pkg:golang/github.com/dgrijalva/jwt-go","source":"go"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"4.0.0-preview1"}],"ecosystem":"Go","package":"github.com/dgrijalva/jwt-go/v4","purl":"pkg:golang/github.com/dgrijalva/jwt-go/v4","source":"go"},{"ranges":[{"status":"affected","lastAffected":"3.2.0"}],"vendor":"jwt-go_project","product":"jwt-go","cpe":"cpe:2.3:a:jwt-go_project:jwt-go:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/dgrijalva/jwt-go/pull/426","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMDGRIJALVAJWTGO-596515","tags":["third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-26160","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/dgrijalva/jwt-go/issues/422","tags":["web"],"sources":["ghsa","go"]},{"url":"https://github.com/dgrijalva/jwt-go/issues/462","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/dgrijalva/jwt-go/commit/ec0a89a131e3e8567adcb21254a5cd20a70ea4ab","tags":["fix","web"],"sources":["ghsa","go"]},{"url":"https://github.com/dgrijalva/jwt-go","tags":["package"],"sources":["ghsa"]},{"url":"https://pkg.go.dev/vuln/GO-2020-0017","tags":["web"],"sources":["ghsa"]}],"credits":["@christopher-wong"],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2020-26160","url":"https://www.cve.org/CVERecord?id=CVE-2020-26160","licence":"CVE Terms of Use","modified":"2024-08-04T15:49:07.136Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-w73w-5m7g-f7qc","url":"https://github.com/advisories/GHSA-w73w-5m7g-f7qc","licence":"CC-BY-4.0","modified":"2026-09-10T03:49:05.293Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2020-0017","url":"https://pkg.go.dev/vuln/GO-2020-0017","licence":"CC-BY-4.0","modified":"2026-07-08T06:49:40.526Z"},{"source":"nvd","name":"NVD","id":"CVE-2020-26160","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-26160","licence":"Public domain","modified":"2026-06-17T03:07:43.907Z"}],"updatedAt":"2026-11-25T22:57:54.990Z","epss":{"score":0.02158,"percentile":0.82708,"date":"2026-12-01T12:00:22.000Z"}}