./security/py-authlib, Python library for JOSE RFCs, including JWS, JWE, JWK, JWA, JWT

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ]


Branch: CURRENT, Version: 1.9.11, Package name: py314-authlib-1.9.11, Maintainer: pkgsrc-users

OAuth often seems complicated and difficult-to-implement. There are several
prominent libraries for handling OAuth requests, but they all suffer from one
or both of the following:

* They predate the OAuth 1.0 spec, AKA RFC 5849.
* They predate the OAuth 2.0 spec, AKA RFC 6749.
* They assume the usage of a specific HTTP request library.

OAuthLib is a generic utility which implements the logic of OAuth without
assuming a specific HTTP request object or web framework. Use it to graft OAuth
client support onto your favorite HTTP library, or provider support onto your
favourite web framework. If you're a maintainer of such a library, write a thin
veneer on top of OAuthLib and get OAuth support for very little effort.


Required to run:
[devel/py-setuptools] [security/py-cryptography] [lang/python37]

Required to build:
[pkgtools/cwrappers]

Master sites:

Filesize: 180.194 KB

Version history: (Expand)


CVS history: (Expand)


   2026-12-03 14:07:38 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-authlib: updated to 1.9.11

1.9.11
Security

JsonWebSignature.deserialize_json() rejects a JWS JSON Serialization with more \ 
than 16 signatures. Set JsonWebSignature.MAX_SIGNATURES to change the limit. \ 
Each signature used to hash the whole payload again, so one message could cost \ 
seconds of CPU. GHSA-7j7q-pr24-2r3f

A validate hook in a shared claims_options dict, such as the one given to \ 
authorize_access_token(), runs for every token. It used to run only for the \ 
first token, because the claims classes removed it from the dict. In the OpenID \ 
Connect provider, a shared dict returned by get_client_claims no longer carries \ 
claims from one ID token to the next. GHSA-j9px-qhmf-w8c3

fetch_token(authorization_response=...) raises MissingCodeException when the \ 
callback URL has no code. It used to skip the state check and fetch a token with \ 
the client_credentials grant. GHSA-2c3j-qwxw-7hg9

The client registration and configuration endpoints reject a client_uri, \ 
logo_uri, tos_uri or policy_uri whose scheme is not http or https, per RFC 7591 \ 
§2. A javascript: URL used to be accepted, and could run a script on a consent \ 
page that shows these links. Clients registered before keep their values: check \ 
them, as an update with the same value is now rejected. GHSA-vg67-6p2g-mfhc
   2026-11-23 13:17:39 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-authlib: updated to 1.9.10

Version 1.9.10 — 2026-11-19

Security

The client registration endpoint rejects a jwks that contains a private key. A \ 
crafted RSA private key could use tens of seconds of CPU at import.

Version 1.9.9 — 2026-11-17

Security

A confidential client can no longer authenticate with its client_id only on the \ 
revocation, introspection and device authorization endpoints. These endpoints \ 
accepted the none method from any client. This affected the revocation and \ 
introspection endpoints when none was in their CLIENT_AUTH_METHODS, and the \ 
device authorization endpoint by default. A confidential client whose method is \ 
missing from CLIENT_AUTH_METHODS now gets an invalid_client error on these \ 
endpoints. Add its method to CLIENT_AUTH_METHODS.
   2026-11-16 13:03:37 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-authlib: updated to 1.9.8

1.9.8 — 2026-11-16

Security

The OAuth 1.0 server rejects HMAC-SHA1 and PLAINTEXT signatures from a client \ 
without a client secret. Anyone could compute these signatures, and impersonate \ 
a client registered with an RSA key only. GHSA-4gjv-v7fq-ghfp

JsonWebEncryption rejects a JWE in ECDH-1PU key wrapping mode whose enc is not \ 
AES_CBC_HMAC_SHA2 on decryption, as it already did on encryption. A recipient \ 
could forge messages that other recipients accepted as sent by the original \ 
sender. GHSA-5mqf-4prf-9r2m
   2026-11-06 14:27:52 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-authlib: updated to 1.9.5

1.9.5

Security

authlib.jose refuses as an HMAC secret every OpenSSH public key or certificate \ 
that it can load as an RSA, EC or OKP key. It used to accept a key with a tab \ 
after the key type, and certificates. These keys verify RS256 and EdDSA tokens, \ 
so anyone who knew the public key could forge an HS256 token for an application \ 
that did not restrict the algorithms. This completes the fix for \ 
CVE-2026-114615. GHSA-f7j6-p4qx-gq99
   2026-11-05 08:09:05 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-authlib: updated to 1.9.4

1.9.4 — 2026-11-04

Security

IDJAGGrant stores the verified claims of the ID-JAG in request.id_jag_claims. \ 
authenticate_user can use them to resolve the user with the iss and sub claims, \ 
and tenant for a multi-tenant IdP. The documentation used to resolve the user \ 
with sub alone. An IdP, or a tenant of an IdP, could then get access tokens for \ 
the users of another one. Update authenticate_user if your server trusts several \ 
IdPs or a multi-tenant IdP. GHSA-9qr6-8289-9j56
   2026-11-03 15:04:51 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-authlib: updated to 1.9.3

Version 1.9.3 — 2026-11-03

Security

The OpenID Connect implicit and hybrid grants refuse response_mode=form_post \ 
when the redirect URI does not use the http or https scheme. They return an \ 
invalid_request error and do not redirect. A client with a javascript: redirect \ 
URI could run a script in the origin of the authorization server, even when the \ 
user denied the authorization. GHSA-gp2m-377p-m4j3

Version 1.9.2 — 2026-11-01

Security

IDJAGGrant limits the access token to the scopes in the scope claim of the \ 
ID-JAG. A client used to get any scope allowed by its registration, even when \ 
the IdP granted fewer scopes. Without a scope request parameter, the access \ 
token now gets the scopes of the claim instead of no scope. GHSA-f3fg-34g9-v7jx
   2026-10-20 06:50:38 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-authlib: updated to 1.9.1

1.9.1
Use scriv to handle the changelog

1.9.0
eat: add Identity Assertion JWT Authorization Grant (ID-JAG)
Fix empty signatures validation in JWS JSON deserialization
fix(jose): reject boolean values for NumericDate claims
fix(client): avoid duplicated OAuth 1.0 parameters in signed requests
OAuth2 token fetch crashes with JSONDecodeError instead of a catchable error on \ 
rate-limit responses
docs: add i18n wrappers in conf.py and templates
fix(oauth): enforce JOSE key, scope, and audience validation
AsyncOpenIDMixin.parse_id_token: return None when id_token is absent, matching \ 
the sync client
fix(oauth): enforce nonce and JAR request validation
fix(oauth): require client authentication for ID-JAG grants
   2026-09-02 07:40:20 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-authlib: updated to 1.8.0

1.8.0

Prefer id_token_signed_response_alg client metadata to guess algs
fix: Catch InvalidKeyIdError in RFC 9068 JWTBearerTokenValidator
fix: make leeway configurable in JWTBearerTokenValidator
feat: add default jti claim to sign_jwt_bearer_assertion
fix(oauth): cast sub claim to string in JWTBearerTokenGenerator
Declare lower bounds for dependencies
feat(client): use httpx2 instead of httpx
Fix RFC7523 malformed claims handling
Fix httpx oauth1 binary form data
fix(starlette_client): remove default= keyword from config.get calls
Added client_id parameter to AssertionClient
fix(oauth): save device credential with authenticated client id
fix(oauth1): correct protocol name in InsecureTransportError description
fix(client): client can be flexible with jwt's header
fix(oidc): omit claims when the value is None