# CVE-2022-39338: Stored cross site scripting (XSS) vulnerability via Authorization Endpoint in user_oidc

- Severity: Low 3.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.79%, higher than 57% of CVEs (2026-12-01)
- Published: 2022-11-25T00:00:00.000Z
- Modified: 2026-06-17T04:58:10.217Z
- Weaknesses: CWE-20, CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

user_oidc is an OpenID Connect user backend for Nextcloud. Versions prior to 1.2.1 did not properly validate discovery urls which may lead to a stored cross site scripting attack vector. The impact is limited due to the restrictive CSP that is applied on this endpoint. Additionally this vulnerability has only been shown to be exploitable in the Safari web browser. This issue has been addressed in version 1.2.1. Users are advised to upgrade. Users unable to upgrade should urge their users to avoid using the Safari web browser.

(As written by CVE List.)

## Affected

- nextcloud security-advisories: < 1.2.1
- nextcloud openid_connect_user_backend: before 1.2.1

## Every score

- GitHub_M: CVSS:3.1 3.5 Low `CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:L/I:L/A:N`
- NVD: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/nextcloud/security-advisories/security/advisories/GHSA-5fpw-795h-rg57> (third-party-advisory)
- <https://github.com/nextcloud/user_oidc/pull/496> (patch, third-party-advisory)
- <https://hackerone.com/reports/1687410> (permissions-required, third-party-advisory)

## Sources

- CVE List: [CVE-2022-39338](https://www.cve.org/CVERecord?id=CVE-2022-39338), CVE Terms of Use, modified 2025-04-23
- NVD: [CVE-2022-39338](https://nvd.nist.gov/vuln/detail/CVE-2022-39338), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-39338 · Whole record: https://cve.day/CVE-2022-39338.json · Rebuilt by cve.day 2026-11-25T22:58:17.072Z
