Approved changes feed: RSS · Atom

cpe:2.3:a:nearform:fast-jwt:*:*:*:*:*:*:*:*

part: a version: * update: *

VendorNearform (7d4e3848-5450-5868-b418-5365abc4686a)
ProductFast Jwt (496d484f-428d-5330-b2e9-14f878b69b1a)
Edition*
Language*
Software edition*
Target software*
Target hardware*
Other*

Notes

Imported from purl2cpe mapping

PURL mappings

PURLSourceLast updated
pkg:github/nearform/fast-jwt purl2cpe 2026-06-01 10:10:57.728238
pkg:npm/fast-jwt purl2cpe 2026-06-01 10:10:57.728241

Vulnerability references

IdentifiercpeApplicabilitySubmitteddb.gcve.eu detailsRationale
CVE:CVE-2026-107723 vulnerable 2026-11-03 10:15:59.503016 fast-jwt : Silent claim-validator bypass when JWT payload is a JSON array
HIGH (8.1)
fast-jwt provides fast JSON Web Token (JWT) implementation. Prior to 6.3.0, fast-jwt createVerifier accepts a validly signed JWT whose payload is a JSON array because src/decoder.js checks that the payload is an object but does not reject arrays. The claim validator loop then finds no named exp, nbf, iss, aud, sub, jti, or nonce properties and silently skips those configured checks, returning the array as a successfully verified payload. An attacker who can produce or influence a validly signed token may bypass expiry, issuer, audience, subject, revocation, and replay protections. The opt-in requiredClaims option can block missing claims, and signature verification itself is not bypassed. This issue is fixed in version 6.3.0.
Published: 2026-10-08T21:51:22.183Z
Updated: 2026-10-14T01:25:44.088Z
Reference links
Imported from gcve-enriched-dumps CVE data
CVE:CVE-2026-107722 vulnerable 2026-11-03 10:15:59.199386 fast-jwt: Incomplete patch of CVE-2026-34950: Non-whitespace key-prefix re-enables RSA→HS256 algorithm confusion
CRITICAL (9.8)
fast-jwt provides fast JSON Web Token (JWT) implementation. From 6.2.0 until 6.3.0, fast-jwt can misclassify RSA public-key text as an HMAC secret when the key has non-whitespace content before its PEM header. In src/crypto.js, performDetectPublicKeyAlgorithms trims whitespace but publicKeyPemMatcher remains start-anchored, so comments, control characters, zero-width characters, or wrapper text can prevent PEM detection and reach the HMAC fallback. An attacker who knows the public key bytes can sign arbitrary HS256 claims with that public material when HS256 is inferred or allowed, resulting in authentication or authorization bypass. An asymmetric-only algorithm allowlist prevents the attack. This issue is fixed in version 6.3.0.
Published: 2026-10-08T21:49:55.888Z
Updated: 2026-10-13T16:26:25.790Z
Reference links
Imported from gcve-enriched-dumps CVE data
CVE:CVE-2026-44351 vulnerable 2026-06-08 08:05:10.984885 fast-jwt: Empty HMAC secret accepted via async key resolver - JWT auth bypass
CRITICAL (9.1)
fast-jwt provides fast JSON Web Token (JWT) implementation. Prior to 6.2.4, a critical authentication-bypass vulnerability in fast-jwt's async key-resolver flow allows any unauthenticated attacker to forge arbitrary JWTs that are accepted as authentic. When the application's key resolver returns an empty string (''), for example via the common keys[decoded.header.kid] || '' JWKS-style fallback, fast-jwt converts it to a zero-length Buffer, hands it to crypto.createSecretKey, derives allowedAlgorithms = ['HS256','HS384','HS512'] from it, and then verifies the token's signature against an empty-key HMAC. The attacker simply computes HMAC-SHA256(key='', input='${header}.${payload}'), which Node accepts without complaint — and the verifier returns the attacker-chosen payload (sub, admin, scopes, etc.) as authentic. This vulnerability is fixed in 6.2.4.
Published: 2026-05-13T19:12:33.347Z
Updated: 2026-05-14T18:13:32.626Z
Reference links
Imported from gcve-enriched-dumps CVE data
CVE:CVE-2026-35042 vulnerable 2026-06-08 07:59:13.436570 fast-jwt accepts unknown `crit` header extensions (RFC 7515 §4.1.11 MUST violation)
HIGH (7.5)
fast-jwt provides fast JSON Web Token (JWT) implementation. In 6.1.0 and earlier, fast-jwt does not validate the crit (Critical) Header Parameter defined in RFC 7515 §4.1.11. When a JWS token contains a crit array listing extensions that fast-jwt does not understand, the library accepts the token instead of rejecting it. This violates the MUST requirement in the RFC.
Published: 2026-04-06T17:02:12.180Z
Updated: 2026-04-07T15:59:49.872Z
Reference links
Imported from gcve-enriched-dumps CVE data
CVE:CVE-2026-35041 vulnerable 2026-06-08 07:59:13.436289 ReDoS in fast-jwt when using RegExp in allowed* leading to CPU exhaustion during token verification
MEDIUM (4.2)
fast-jwt provides fast JSON Web Token (JWT) implementation. From 5.0.0 to 6.2.0, a denial-of-service condition exists in fast-jwt when the allowedAud verification option is configured using a regular expression. Because the aud claim is attacker-controlled and the library evaluates it against the supplied RegExp, a crafted JWT can trigger catastrophic backtracking in the JavaScript regex engine, resulting in significant CPU consumption during verification. This vulnerability is fixed in 6.2.1.
Published: 2026-04-09T14:55:22.807Z
Updated: 2026-04-09T16:15:25.352Z
Reference links
Imported from gcve-enriched-dumps CVE data
CVE:CVE-2026-35040 vulnerable 2026-06-08 07:59:13.435923 db.gcve.eu details were skipped to keep the page responsive. Imported from gcve-enriched-dumps CVE data
CVE:CVE-2026-35039 vulnerable 2026-06-08 07:59:13.435633 db.gcve.eu details were skipped to keep the page responsive. Imported from gcve-enriched-dumps CVE data
CVE:CVE-2026-34950 vulnerable 2026-06-08 07:59:13.362576 db.gcve.eu details were skipped to keep the page responsive. Imported from gcve-enriched-dumps CVE data
CVE:CVE-2025-30144 vulnerable 2026-06-08 07:16:59.113267 db.gcve.eu details were skipped to keep the page responsive. Imported from gcve-enriched-dumps CVE data
CVE:CVE-2023-48223 vulnerable 2026-06-08 06:14:26.178870 db.gcve.eu details were skipped to keep the page responsive. Imported from gcve-enriched-dumps CVE data

Contribute

You can submit an edit proposal for this CPE entry or suggest a related product/vendor addition using the action button above.

Inspect record JSON

Open JSON directly

Open this panel to browse, search, copy or download the JSON record.