You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The vulnerability DB entry for authlib contains the specifier =1.7.0 (single equals), which packaging.specifiers.SpecifierSet rejects as invalid per PEP 440 (should be ==1.7.0).
This is the same root cause as #873 (tensorflow). PR #879 fixes the crash in the scan code path but the equivalent call in safety/safety.py:756 (used by the check command) is unpatched.
Fix needed
Correct the authlib entry in the vulnerability database: =1.7.0 → ==1.7.0
Safety version
3.8.1
Python version
3.14
Bug description
Running
safety checkagainst an environment that containsauthlibfails with:The vulnerability DB entry for
authlibcontains the specifier=1.7.0(single equals), whichpackaging.specifiers.SpecifierSetrejects as invalid per PEP 440 (should be==1.7.0).This is the same root cause as #873 (tensorflow). PR #879 fixes the crash in the
scancode path but the equivalent call insafety/safety.py:756(used by thecheckcommand) is unpatched.Fix needed
authlibentry in the vulnerability database:=1.7.0→==1.7.0try/except InvalidSpecifierguard tosafety/safety.py:756as PR fix: gracefully handle invalid specifiers in vulnerability DB (#873) #879 does forscan/ecosystems/python/main.py:341Steps to reproduce
Run
safety checkin an environment withauthlibinstalled.References
tensorflowvuln-db entry contains invalid specifier"=2.7.0"#873 (same issue, tensorflow)