# CVE-2022-46177: Discourse password reset link can lead to in account takeover if user changes to a new email

- Severity: Medium 5.7 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:H/I:H/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.74%, higher than 55% of CVEs (2026-12-01)
- Published: 2023-01-05T19:48:05.483Z
- Modified: 2026-09-08T08:46:07.090Z
- Also known as: BIT-DISCOURSE-2022-46177, GHSA-5www-jxvf-vrc3
- Weaknesses: CWE-613
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

Discourse is an option source discussion platform. Prior to version 2.8.14 on the `stable` branch and version 3.0.0.beta16 on the `beta` and `tests-passed` branches, when a user requests for a password reset link email, then changes their primary email, the old reset email is still valid. When the old reset email is used to reset the password, the Discourse account's primary email would be re-linked to the old email. If the old email address is compromised or has transferred ownership, this leads to an account takeover. This is however mitigated by the SiteSetting `email_token_valid_hours` which is currently 48 hours. Users should upgrade to versions 2.8.14 or 3.0.0.beta15 to receive a patch. As a workaround, lower `email_token_valid_hours ` as needed.

(As written by CVE List.)

## Affected

- discourse discourse: < 2.8.14; >= 2.9.0.beta0, < 3.0.0.beta16; before 2.8.14; 1.1.0; 1.2.0; 1.3.0; 1.4.0; 1.5.0
- discourse (Bitnami): before 2.8.14

## Every score

- GitHub_M: CVSS:3.1 5.7 Medium `CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:N`
- NVD: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N`
- Bitnami Vulnerability Database: rating High

## References

- <https://github.com/discourse/discourse/security/advisories/GHSA-5www-jxvf-vrc3> (advisory, third-party-advisory)
- <https://github.com/discourse/discourse/commit/4bf306f0e3bf54a9ef9c5886bf1cfb85c20da570> (advisory, patch, third-party-advisory)
- <https://github.com/discourse/discourse/commit/83944213b2b2454af80d0407f60d67641b1f0b38> (advisory, patch, third-party-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-46177> (web)

## Sources

- CVE List: [CVE-2022-46177](https://www.cve.org/CVERecord?id=CVE-2022-46177), CVE Terms of Use, modified 2025-03-10
- NVD: [CVE-2022-46177](https://nvd.nist.gov/vuln/detail/CVE-2022-46177), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-DISCOURSE-2022-46177](https://osv.dev/vulnerability/BIT-DISCOURSE-2022-46177), Apache-2.0, modified 2026-09-08

---

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