Skip to content

Commit 45bd124

Browse files
authored
Update jwk.py (#328)
Fix for `Information Disclosure` vulnerability
1 parent 1f0ae0a commit 45bd124

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jose/jwk.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,9 @@ def construct(key_data, algorithm=None):
7171
algorithm = key_data.get("alg", None)
7272

7373
if not algorithm:
74-
raise JWKError("Unable to find an algorithm for key: %s" % key_data)
74+
raise JWKError("Unable to find an algorithm for key")
7575

7676
key_class = get_key(algorithm)
7777
if not key_class:
78-
raise JWKError("Unable to find an algorithm for key: %s" % key_data)
78+
raise JWKError("Unable to find an algorithm for key")
7979
return key_class(key_data, algorithm)

0 commit comments

Comments
 (0)