From a54fa08a3bc929ce16cd84264bb0653e548955f9 Mon Sep 17 00:00:00 2001 From: arunmu-nx Date: Tue, 22 Apr 2025 18:58:46 +0530 Subject: [PATCH] #102 Add ES algos also to the exception list --- include/jwt/impl/jwt.ipp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/jwt/impl/jwt.ipp b/include/jwt/impl/jwt.ipp index d516e4f..772740e 100644 --- a/include/jwt/impl/jwt.ipp +++ b/include/jwt/impl/jwt.ipp @@ -211,6 +211,9 @@ inline verify_result_t jwt_signature::check_for_algo_confusion_attack( case algorithm::RS256: case algorithm::RS384: case algorithm::RS512: + case algorithm::ES256: + case algorithm::ES384: + case algorithm::ES512: return {false, std::error_code{}}; default: // For all other cases make sure that the secret provided