Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-34950: CWE-327: Use of a Broken or Risky Cryptographic Algorithm in nearform fast-jwt

0
Critical
VulnerabilityCVE-2026-34950cvecve-2026-34950cwe-327
Published: Mon Apr 06 2026 (04/06/2026, 15:54:03 UTC)
Source: CVE Database V5
Vendor/Project: nearform
Product: fast-jwt

Description

CVE-2026-34950 is a critical vulnerability in nearform's fast-jwt library versions 6. 1. 0 and earlier. The issue arises because the publicKeyPemMatcher regex in the crypto. js file uses a start-of-string anchor (^) that can be bypassed by leading whitespace in the key string. This flaw reintroduces a previously patched JWT algorithm confusion attack (CVE-2023-48223). The vulnerability allows an attacker to exploit the use of a broken or risky cryptographic algorithm, potentially leading to full compromise of JWT validation. No official patch or remediation guidance is currently available from the vendor.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 04/06/2026, 16:30:30 UTC

Technical Analysis

The fast-jwt library provides a fast JSON Web Token implementation. In versions 6.1.0 and earlier, the regex used to match public keys (publicKeyPemMatcher in fast-jwt/src/crypto.js) relies on a ^ anchor that fails to account for leading whitespace in the key string. This weakness defeats the regex's intended validation, effectively re-enabling the JWT algorithm confusion attack that was previously addressed in CVE-2023-48223. The vulnerability is classified under CWE-327, indicating the use of a broken or risky cryptographic algorithm. The CVSS v3.1 base score is 9.1 (critical), reflecting network attack vector, low attack complexity, no privileges or user interaction required, and high confidentiality and integrity impact.

Potential Impact

Successful exploitation of this vulnerability could allow attackers to bypass JWT signature verification by exploiting algorithm confusion, leading to unauthorized access or privilege escalation in systems relying on fast-jwt for authentication. The impact includes full compromise of confidentiality and integrity of JWT-based authentication tokens. There are no known exploits in the wild at this time.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Since no official fix or patch links are provided, users should monitor nearform's official channels for updates. As a temporary measure, avoid using affected versions (<= 6.1.0) of fast-jwt in production environments or implement additional validation layers for JWT processing to mitigate algorithm confusion risks.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-03-31T17:27:08.661Z
Cvss Version
3.1
State
PUBLISHED
Remediation Level
null

Threat ID: 69d3dc220a160ebd92c52bd4

Added to database: 4/6/2026, 4:15:30 PM

Last enriched: 4/6/2026, 4:30:30 PM

Last updated: 4/6/2026, 5:36:00 PM

Views: 5

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses