# CVE-2026-26265: Discourse has IDOR vulnerability in the directory items endpoint

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/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.25%, higher than 70% of CVEs (2026-12-01)
- Published: 2026-02-26T15:10:25.929Z
- Modified: 2026-09-08T08:46:20.644Z
- Also known as: BIT-DISCOURSE-2026-26265, GHSA-crxf-p6jm-vpgw
- Weaknesses: CWE-639, CWE-863
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

Discourse is an open source discussion platform. Prior to versions 2025.12.2, 2026.1.1, and 2026.2.0, an IDOR vulnerability in the directory items endpoint allows any user, including anonymous users, to retrieve private user field values for all users in the directory. The `user_field_ids` parameter in `DirectoryItemsController#index` accepts arbitrary user field IDs without authorization checks, bypassing the visibility restrictions (`show_on_profile` / `show_on_user_card`) that are enforced elsewhere (e.g., `UserCardSerializer` via `Guardian#allowed_user_field_ids`). An attacker can request `GET /directory_items.json?period=all&user_field_ids=<id>` with any private field ID and receive that field's value for every user in the directory response. This enables bulk exfiltration of private user data such as phone numbers, addresses, or other sensitive custom fields that admins have explicitly configured as non-public. The issue is patched in versions 2025.12.2, 2026.1.1, and 2026.2.0 by filtering `user_field_ids` against `UserField.public_fields` for non-staff users before building the custom field map. As a workaround, site administrators can remove sensitive data from private user fields, or disable the user directory via the `enable_user_directory` site setting.

(As written by CVE List.)

## Affected

- discourse discourse: < 2025.12.2; >= 2026.1.0-latest, < 2026.1.1; >= 2026.2.0-latest, < 2026.2.0; before 2025.12.0; from 2026.1.0 before 2026.1.1; 2026.2.0
- discourse (Bitnami): before 2025.12.2; from 2026.1.0 before 2026.1.1

## Every score

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

## References

- <https://github.com/discourse/discourse/security/advisories/GHSA-crxf-p6jm-vpgw> (advisory, vendor-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-26265> (web)

## Sources

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

---

Page: https://cve.day/CVE-2026-26265 · Whole record: https://cve.day/CVE-2026-26265.json · Rebuilt by cve.day 2026-11-25T22:59:14.963Z
