Synology DSM OAuth 2.0 Argument Injection — CVSS 9.8

[](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-120382)
[](https://nvd.nist.gov/vuln/detail/CVE-2026-120382)
[](https://cwe.mitre.org/data/definitions/88.html)
[](https://python.org)
[](https://github.com/cveForge)
## Metadata
| Field | Value |
|-------|-------|
| **CVE ID** | CVE-2026-120382 |
| **Product** | Synology DiskStation Manager (DSM) |
| **CVSS Score** | 9.8 CRITICAL |
| **CWE** | CWE-88 — Argument Injection |
| **Attack Vector** | Network |
| **Authentication** | None |
## Description
Synology DSM's OAuth 2.0 authorization endpoint does not properly validate the `redirect_uri` parameter, allowing an attacker to inject additional OAuth parameters. This can be exploited to hijack authorization codes and gain unauthorized access to victim accounts.
## Attack Flow
```mermaid
flowchart LR
A[Unauthenticated Attacker] -->|Crafted OAuth authorize URL| B[Synology DSM]
B -->|redirect_uri not validated| C[OAuth Engine]
C -->|Injected params accepted| D[Auth Code sent to attacker]
D -->|Token exchange| E[Account Takeover]
```
## PoC Usage
```bash
python poc.py https://nas.target:5001 https://attacker.com/callback
```
## Remediation
- Strictly validate and allowlist `redirect_uri` against pre-registered values
- Reject any redir