Skip to main content

Over 150 LLM Providers · Over 5,300 Models The most extensible AI-powered pentesting platform. Open source. Star on GitHub

CVE-2022-23541

5.0 · MEDIUM
Published Dec 22, 2022 auth0 CWE-287 EPSS 0.75% (53th pctl)

Overview

CVE-2022-23541 is a medium-severity vulnerability affecting auth0 jsonwebtoken. It was published on December 22, 2022 and has a CVSS 3.1 base score of 5.0 (MEDIUM).

This vulnerability has a CVSS 3.1 base score of 5.0, rated MEDIUM. It can be exploited remotely over the network. Some level of privileges is required for exploitation.

Technical Description

jsonwebtoken is an implementation of JSON Web Tokens. Versions `<= 8.5.1` of `jsonwebtoken` library can be misconfigured so that passing a poorly implemented key retrieval function referring to the `secretOrPublicKey` argument from the readme link will result in incorrect verification of tokens. There is a possibility of using a different algorithm and key combination in verification, other than the one that was used to sign the tokens. Specifically, tokens signed with an asymmetric public key could be verified with a symmetric HS256 algorithm. This can lead to successful validation of forged tokens. If your application is supporting usage of both symmetric key and asymmetric key in jwt.verify() implementation with the same key retrieval function. This issue has been patched, please update to version 9.0.0.

Remediation

Check the references section for vendor advisories and patches from auth0. Update jsonwebtoken to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Affected Products

Vendor Product Versions Status
auth0 jsonwebtoken 0 Affected

Frequently Asked Questions

What is CVE-2022-23541?

CVE-2022-23541 is a medium-severity vulnerability affecting auth0 jsonwebtoken. It was published on December 22, 2022 and has a CVSS 3.1 base score of 5.0 (MEDIUM).

How severe is CVE-2022-23541?

This vulnerability has a CVSS 3.1 base score of 5.0, rated MEDIUM. It can be exploited remotely over the network. Some level of privileges is required for exploitation.

How do I fix or remediate CVE-2022-23541?

Check the references section for vendor advisories and patches from auth0. Update jsonwebtoken to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2022-23541?

CyberStrike's AI-powered security agents can automatically detect CVE-2022-23541 across your infrastructure using autonomous pentesting, DAST scanning, and HackBrowser. The platform continuously monitors for known vulnerabilities and provides actionable remediation guidance prioritized by real-world exploitability.