Description
Vulnerability in Spring Spring Security. When an application configures JWT decoding with NimbusJwtDecoder  or NimbusReactiveJwtDecoder, it must configure an OAuth2TokenValidator<Jwt> separately, for example by calling setJwtValidator.This issue affects Spring Security: from 6.3.0 through 6.3.14, from 6.4.0 through 6.4.14, from 6.5.0 through 6.5.9, from 7.0.0 through 7.0.4.
Published: 2026-04-22
Score: 5.3 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Inadequate Token Validation
Action: Patch
AI Analysis

Impact

Spring Security allows developers to configure JWT decoding using NimbusJwtDecoder or NimbusReactiveJwtDecoder. However, if an application forgets to configure an OAuth2TokenValidator<Jwt> (such as by calling setJwtValidator) the system will accept any JWT without validating its signature, issuer, or expiration. This misconfiguration can allow an attacker to forge a token and gain unauthorized access to protected resources. The weakness corresponds to missing validation and configuration errors.

Affected Systems

Spring Security, versions 6.3.0 through 6.3.14, 6.4.0 through 6.4.14, 6.5.0 through 6.5.9, and 7.0.0 through 7.0.4.

Risk and Exploitability

The CVSS score of 5.3 indicates a medium impact. The absence of an EPSS score and non‑listing in KEV suggests this vulnerability has not yet been widely exploited. The attack vector likely requires an ability to modify or deploy application configuration – typically a developer or administrator – to bypass token validation. Until the validator is added or the library is updated, the application remains vulnerable to token forgery and unauthorized access.

Generated by OpenCVE AI on April 22, 2026 at 07:26 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade to the latest Spring Security release that includes the mandatory token validator (6.3.15 or later, 6.4.15 or later, 6.5.10 or later, 7.0.5 or later).
  • Verify that after configuring NimbusJwtDecoder or NimbusReactiveJwtDecoder you call setJwtValidator with a suitable OAuth2TokenValidator<Jwt> instance.
  • If an immediate upgrade is not possible, explicitly add a default validator (for example a DelegatingOAuth2TokenValidator combining timestamp and issuer validation) to enforce token checks.

Generated by OpenCVE AI on April 22, 2026 at 07:26 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

References
History

Wed, 22 Apr 2026 17:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-20
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Wed, 22 Apr 2026 12:15:00 +0000

Type Values Removed Values Added
First Time appeared Spring
Spring spring Security
Vendors & Products Spring
Spring spring Security

Wed, 22 Apr 2026 07:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-749
CWE-863

Wed, 22 Apr 2026 05:45:00 +0000

Type Values Removed Values Added
Description Vulnerability in Spring Spring Security. When an application configures JWT decoding with NimbusJwtDecoder  or NimbusReactiveJwtDecoder, it must configure an OAuth2TokenValidator<Jwt> separately, for example by calling setJwtValidator.This issue affects Spring Security: from 6.3.0 through 6.3.14, from 6.4.0 through 6.4.14, from 6.5.0 through 6.5.9, from 7.0.0 through 7.0.4.
Title Potential Security Misconfiguration when Using withIssuerLocation
References
Metrics cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:N'}


Subscriptions

Spring Spring Security
cve-icon MITRE

Status: PUBLISHED

Assigner: vmware

Published:

Updated: 2026-04-22T16:00:09.573Z

Reserved: 2026-01-09T06:55:03.990Z

Link: CVE-2026-22748

cve-icon Vulnrichment

Updated: 2026-04-22T15:46:49.013Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-04-22T06:16:04.040

Modified: 2026-04-22T21:23:52.620

Link: CVE-2026-22748

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-04-22T11:44:45Z

Weaknesses