Skip to main content
COSMICBYTEZLABS
NewsSecurityHOWTOsToolsTraining
StudyProjectsNewsletterHire MeAbout
Subscribe

Press Enter to search or Esc to close

News
Security
HOWTOs
Tools
Training
Study
Projects
Newsletter
Hire Me
About
RSS Feed
Reading List
Subscribe

Stay in the Loop

Get the latest security alerts, tutorials, and tech insights delivered to your inbox.

Subscribe NowFree forever. No spam.
COSMICBYTEZLABS

Your trusted source for IT intelligence, cybersecurity insights, and hands-on technical guides.

2567+ Articles
161+ Guides

CONTENT

  • Latest News
  • Security Alerts
  • HOWTOs
  • Checklists
  • Projects
  • Exam Prep

RESOURCES

  • Search
  • Browse Tags
  • Newsletter Archive
  • Reading List
  • RSS Feed

COMPANY

  • About Us
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CosmicBytez Labs. All rights reserved.

System Status: Operational
  1. Home
  2. Security
  3. CVE-2026-59354: Spring Security OAuth2 Authorization Server Dynamic Client Registration Flaw
CVE-2026-59354: Spring Security OAuth2 Authorization Server Dynamic Client Registration Flaw

Critical Security Alert

This vulnerability is actively being exploited. Immediate action is recommended.

SECURITYCRITICALCVE-2026-59354

CVE-2026-59354: Spring Security OAuth2 Authorization Server Dynamic Client Registration Flaw

Critical flaw (CVSS 9.6) in Spring Security Authorization Server 7.0.0-7.0.4 lets a registered client trigger stored XSS, SSRF, or privilege escalation.

Dylan H.

Security Team

August 28, 2026
3 min read

Affected Products

  • Spring Security OAuth2 Authorization Server 7.0.0 - 7.0.4 (fixed in 7.0.5)

Overview

Spring has disclosed a critical vulnerability in Spring Security's OAuth2 Authorization Server module, tracked as CVE-2026-59354 (CVSS 9.6). When an application explicitly enables Dynamic Client Registration (DCR), the registration endpoint fails to sufficiently validate certain client metadata fields supplied by the registering party.

An attacker who holds a valid Initial Access Token — the credential DCR uses to gate who may register a new OAuth2 client — can submit crafted metadata during registration. Depending on how the deploying application consumes that metadata downstream, this can result in stored Cross-Site Scripting (XSS), Server-Side Request Forgery (SSRF), or privilege escalation. Researcher Kelvin Mbogo is credited with the responsible disclosure.


Technical Details

FieldValue
CVE IDCVE-2026-59354
CVSS Score9.6 (Critical)
CVSS VectorCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N
CWECWE-20 — Improper Input Validation
Attack VectorNetwork
Privileges RequiredLow (valid Initial Access Token)
User InteractionNone
Affected Versions7.0.0 through 7.0.4
Fixed Version7.0.5
Published2026-08-27 (NVD)

How It Works

Spring Security's Authorization Server supports RFC 7591 Dynamic Client Registration, letting OAuth2 clients self-register rather than requiring an administrator to provision them manually. This is gated behind an Initial Access Token — a credential intended to restrict registration to trusted callers.

The flaw is that once a caller presents a valid token, the registration endpoint does not sufficiently validate the client metadata fields it accepts (for example, redirect URIs, client name, or logo/JWKS URIs). Because that metadata is later rendered in admin consoles, used to construct outbound requests, or trusted for authorization decisions in some deployments, an attacker-controlled value can be weaponized into stored XSS, SSRF, or privilege escalation — the specific outcome depends on how the application built on top of the authorization server consumes the registered metadata.


Impact

  • Stored XSS — malicious client metadata rendered in an admin or client-management UI can execute in the context of an administrator's session
  • SSRF — metadata fields that get fetched or dereferenced server-side (e.g., JWKS URI, logo URI) can be pointed at internal infrastructure
  • Privilege escalation — insufficiently validated metadata used in authorization decisions could let a registered client claim capabilities it shouldn't have
  • The Initial Access Token requirement limits this to semi-trusted callers — but any deployment that issues these tokens broadly (self-service developer portals, multi-tenant platforms) is meaningfully exposed

Remediation

  • Upgrade to Spring Security 7.0.5 or later. Per the vendor advisory, no further mitigation is necessary once patched
  • Until patched, restrict issuance of Initial Access Tokens to fully trusted parties only
  • Audit dynamically registered clients for suspicious metadata (unexpected redirect URIs, external logo/JWKS hosts) and review any recently onboarded clients
  • If DCR is not actively required, disable it until the upgrade is applied

References

  • Spring Security Advisory — CVE-2026-59354
  • NVD — CVE-2026-59354
#Spring Security#OAuth2#CVE-2026-59354#SSRF#XSS#Java

Related Articles

Apache CXF OAuth2 Scope Injection Lets Clients Claim Admin Privileges

A critical flaw in Apache CXF's OAuth2 Dynamic Client Registration endpoint stores attacker-supplied scope values verbatim, allowing malicious clients to self-assign privileged or administrative permissions. CVSS 9.1.

5 min read

CVE-2026-22753: Spring Security Filter Chain Bypass via PathPattern Matcher

A high-severity flaw in Spring Security allows security filter chains to silently fail to match requests when PathPatternRequestMatcher.Builder is used to...

6 min read

Fastjson 1.x RCE Actively Exploited With No Patch Available

Attackers are actively exploiting CVE-2026-16723, a critical remote code execution flaw in Alibaba's Fastjson 1.x library affecting Spring Boot...

4 min read
Back to all Security Alerts