CVE-2026-107722Nearform Fast-jwt improper verification of cryptographic signature
CVSS score
9.8
Critical
CVSS 3.1 from github.com
Exploit probability (EPSS)
0.36%
0.36% chance of exploitation in the next 30 days, higher than 29.9% of all CVEs.
CISA KEV
Not in KEV
No confirmed exploitation reported by CISA so far.
Official description
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.
Source: NVD · CNA: security-advisories@github.com
How to fix it, step by step
Check whether you're affected
Find every system running nearform Fast-jwt and compare its version with the affected versions.
Update to a fixed version
- Update Fast-jwt to 6.3.0 or later.
Confirm the fix
Check that every affected system now reports a fixed version, and recheck the vendor's advisory: fixes are sometimes revised.
Was this useful?
How it can be exploited
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Values in red make the vulnerability easier to exploit or more damaging. CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Affected products
| Affected products | Versions |
|---|---|
| nearform Fast-jwt | >= 6.2.0, < 6.3.0 |
Weakness
- CWE-347 improper verification of cryptographic signature
Timeline
- Published:
- Last modified:
Frequently asked questions
Is CVE-2026-107722 being exploited?
There is no confirmed exploitation in CISA's KEV catalog so far. Its EPSS score estimates a 0.4% probability of exploitation in the next 30 days.
What is the CVSS score of CVE-2026-107722?
CVE-2026-107722 has a CVSS 3.1 base score of 9.8 (critical).
Which versions are affected?
Nearform Fast-jwt (>= 6.2.0, < 6.3.0)
Is there a patch for CVE-2026-107722?
The official record links to vendor advisories or patches; see “What to do” above.
References
Data: NVD, CVE.org (cvelistV5), CISA KEV and FIRST EPSS. Summary written by RedCVE with AI assistance from the official data.