Repository navigation
Conversation
| @@ -1,7 +1,7 @@ | |||
| # Core dependencies for auth0-server-python SDK | |||
| cryptography>=43.0.1 | |||
| cryptography>=45.0.1 | |||
There was a problem hiding this comment.
High severity issue identified in one of your dependencies:
Line 2 lists a dependency (cryptography) with a known vulnerability. The dependency was declared as a version range. Check the installed version to determine impact, then pin it or add a lockfile.
💬 Ignore this finding
To ignore this, reply with:
/fp <comment>for false positive/ar <comment>for acceptable risk/other <comment>for all other reasons
Your security policy comments on findings when they have no reachability analysis - contact your Semgrep admin to update this. You can view more details on this finding in the Semgrep AppSec Platform here.
| cryptography>=45.0.1 | ||
| pyjwt>=2.8.0 | ||
| authlib>=1.2.0,<2.0.0 | ||
| authlib~=1.9 |
There was a problem hiding this comment.
🟠 High severity issue identified in your code:
Risk: Affected versions of Authlib are vulnerable to Improper Authentication / Inadequate Encryption Strength / Use of Weak Credentials. Authlib accepts an empty (zero-length) oct key as a valid HMAC key. If the key passed to JWT/JWS signing or verification is empty, anyone can compute a valid HS256/HS384/HS512 signature and forge tokens with arbitrary claims, bypassing authentication.
Manual Review Advice: A vulnerability from this advisory is reachable if you sign or verify HMAC (HS256/HS384/HS512) tokens with a key that can be empty at runtime, such as an environment variable, configuration value, client secret, or key resolver that defaults to an empty string
Fix: Upgrade this library to at least version 1.9.1 at auth0-server-python/requirements.txt:4.
Reference(s): https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-108517, GHSA-8m4g-j4wp-wgcg, CVE-2026-114616
🎉 Fixed in commit 340704c 🎉
| cryptography>=45.0.1 | ||
| pyjwt>=2.8.0 | ||
| authlib>=1.2.0,<2.0.0 | ||
| authlib~=1.9 |
There was a problem hiding this comment.
🟠 High severity issue identified in your code:
Risk: Affected versions of Authlib are vulnerable to Authorization Bypass Through User-Controlled Key / Insecure Default Initialization of Resource. Authlib's RFC 7592 ClientConfigurationEndpoint does not verify that the presented registration access token was issued to the client being read, updated, or deleted, and the documented implementations of authenticate_client and check_permission do not perform this binding either. Any holder of a valid registration access token (e.g. obtained by self-registering through an open dynamic client registration endpoint) can read another client's metadata and secret, hijack its redirect URIs, or delete it by targeting its client_id.
Manual Review Advice: A vulnerability from this advisory is reachable if you do not verify in your check_permission or authenticate_client implementation that the registration access token belongs to the requested client
Fix: Upgrade this library to at least version 1.9.1 at auth0-server-python/requirements.txt:4.
Reference(s): https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-111112, GHSA-c73q-w75p-j82v, CVE-2026-116672
🧹 Fixed in commit 340704c 🧹
| @@ -1,7 +1,7 @@ | |||
| # Core dependencies for auth0-server-python SDK | |||
| cryptography>=43.0.1 | |||
| cryptography>=45.0.1 | |||
There was a problem hiding this comment.
High severity issue identified in one of your dependencies:
Line 2 lists a dependency (cryptography) with a known vulnerability. The dependency was declared as a version range. Check the installed version to determine impact, then pin it or add a lockfile.
💬 Ignore this finding
To ignore this, reply with:
/fp <comment>for false positive/ar <comment>for acceptable risk/other <comment>for all other reasons
Your security policy comments on findings when they have no reachability analysis - contact your Semgrep admin to update this. You can view more details on this finding in the Semgrep AppSec Platform here.
| @@ -1,7 +1,7 @@ | |||
| # Core dependencies for auth0-server-python SDK | |||
| cryptography>=43.0.1 | |||
| cryptography>=45.0.1 | |||
There was a problem hiding this comment.
High severity issue identified in one of your dependencies:
Line 2 lists a dependency (cryptography) with a known vulnerability. The dependency was declared as a version range. Check the installed version to determine impact, then pin it or add a lockfile.
💬 Ignore this finding
To ignore this, reply with:
/fp <comment>for false positive/ar <comment>for acceptable risk/other <comment>for all other reasons
Your security policy comments on findings when they have no reachability analysis - contact your Semgrep admin to update this. You can view more details on this finding in the Semgrep AppSec Platform here.
| @@ -1,7 +1,7 @@ | |||
| # Core dependencies for auth0-server-python SDK | |||
| cryptography>=43.0.1 | |||
| cryptography>=45.0.1 | |||
There was a problem hiding this comment.
High severity issue identified in one of your dependencies:
Line 2 lists a dependency (cryptography) with a known vulnerability. The dependency was declared as a version range. Check the installed version to determine impact, then pin it or add a lockfile.
💬 Ignore this finding
To ignore this, reply with:
/fp <comment>for false positive/ar <comment>for acceptable risk/other <comment>for all other reasons
Your security policy comments on findings when they have no reachability analysis - contact your Semgrep admin to update this. You can view more details on this finding in the Semgrep AppSec Platform here.
|
Semgrep found 1 🟠 High severity issue identified in your code: Risk: Affected versions of pyjwt are vulnerable to Improper Verification of Cryptographic Signature. PyJWT Manual Review Advice: A vulnerability from this advisory is reachable if you verify HMAC-signed tokens with a symmetric (oct) JWK whose Fix: Upgrade this library to at least version 2.14.0 at auth0-server-python/requirements.txt:3. Reference(s): GHSA-pxh4-856f-4h89 View Dataflow Graphflowchart LR
classDef invis fill:white, stroke: none
classDef default fill:#e7f5ff, color:#1c7fd6, stroke: none
subgraph File0["<b>src/auth0_server_python/auth_server/server_client.py</b>"]
direction LR
%% Source
subgraph Source
direction LR
v0["<a href=https://github.com/auth0/auth0-server-python/blob/b533dbe22b247abed45fb56e11d8cb219bcfc9aa/src/auth0_server_python/auth_server/server_client.py#L607 target=_blank style='text-decoration:none; color:#1c7fd6'>[Line: 607] jwt.PyJWK.from_dict(key)</a>"]
end
%% Intermediate
subgraph Traces0[Traces]
direction TB
v2["<a href=https://github.com/auth0/auth0-server-python/blob/b533dbe22b247abed45fb56e11d8cb219bcfc9aa/src/auth0_server_python/auth_server/server_client.py#L607 target=_blank style='text-decoration:none; color:#1c7fd6'>[Line: 607] signing_key</a>"]
end
%% Sink
subgraph Sink
direction LR
v1["<a href=https://github.com/auth0/auth0-server-python/blob/b533dbe22b247abed45fb56e11d8cb219bcfc9aa/src/auth0_server_python/auth_server/server_client.py#L618 target=_blank style='text-decoration:none; color:#1c7fd6'>[Line: 618] jwt.decode(token, signing_key.key, **kwargs)</a>"]
end
end
%% Class Assignment
Source:::invis
Sink:::invis
Traces0:::invis
File0:::invis
%% Connections
Source --> Traces0
Traces0 --> Sink
Semgrep found 4
🟠 High severity issue identified in your code: Risk: Affected versions of PyJWT are vulnerable to Incorrect Authorization / Insufficient Verification of Data Authenticity. PyJWT's JWS decoder does not enforce RFC 7515 Fix: Upgrade this library to at least version 2.12.0 at auth0-server-python/requirements.txt:3. Reference(s): https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-11728, GHSA-752w-5fwx-jx9f, CVE-2026-32597 |
Changes
Bumps
authlibfrom^1.2(locked at 1.6.11) to>=1.9.1,<2.0(locked at 1.9.10) to pick up upstream security fixes. Inpoetry.lock, authlib 1.9.10 requirespython >=3.10,cryptography >=45.0.1andjoserfc >=1.6.8, which drives the rest of this change.pyproject.toml:python = ">=3.9"becomes">=3.10".Dependencies (
pyproject.toml,requirements.txtandpoetry.lockupdated together)authlib:^1.2becomes>=1.9.1,<2.0cryptography:>=43.0.1becomes>=45.0.1(locked 43.0.3 to 51.0.0)joserfc: 1.7.7 below Python 3.15, 1.8.0 on 3.15 and latercffi: 2.0.0 to 2.1.1astroid3.3.11 andstdlib-listCI (
.github/workflows/test.yml)3.9, 3.10, 3.11, 3.12to3.10, 3.11, 3.12, 3.13, 3.14.pydantic2.13.5 pinspydantic-core2.46.5, which has no cp315 wheel, so a 3.15 run would build it from source. It gets added once a pydantic release ships cp315 wheels.Lint and typing (annotations only, no change to any public signature)
.ruff.toml:target-versiongoes frompy39topy310.Optional[X]andUnion[X, Y]becomeX | NoneandX | Y, andDict/Listbecomedict/list.Callablenow comes fromcollections.abc.auth_typesare now written asX | Yunions:EnrollAuthenticatorOptions,EnrollmentResponse,VerifyMfaOptions,StartPasswordlessOptions. Their members are unchanged.ServerClient(server_client.py:404) and two Enterprise Connect tests switch fromasyncio.iscoroutinefunctiontoinspect.iscoroutinefunction. The asyncio version is deprecated as of Python 3.14.Endpoints, classes and methods: none added, removed or deprecated.
Docs
README.mdnow says "This library requires Python 3.10+."examples/ConfigureStore.md,EnterpriseConnect.md,MultipleCustomDomains.md,OrganizationLogin.mdandStepUpAuthentication.mdis updated to the 3.10 typing style.CLAUDE.md,references/code-style.mdandreferences/pitfalls.mdnow describe the 3.10045/UP035` rules.Testing
poetry install poetry run pytest poetry run ruff check .CI runs the same suite on 3.10 through 3.14. No functional tests were added, because the code changes only affect type annotations.
Checklist