Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

github логотип

GHSA-27h2-hvpr-p74q

Опубликовано: 22 дек. 2022
Источник: github
Github: Прошло ревью
CVSS3: 7.6

Описание

jsonwebtoken has insecure input validation in jwt.verify function

Overview

For versions <=8.5.1 of jsonwebtoken library, if a malicious actor has the ability to modify the key retrieval parameter (referring to the secretOrPublicKey argument from the readme link) of the jwt.verify() function, they can gain remote code execution (RCE).

Am I affected?

This security issue is a concern when the jsonwebtoken library is used in an insecure way. Users are affected only if they allow untrusted entities to modify the key retrieval parameter of the jwt.verify() on a host that you control. In this scenario, if all the prerequisites are met, the issue may be exploitable. The source of this risk in this scenario would be in the calling code, and not in the library itself.

How do I fix it?

Users of jsonwebtoken 8.5.1 and earlier are encouraged to update to the latest version, 9.0.0, which presents safer code and important security checks that fixes this security flaw and others and prevents misuse of the package.

Пакеты

Наименование

jsonwebtoken

npm
Затронутые версииВерсия исправления

<= 8.5.1

9.0.0

7.6 High

CVSS3

Дефекты

CWE-20

Связанные уязвимости

redhat
больше 2 лет назад

A flaw was found in the jsonwebtoken package. In affected versions of the jsonwebtoken library, if a malicious actor can modify the key retrieval parameter (referring to the secretOrPublicKey argument from the readme link) of the jwt.verify() function, they can perform remote code execution (RCE).

nvd
больше 2 лет назад

Rejected reason: DO NOT USE THIS CANDIDATE NUMBER. ConsultIDs: none. Reason: The issue is not a vulnerability. Notes: none.

7.6 High

CVSS3

Дефекты

CWE-20