MEDIUM🇬🇧 English

CVE-2023-48223

CVSS 5.9v3.1pub. 2023-11-20upd. 2024-11-21

fast-jwt provides fast JSON Web Token (JWT) implementation. Prior to version 3.3.2, the fast-jwt library does not properly prevent JWT algorithm confusion for all public key types. The 'publicKeyPemMatcher' in 'fast-jwt/src/crypto.js' does not properly match all common PEM formats for public keys. To exploit this vulnerability, an attacker needs to craft a malicious JWT token containing the HS256 algorithm, signed with the public RSA key of the victim application. This attack will only work if the victim application utilizes a public key containing the `BEGIN RSA PUBLIC KEY` header. Applications using the RS256 algorithm, a public key with a `BEGIN RSA PUBLIC KEY` header, and calling the verify function without explicitly providing an algorithm, are vulnerable to this algorithm confusion attack which allows attackers to sign arbitrary payloads which will be accepted by the verifier. Version 3.3.2 contains a patch for this issue. As a workaround, change line 29 of `blob/master/src/crypto.js` to include a regular expression.

oryginał EN
CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
  • Nearform Fast Jwt

    APP
    Nearform
    < 3.3.2
🔵
ZWERYFIKUJ U PRODUCENTA
Brak jednoznacznych danych o patchu. Sprawdź referencje od producenta.
CWE
Referencje

Powiązane podatności

CVE-2026-34950CRITICAL9.1PL ✓ten sam produkt

Nearform Fast-Jwt: podatność na atak JWT algorithm confusion (bypass patcha CVE-2023-48223)

CVE-2026-35039CRITICAL9.1PL ✓ten sam produkt

Kolizja cache w fast-jwt prowadząca do błędnej identyfikacji użytkowników

CVE-2026-35042HIGH7.5ten sam produkt

fast-jwt provides fast JSON Web Token (JWT) implementation. In 6.1.0 and earlier, fast-jwt does not validate t...

CVE-2026-35040MEDIUM5.3ten sam produkt

fast-jwt provides fast JSON Web Token (JWT) implementation. Prior to 6.2.1, using certain modifiers on RegExp ...

CVE-2026-35041MEDIUM4.2ten sam produkt

fast-jwt provides fast JSON Web Token (JWT) implementation. From 5.0.0 to 6.2.0, a denial-of-service condition...

CVE-2023-48223 — MEDIUM 5.9 | CVEbaza.pl