{
  "id": "CVE-2026-34950",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-34950",
  "published_at": "2026-04-06T15:54:03.765Z",
  "title": "fast-jwt has an incomplete fix for CVE-2023-48223: JWT Algorithm Confusion via Whitespace-Prefixed RSA Public Key",
  "vendor": "nearform",
  "product": "fast-jwt",
  "cvss": {
    "score": 9.1,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "fast-jwt provides fast JSON Web Token (JWT) implementation. In 6.1.0 and earlier, the publicKeyPemMatcher regex in fast-jwt/src/crypto.js uses a ^ anchor that is defeated by any leading whitespace in the key string, re-enabling the exact same JWT algorithm confusion attack that CVE-2023-48223 patched.",
  "cwe": "CWE-327",
  "cpes": [
    "cpe:2.3:a:nearform:fast-jwt:*:*:*:*:*:node.js:*:*"
  ],
  "cvss_by_source": {
    "cna": 9.1
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "nearform",
        "product": "fast-jwt",
        "ranges": [
          "\u003c= 6.1.0"
        ],
        "fixed_in": null
      },
      {
        "vendor": "",
        "product": "fast-jwt",
        "ranges": [
          "\u003c 6.2.0"
        ],
        "fixed_in": [
          "6.2.0"
        ],
        "ecosystem": "npm",
        "advisory": "GHSA-mvf2-f6gm-w987"
      }
    ],
    "upgrade": [
      "Upgrade fast-jwt to 6.2.0 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/nearform/fast-jwt/security/advisories/GHSA-mvf2-f6gm-w987"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
