# CVE-2021-39191: URL Redirection to Untrusted Site ('Open Redirect') in mod_auth_openidc

- Severity: Medium 4.7 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/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): 1.74%, higher than 78% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-09-03T00:00:00.000Z
- Modified: 2026-06-17T04:03:16.853Z
- Weaknesses: CWE-601
- Assigned by: GitHub_M

## Description

mod_auth_openidc is an authentication/authorization module for the Apache 2.x HTTP server that functions as an OpenID Connect Relying Party, authenticating users against an OpenID Connect Provider. In versions prior to 2.4.9.4, the 3rd-party init SSO functionality of mod_auth_openidc was reported to be vulnerable to an open redirect attack by supplying a crafted URL in the `target_link_uri` parameter. A patch in version 2.4.9.4 made it so that the `OIDCRedirectURLsAllowed` setting must be applied to the `target_link_uri` parameter. There are no known workarounds aside from upgrading to a patched version.

(As written by CVE List.)

## Affected

- zmartzone mod_auth_openidc: <=2.4.9.3
- openidc mod_auth_openidc: before 2.4.9.4
- fedoraproject fedora: 35; 36
- debian debian_linux: 10.0

## Every score

- GitHub_M: CVSS:3.1 4.7 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:2.0 5.8 Medium `AV:N/AC:M/Au:N/C:P/I:P/A:N`

## References

- <https://github.com/zmartzone/mod_auth_openidc/issues/672> (exploit)
- <https://github.com/zmartzone/mod_auth_openidc/security/advisories/GHSA-2pgf-8h6h-gqg2> (vendor-advisory)
- <https://github.com/zmartzone/mod_auth_openidc/commit/03e6bfb446f4e3f27c003d30d6a433e5dd8e2b3d> (patch, third-party-advisory)
- <https://github.com/zmartzone/mod_auth_openidc/releases/tag/v2.4.9.4> (release-notes)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/32RGPW5LZDLDTB7MKZIGAHPSLFOUNWR5/> (vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/RHXO4O4G2UQS7X6OQJCVZKHZAQ7SAIFB/> (vendor-advisory)
- <https://lists.debian.org/debian-lts-announce/2023/07/msg00020.html> (mailing-list)

## Sources

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

---

Page: https://cve.day/CVE-2021-39191 · Whole record: https://cve.day/CVE-2021-39191.json · Rebuilt by cve.day 2026-11-25T22:58:03.642Z
