{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2020-26160","id":"CVE-2020-26160","title":"Authorization bypass in github.com/dgrijalva/jwt-go","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.","descriptionLong":"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.","published":"2020-09-30T12:57:10.000Z","updated":"2026-11-10T02:30:21.668567545Z","reserved":"2020-09-30T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"mitre","metric":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AC:L/AV:N/A:N/C:H/I:N/PR:N/S:U/UI:N","rating":"high","source":"mitre"},"metrics":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AC:L/AV:N/A:N/C:H/I:N/PR:N/S:U/UI:N","rating":"high","source":"mitre"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","rating":"high","source":"mitre.org"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","rating":"high","source":"NVD"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","rating":"high","source":"OSV"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","rating":"high","source":"GitHub"},{"version":"2.0","score":5,"vector":"AV:N/AC:L/Au:N/C:P/I:N/A:N","rating":"medium","source":"NVD"}],"rating":"high","products":[],"affectedProducts":[{"vendor":"n/a","product":"n/a","defaultStatus":null,"versions":[{"status":"affected","version":"n/a"}],"platforms":[]}],"packages":[{"ecosystem":"Go","name":"github.com/dgrijalva/jwt-go","purl":"pkg:golang/github.com/dgrijalva/jwt-go","ranges":[">=0.0.0-20150717181359-44718f8a89b0 <=3.2.0",">=0.0.0-20150717181359-44718f8a89b0"],"fixed":[],"advisory":"GHSA-w73w-5m7g-f7qc"},{"ecosystem":"Go","name":"github.com/dgrijalva/jwt-go/v4","purl":"pkg:golang/github.com/dgrijalva/jwt-go/v4","ranges":["<4.0.0-preview1"],"fixed":["4.0.0-preview1"],"advisory":"GHSA-w73w-5m7g-f7qc"}],"cwes":["CWE-287","CWE-755"],"aliases":["GHSA-w73w-5m7g-f7qc","GO-2020-0017","SNYK-GOLANG-GITHUBCOMDGRIJALVAJWTGO-596515"],"references":[{"url":"https://github.com/dgrijalva/jwt-go/pull/426","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMDGRIJALVAJWTGO-596515","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-26160","tags":["advisory"]},{"url":"https://github.com/dgrijalva/jwt-go/issues/422","tags":["web"]},{"url":"https://github.com/dgrijalva/jwt-go/issues/462","tags":["web"]},{"url":"https://github.com/dgrijalva/jwt-go/commit/ec0a89a131e3e8567adcb21254a5cd20a70ea4ab","tags":["web","fix"]},{"url":"https://github.com/dgrijalva/jwt-go","tags":["package"]},{"url":"https://pkg.go.dev/vuln/GO-2020-0017","tags":["web"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.02158,"epssPercentile":0.82576,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2020-26160","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-26160","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2020-26160","ok":true,"note":"2 packages"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-w73w-5m7g-f7qc","ok":true,"note":"GHSA-w73w-5m7g-f7qc"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2020-26160","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}