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

Advisory record · `GHSA-7q9c-h23x-65fq`

- **Identifiers:** `GHSA-7q9c-h23x-65fq` · `CVE-2016-4977`
- **State:** Confirmed
- **Severity:** CVSS 8.8 High
- **Critical:** Yes: CVSS 7+ and EPSS
- **Published:** 18 Oct 2018
- **Updated:** 28 Nov 2024
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 18 Oct 2018, 18:06 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Critical

Critical, because:

- CVSS score 8.8 (7.0 or more) and EPSS 0.80 (0.1 or more): a high score and a real chance of exploitation in the next 30 days.

How we decide what’s critical: <https://agentprime.io/advisories/critical.md>

## Affected packages

- `org.springframework.security.oauth:spring-security-oauth2` (Maven): affected `>=2.0.0, <2.0.10 || >=1.0.0, <1.0.5`; fixed in `2.0.10`, `1.0.5`

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> Spring Security OAuth's spring-security-oauth2 package is vulnerable in versions 2.0.0 through 2.0.9 and 1.0.0 through 1.0.5 when the whitelabel views are used. The response_type parameter is evaluated as a Spring SpEL expression, so a remote attacker who can send a crafted authorization request can execute code on the server. Upgrade to version 2.0.10 or 1.0.5.

Written 8 Nov 2026.

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 8.8 High, CVSS 3.0: `CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`, from GitHub Advisory Database

- **CISA KEV:** Not listed.
- **EPSS:** 0.80, the 99th percentile, on 19 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 31 Oct 2026, 15:13 UTC: First seen by agentprime
- 31 Oct 2026, 15:13 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-7q9c-h23x-65fq)

## Sources

- [GitHub Advisory Database: GHSA-7q9c-h23x-65fq](https://github.com/advisories/GHSA-7q9c-h23x-65fq)
- [OSV: GHSA-7q9c-h23x-65fq](https://osv.dev/vulnerability/GHSA-7q9c-h23x-65fq)
- <https://nvd.nist.gov/vuln/detail/CVE-2016-4977>
- <https://github.com/advisories/GHSA-7q9c-h23x-65fq>
- <https://lists.apache.org/thread.html/0841d849c23418c473ccb9183cbf41a317cb0476e44be48022ce3488@%3Cdev.fineract.apache.org%3E>
- <https://lists.apache.org/thread.html/37d7e820fc65a768de3e096e98382d5529a52a039f093e59357d0bc0@%3Cdev.fineract.apache.org%3E>
- <https://lists.apache.org/thread.html/5e6dd946635bbcc9e1f2591599ad0fab54f2dc3714196af3b17893f2@%3Cannounce.apache.org%3E>
- <https://lists.apache.org/thread.html/96c017115069408cec5e82ce1e6293facab398011f6db7e1befbe274@%3Cdev.fineract.apache.org%3E>
- <https://pivotal.io/security/cve-2016-4977>
- <http://www.openwall.com/lists/oss-security/2019/10/16/1>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-7q9c-h23x-65fq>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-7q9c-h23x-65fq/>. Everything for agents: <https://agentprime.io/llms.txt>.
