Bug 2159911 (CVE-2022-23529) - CVE-2022-23529 jsonwebtoken: Insecure input validation in jwt.verify function
Summary: CVE-2022-23529 jsonwebtoken: Insecure input validation in jwt.verify function
Keywords:
Status: CLOSED NOTABUG
Alias: CVE-2022-23529
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2159914 2159915
Blocks: 2159913
TreeView+ depends on / blocked
 
Reported: 2023-01-11 05:05 UTC by Avinash Hanwate
Modified: 2023-02-15 16:31 UTC (History)
6 users (show)

Fixed In Version: jsonwebtoken 9.0.0
Doc Type: ---
Doc Text:
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).
Clone Of:
Environment:
Last Closed: 2023-02-02 06:45:39 UTC
Embargoed:


Attachments (Terms of Use)

Description Avinash Hanwate 2023-01-11 05:05:10 UTC
node-jsonwebtoken is a JsonWebToken implementation for node.js. 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 write arbitrary files on the host machine. Users are affected only if untrusted entities are allowed to modify the key retrieval parameter of the `jwt.verify()` on a host that you control. This issue has been fixed, please update to version 9.0.0.

https://github.com/auth0/node-jsonwebtoken/security/advisories/GHSA-27h2-hvpr-p74q
https://github.com/auth0/node-jsonwebtoken/commit/e1fa9dcc12054a8681db4e6373da1b30cf7016e3


Note You need to log in before you can comment on or make changes to this bug.