CVE-2023-48223 is a medium-severity vulnerability affecting the fast-jwt library (versions prior to 3.3.2) that allows for JSON Web Token (JWT) algorithm confusion. Specifically, the library's public key matching mechanism fails to properly identify all common PEM formats for public keys, making applications vulnerable if they use RS256, a public key with a "BEGIN RSA PUBLIC KEY" header, and do not explicitly specify an algorithm during verification. An attacker can exploit this by crafting a malicious JWT signed with the victim application's public RSA key using the HS256 algorithm, leading to arbitrary payload acceptance. The CVSS score is 5.9 (Medium) due to a network attack vector and high integrity impact, but high attack complexity. There is no evidence of active exploitation, publicly available exploit code, or significant community discussion surrounding this vulnerability.
| Vendor | Product | Version(s) | CPE |
|---|---|---|---|
< 3.3.2CPE matchmatch criteria | cpe:2.3:a:nearform:fast-jwt:*:*:*:*:*:node.js:*:* |
CVSS version used by this source: 3.1
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
The average CVE in this peer group has 0.0 Twitter, 0.0 Reddit, 0.0 Bluesky, 0.0 Mastodon, and 0.2 GitHub mentions.
The average CVE in this peer group has 0.0 InfoSec Media, 0.0 Vendor Blog, and 0.0 Security Researcher mentions.