NIST deprecates RSA-2048 from 2030. Find every one of them before attackers do.
☕
☕ Maven
Not in CISA KEV
HIGH severity

CVE-2016-4977 — spring-security-oauth2

HIGH

CVE-2016-4977 is a high-severity (CVSS 8.8) CWE-19 vulnerability in org.springframework.security.oauth:spring-security-oauth2. 2 public exploit or proof-of-concept references are indexed, so weaponization risk is real. A fix is available for org.springframework.security.oauth:spring-security-oauth2 — see the affected versions and patch details below.

Spring Security OAuth vulnerable to remote code execution (RCE) via specially crafted request using whitelabel views

Also known asGHSA-7q9c-h23x-65fq
Published
Updated
Affected
2 pkgs
Patched
2 / 2
Exploits
2 known
Exploitation data as of Nov 5, 2026 · OSV.dev, NVD, FIRST.org (EPSS)

EPSS Exploitation Probability

via FIRST.org ↗
79.2%probability of exploitation in next 30 days
Very High Risk0.00%
Lower risk than most CVEs100th percentile — riskier than 100% of all scored CVEsHighest risk
74.8%82.6%90.3%98.0%93.7%79.2%May 26Sep 26Nov 26

Probability of exploitation in the next 30 days, from FIRST.org EPSS.

How urgent is this, really

Where this sits among everything scored

Real-World Exposure

2 pkgs affected
☕org.springframework.security.oauth:spring-security-oauth2☕org.springframework.security.oauth:spring-security-oauth2

Real-time download stats are indexed for npm and PyPI packages. This vulnerability affects Maven packages — download data is not available via public APIs for these ecosystems.

Description

When processing authorization requests using the whitelabel views in Spring Security OAuth 2.0.0 to 2.0.9 and 1.0.0 to 1.0.5, the response_type parameter value was executed as Spring SpEL which enabled a malicious user to trigger remote code execution via the crafting of the value for response_type.

Affected Packages

2 total 2 fixed
EcosystemPackageVulnerable rangeFix
☕Mavenorg.springframework.security.oauth:spring-security-oauth2≥ 2.0.0&&< 2.0.102.0.10org.springframework.security.oauth:spring-security-oauth2:2.0.10
☕Mavenorg.springframework.security.oauth:spring-security-oauth2≥ 1.0.0&&< 1.0.51.0.5org.springframework.security.oauth:spring-security-oauth2:1.0.5

Affected Products

1 product · 16 configurations
Application
spring security oauthpivotal
16 versions
1.0.01.0.11.0.21.0.31.0.41.0.52.0.02.0.12.0.22.0.32.0.42.0.5
Exploits & PoCs
2

Research use only. For defensive security, authorized penetration testing, and academic research only. Never execute exploit code against systems without explicit written authorization.

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for org.springframework.security.oauth:spring-security-oauth2, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.

  2. Fix

    Update org.springframework.security.oauth:spring-security-oauth2 to 2.0.10 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2016-4977 is resolved across your whole dependency graph.

  3. Workarounds

    If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.

How to detect CVE-2016-4977

A community-maintained Nuclei template exists for this CVE. You can scan for it directly:

nuclei -id cve-2016-4977 -u https://target
Template
Spring Security OAuth2 Remote Command Execution
Severity
high
Impact
Successful exploitation of this vulnerability can lead to remote code execution, compromising the affected system.
Remediation
Users of 1.0.x should not use whitelabel views for approval and error pages. Users of 2.0.x should either not use whitelabel views for approval and error pages or upgrade to 2.0.10 or later.

Template by ProjectDiscovery nuclei-templates (princechaddha), MIT licensed. View the full template. Scan only systems you are authorised to test.

Frequently Asked Questions

When processing authorization requests using the whitelabel views in Spring Security OAuth 2.0.0 to 2.0.9 and 1.0.0 to 1.0.5, the response_type parameter value was executed as Spring SpEL which enabled a malicious user to trigger remote code execution via the crafting of the value for response_type.
O3 Security · Impact-Aware SCA

Is CVE-2016-4977 in your dependencies?

Find it across Maven, including transitive dependencies.

CVE-2016-4977: spring-security RCE — Fixed in 2.0.10