CVE-2025-45768
7.0pyjwt · pyjwt
The pyjwt library version 2.10.1 was reported to contain weak encryption, though the vendor disputes this as key length selection is delegated to the implementing application.
Executive summary
A potential vulnerability involving weak encryption in pyjwt version 2.10.1 poses a risk to token integrity and confidentiality, though the manufacturer disputes the findings.
Vulnerability
The vulnerability concerns the use of weak encryption settings within the library, which may allow for unauthorized token manipulation or exposure. The library design currently relies on the implementing application to enforce secure key lengths rather than enforcing them automatically.
Business impact
The reliance on weak encryption could lead to the compromise of authentication tokens, potentially allowing unauthorized access to protected resources or systems. With a CVSS score of 7.0, this issue represents a high risk to application integrity, necessitating a review of how cryptographic keys are managed within your specific implementation of the library.
Remediation
Immediate Action: Audit your application implementation to ensure that strong, industry-standard key lengths are explicitly enforced for all JWT operations.
Proactive Monitoring: Review application logs for any suspicious token validation failures or unusual patterns in authentication headers that might indicate cryptographic tampering.
Compensating Controls: Implement strict input validation and enforce server-side security policies that reject tokens generated with insufficient key entropy or deprecated algorithms.
Exploitation status
Public Exploit Available: Unknown
Analyst recommendation
While the vendor disputes the vulnerability, organizations should prioritize a security audit of their JWT implementation to verify that cryptographic best practices are followed. Ensure that your application logic explicitly mandates robust key lengths, as the library may not provide these safeguards by default.