Skip to content
Heist/ feed
Back to feed
CriticalFix available

python-authlib — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2026-27962

Authlib is a Python library which builds OAuth and OpenID Connect servers. Prior to version 1.6.9, a JWK Header Injection vulnerability in authlib's JWS implementation allows an unauthenticated attacker to forge arbitrary JWT tokens that pass signature verification. When key=None is passed to any JWS deserialization function, the library extracts and uses the cryptographic key embedded in the attacker-controlled JWT jwk header field. An attacker can sign a token with their own private key, embed the matching public key in the header, and have the server accept the forged token as cryptographically valid — bypassing authentication and authorization entirely. This issue has been patched in version 1.6.9.

Products
python-authlib
Affected versions
0.15.4-1, 0.15.5-1, 0.15.5-1ubuntu0.1~esm1, 1.2.1-1, 1.3.0-1, 1.3.0-1ubuntu0.1~esm1, 1.5.1-1, 1.5.2-1, 1.6.0-1, 1.6.5-1, 1.6.6-1, 1.6.7-1, 1.7.2-1, 1.7.2-2
Fixed versions
0.15.5-1ubuntu0.1~esm2, 1.3.0-1ubuntu0.1~esm2, 1.6.7-1ubuntu0.1~esm1
CVEs
CVE-2026-27962
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 02:58 UTC · Revision 1

Source evidence

UBUNTU-CVE-2026-27962

core-osv · Original source

Published 16 Mar 2026, 18:16 UTC

Authlib is a Python library which builds OAuth and OpenID Connect servers. Prior to version 1.6.9, a JWK Header Injection vulnerability in authlib's JWS implementation allows an unauthenticated attacker to forge arbitrary JWT tokens that pass signature verification. When key=None is passed to any JWS deserialization function, the library extracts and uses the cryptographic key embedded in the attacker-controlled JWT jwk header field. An attacker can sign a token with their own private key, embed the matching public key in the header, and have the server accept the forged token as cryptographically valid — bypassing authentication and authorization entirely. This issue has been patched in version 1.6.9.

osv:UBUNTU-CVE-2026-27962

python-authlib

Fixed versions: 0.15.5-1ubuntu0.1~esm2

python-authlib

Fixed versions: 1.3.0-1ubuntu0.1~esm2

python-authlib

Fixed versions: Not specified

python-authlib

Fixed versions: Not specified

python-authlib

Fixed versions: 1.6.7-1ubuntu0.1~esm1

Complete source record
{
  "id": "bd9ff2869bfb7412dd755f0a958b7506f66c5bcdc7a3ef70792ea927269895a3",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-27962",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2026-27962",
    "summary": "Authlib is a Python library which builds OAuth and OpenID Connect servers. Prior to version 1.6.9, a JWK Header Injection vulnerability in authlib's JWS implementation allows an unauthenticated attacker to forge arbitrary JWT tokens that pass signature verification. When key=None is passed to any JWS deserialization function, the library extracts and uses the cryptographic key embedded in the attacker-controlled JWT jwk header field. An attacker can sign a token with their own private key, embed the matching public key in the header, and have the server accept the forged token as cryptographically valid — bypassing authentication and authorization entirely. This issue has been patched in version 1.6.9.",
    "evidence": "osv:UBUNTU-CVE-2026-27962",
    "products": [
      {
        "name": {
          "value": "python-authlib",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "0.15.5-1ubuntu0.1~esm2",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "0.15.4-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.15.5-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.15.5-1ubuntu0.1~esm1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "python-authlib",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "1.3.0-1ubuntu0.1~esm2",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "1.2.1-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "1.3.0-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "1.3.0-1ubuntu0.1~esm1",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "python-authlib",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.5.1-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "1.5.2-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "1.6.0-1",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "python-authlib",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.6.7-1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "1.7.2-1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "1.7.2-2",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "python-authlib",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "1.6.7-1ubuntu0.1~esm1",
            "evidence": "/affected/4/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "1.6.0-1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "1.6.5-1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "1.6.6-1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "1.6.7-1",
            "evidence": "/affected/4/versions"
          }
        ]
      }
    ],
    "severity": "critical",
    "structured": {
      "id": "UBUNTU-CVE-2026-27962",
      "aliases": [
        "UBUNTU-CVE-2026-27962"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N"
        },
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "0.15.5-1ubuntu0.1~esm2"
                }
              ]
            }
          ],
          "package": {
            "name": "python-authlib",
            "purl": "pkg:deb/ubuntu/python-authlib?arch=source&distro=esm-apps%2Fjammy",
            "ecosystem": "Ubuntu:Pro:22.04:LTS"
          },
          "versions": [
            "0.15.4-1",
            "0.15.5-1",
            "0.15.5-1ubuntu0.1~esm1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-27962.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-authlib",
                "binary_version": "0.15.5-1ubuntu0.1~esm2"
              }
            ],
            "availability": "Available with Ubuntu Pro: https://ubuntu.com/pro"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "1.3.0-1ubuntu0.1~esm2"
                }
              ]
            }
          ],
          "package": {
            "name": "python-authlib",
            "purl": "pkg:deb/ubuntu/python-authlib?arch=source&distro=esm-apps%2Fnoble",
            "ecosystem": "Ubuntu:Pro:24.04:LTS"
          },
          "versions": [
            "1.2.1-1",
            "1.3.0-1",
            "1.3.0-1ubuntu0.1~esm1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-27962.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-authlib",
                "binary_version": "1.3.0-1ubuntu0.1~esm2"
              }
            ],
            "availability": "Available with Ubuntu Pro: https://ubuntu.com/pro"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "python-authlib",
            "purl": "pkg:deb/ubuntu/python-authlib?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "versions": [
            "1.5.1-1",
            "1.5.2-1",
            "1.6.0-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-27962.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-authlib",
                "binary_version": "1.6.0-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "python-authlib",
            "purl": "pkg:deb/ubuntu/python-authlib?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "1.6.7-1",
            "1.7.2-1",
            "1.7.2-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-27962.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-authlib",
                "binary_version": "1.7.2-2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "1.6.7-1ubuntu0.1~esm1"
                }
              ]
            }
          ],
          "package": {
            "name": "python-authlib",
            "purl": "pkg:deb/ubuntu/python-authlib?arch=source&distro=esm-apps%2Fresolute",
            "ecosystem": "Ubuntu:Pro:26.04:LTS"
          },
          "versions": [
            "1.6.0-1",
            "1.6.5-1",
            "1.6.6-1",
            "1.6.7-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-27962.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-authlib",
                "binary_version": "1.6.7-1ubuntu0.1~esm1"
              }
            ],
            "availability": "Available with Ubuntu Pro: https://ubuntu.com/pro"
          }
        }
      ],
      "modified": "2026-10-17T12:59:56.992027275Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-27962"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2026-27962",
        "https://www.cve.org/CVERecord?id=CVE-2026-27962",
        "https://github.com/authlib/authlib/security/advisories/GHSA-wvwj-cvrp-7pv5",
        "https://ubuntu.com/security/notices/USN-8557-1"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-27962",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 360024,
  "published_at": "2026-03-16T18:16:00+00:00"
}