Repository navigation
Conversation
| # Source of truth for dependencies: pyproject.toml + poetry.lock | ||
|
|
||
| authlib>=1.6.12 | ||
| authlib~=1.9 |
There was a problem hiding this comment.
High severity issue identified in one of your dependencies:
Line 4 lists a dependency (authlib) 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.
| # Source of truth for dependencies: pyproject.toml + poetry.lock | ||
|
|
||
| authlib>=1.6.12 | ||
| authlib~=1.9 |
There was a problem hiding this comment.
High severity issue identified in one of your dependencies:
Line 4 lists a dependency (authlib) 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.
Changes
Raises the authlib floor to 1.9.1 to pick up upstream security fixes, and raises the cryptography floor to match what authlib 1.9.x requires.
Dependencies
pyproject.tomlauthlib:^1.0becomes^1.9.1(locked 1.7.2 to 1.9.10)cryptography:>=43.0.1becomes>=45.0.1. authlib 1.9.10 declarescryptography>=45.0.1, so the floor we state now matches what actually resolves. The locked version stays at 50.0.2.requirements.txt(read by the Snyk SCA scan):authlib>=1.6.12becomesauthlib~=1.9poetry.lock: only the authlib version and the content hash change. joserfc (1.7.4) already meets authlib's>=1.6.8.Endpoints, classes and methods: none added, removed, deprecated or changed.
Behavior changes from authlib 1.7.2 to 1.9.10
These come from a diff of
authlib/josebetween the two wheels. Every change is a stricter check:Nonesignatureslist is now rejected (rfc7515/jws.py).oct(HMAC) key now rejects empty keys and keys that look like PEM or SSH public keys (rfc7518/oct_key.py). This doesn't apply to this SDK, becauseApiClientonly allowsRS256for access tokens andES256for DPoP proofs.exp: trueis now rejected (rfc7519/claims.py).Integrator impact
authlib.joseraisesAuthlibDeprecationWarningon import (authlib forces it to always show). This repo already saw it with 1.7.2, but integrators still on authlib 1.6.x will see it for the first time. Test suites that run with-W errorwill fail when importing the SDK.Alternatives considered
authlib.josetojoserfcwould remove the deprecation warning. It's left for a follow-up because it changes token verification and needs its own review.authlib<2.0stays, through the caret pin: authlib saysauthlib.jose"will be compatible before version 2.0.0". No 2.x release is on PyPI yet.Testing
poetry install poetry check --lock poetry run pytest poetry run ruff check .poetry check --lockexits 0.pytest: 506 passed, 93% coverage. The only warning is the existingauthlib.josedeprecation atapi_client.py:9.ruff check .: all checks passed.The tests ran against the same resolved versions this PR locks. The later edits to
^1.9.1he lock's content hash.Checklist