Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconObtain valid OAuth2 token from provider
-
DeliveryDecode token to access claims
-
ExploitModify JWT claims in memory
-
InstallReplay modified token to application
-
C2Decoder validates signature only
-
ExecuteValidator stage skipped
-
ImpactBypassed authorization check
-
Step 8Access unauthorized resources
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V2 - Validation and Business Logic Input validation, allowlisting
|
| Exploitation Conditions | Exploitation requires four specific conditions: (1) The application must use Spring Security's NimbusJwtDecoder or NimbusReactiveJwtDecoder for JWT decoding. (2) The decoder instance must NOT have an explicit OAuth2TokenValidator configured via setJwtValidator() or equivalent method. (3) The attacker must possess valid credentials or a valid JWT from the same OAuth2 authorization server, enabling them to craft a token with a valid signature. (4) The application must rely on JWT claims (such as issuer, audience, or scope) for authorization decisions rather than solely on cryptographic signature validity. Applications that follow Spring Security best practices by explicitly configuring validators, or applications that do not use JWT-based OAuth2 authentication, are not affected. The vulnerability is NOT remotely exploitable by completely unauthenticated attackers without any valid token. |
| Impact | Real-world risk is moderate to high despite CVSS 5.3 score. The CVSS vector (AV:N/AC:H/PR:L) correctly identifies network-accessible exploitation requiring authenticated access and elevated attack complexity, reflecting that an attacker must already have valid OAuth2 credentials or tokens. However, the integrity impact (I:H) is significant - attackers can bypass authorization controls. The high attack complexity (AC:H) likely reflects the requirement for specific decoder configuration patterns, which is common in Spring applications but not universal. No KEV (CISA Known Exploited Vulnerability) status, POC availability, or EPSS score was provided in the input data. The risk is not a remote unauthenticated code execution scenario, but rather a misconfiguration vulnerability with high impact for applications that fail to follow secure configuration practices. Organizations using NimbusJwtDecoder without explicit validator configuration face real integrity risk. Defender assessment: patch immediately for affected versions, but focus scanning efforts on Spring Security deployments in OAuth2/JWT-protected applications. |
| Exploit ScenarioDerived | An attacker with valid OAuth2 credentials obtains a legitimate JWT from the authorization server. The attacker modifies the JWT claims (e.g., changes the 'sub' claim to a different user ID or adds/removes 'scope' claims) without altering the signature. The attacker sends the modified JWT to a Spring Security-protected application that uses NimbusJwtDecoder without an explicit OAuth2TokenValidator. The decoder verifies the cryptographic signature (which remains valid because the key was not modified) but skips semantic validation due to missing validator configuration, allowing the attacker to assume a different user's identity or access resources outside their authorized scope. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 22, 2026
JWT token validation bypass in Spring Security allows authenticated attackers to forge or manipulate JWT tokens when NimbusJwtDecoder or NimbusReactiveJwtDecoder is used without explicit OAuth2TokenValidator configuration, enabling unauthorized access to protected resources. The vulnerability affects Spring Security versions 6.3.0-6.3.14, 6.4.0-6.4.14, 6.5.0-6.5.9, and 7.0.0-7.0.4. CVSS 5.3 (CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:N) reflects network-accessible exploitation requiring low-privilege authentication and high attack complexity.
RemediationAI
Upgrade Spring Security to patched versions: 6.3.15 or later for the 6.3 branch, 6.4.15 or later for the 6.4 branch, 6.5.10 or later for the 6.5 branch, or 7.0.5 or later for the 7.0 branch. For applications unable to upgrade immediately, explicitly configure an OAuth2TokenValidator<Jwt> for every NimbusJwtDecoder or NimbusReactiveJwtDecoder instance by calling setJwtValidator() with a validator that enforces issuer, audience, expiration, and scope validation appropriate to your OAuth2 provider. Example: decoder.setJwtValidator(new DelegatingOAuth2TokenValidator<>(new JwtTimestampValidator(), new JwtIssuerValidator(expectedIssuer), new JwtClaimValidator<String>("aud", audience::equals))). This workaround ensures semantic validation is not skipped, though upgrading is strongly preferred. Refer to Spring Security documentation at https://spring.io/security/cve-2026-22748 for detailed remediation guidance.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in maven, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Spring Security's NimbusJwtDecoder and NimbusReactiveJwtDecoder are responsible for decoding and validating JSON Web Tokens (JWTs) in OAuth2/OpenID Connect flows. JWT validation requires two distinct steps: cryptographic signature verification (performed by the decoder) and semantic/business-logic validation (performed by an OAuth2TokenValidator implementation). When an application instantiates the decoder without explicitly calling setJwtValidator() to attach a custom validator, the decoder may skip critical validation checks such as issuer verification, audience claim validation, expiration enforcement, or scope validation. This omission allows attackers with valid credentials to the OAuth2 provider to craft or replay tokens that bypass application-level authorization logic, even though the signature itself remains valid. The root cause is a configuration-dependent trust model where secure defaults are not enforced, placing the burden entirely on developers to remember additional configuration steps.
Know when Spring gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
Primary rating from NVD.
CVSS VectorNVD
Lifecycle Timeline
2DescriptionNVD
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.
Blast Radius
ecosystem impact- 74 maven packages depend on org.springframework.security:spring-security-oauth2-jose (17 direct, 57 indirect)
Ecosystem-wide dependent count for version 6.3.0.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Related Vulnerabilities in Spring Security Authentication and Authorization
View all 5Access control bypass in SpringBlade v4.5.0 importUser function allows low-privileged users to import sensitive user dat
Spring Cloud Config Server contains a path traversal vulnerability when using the native file system backend, allowing u
Spring Framework MVC applications can be vulnerable to a “Path Traversal Vulnerability” when deployed on a non-compliant
SpringBlade v4.5.0 has an access control flaw in authRoutes allowing low-privileged users to escalate to admin through t
Remote code execution in Spring for GraphQL versions 1.3.0-1.3.8, 1.4.0-1.4.5, and 2.0.0-2.0.3 allows unauthenticated at
Server-Sent Events (SSE) stream corruption affects Spring MVC applications built on the functional web framework across
Spring AI versions 1.0.0 through 1.0.4 and 1.1.0 through 1.1.3 allow unauthenticated remote code execution through Sprin
Unsafe JSON deserialization in Spring Framework's JMS message converters (MappingJackson2MessageConverter and JacksonJso
Spring Security Aspects may not correctly locate method security annotations on private methods. Rated critical severity
Safety-guard bypass in the Spring Framework SpEL engine (VMware/Broadcom) lets attacker-controlled expression input esca
Directory traversal in Spring Cloud Config server module allows remote unauthenticated attackers to read arbitrary files
Spring Security fails to properly write HTTP response headers in servlet applications across multiple versions (5.7.0-5.
EUVD-2026-24610
GHSA-cvc6-q2cp-2xhw
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB