[Feature Request] Raise the minimum supported PyJWT version to a patched release

Open
#984 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 7 days

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
55/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
python
Domain
security

Research direction

The issue identifies the PyJWT dependency range in MSAL 1.39.0 but does not name the manifest or tests. Locate the dependency declaration and review how the project handles supported version bounds and compatibility. Done means maintainers decide whether to raise the minimum to a patched release or document a consumer workaround.

Written by the indexing model from the issue text.

Description

MSAL client type: Confidential

Problem statement

MSAL 1.39.0 declares PyJWT[crypto]>=1.0.0,<3, which permits versions affected by several published PyJWT advisories. This also affects applications that depend on MSAL indirectly, for example through Azure Identity. Dependency scanners can flag an existing lockfile even though MSAL permits a patched PyJWT version.

Examples fixed in PyJWT 2.14.0:

Proposed solution

Would the maintainers consider raising MSAL's minimum PyJWT version to a currently patched release, such as 2.14.0 or later, or documenting the preferred approach for consumers to keep this transitive dependency patched? A newer minimum would prevent resolvers from selecting older affected versions when no downstream constraint is present.

I recognize that the maintainers previously explained in https://github.com/AzureAD/microsoft-authentication-library-for-python/issues/473 that MSAL's usage was not susceptible to an older PyJWT decoding vulnerability. This request is about the dependency range and scanner findings; it does not assert that MSAL itself is exploitable. Consumers can already update or constrain PyJWT directly.

Dominant language
Python
Stars
971
Forks
223
Avg merge
4d 2h
Merged PRs (30d)
3

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from AzureAD/microsoft-authentication-library-for-python

All issues in AzureAD/microsoft-authentication-library-for-python

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.