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

Published Feb 26, 2026
·
Updated

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 userfieldids parameter in DirectoryItemsController#index accepts arbitrary user field IDs without authorization checks, bypassing the visibility restrictions (showonprofile / showonusercard) that are enforced elsewhere (e.g., UserCardSerializer via Guardian#alloweduserfieldids). An attacker can request GET /directoryitems.json?period=all&userfieldids=<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 userfieldids against UserField.publicfields 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 enableuserdirectory site setting.

Affected Software

4 affected components
Discourse<2025.12.2, <2026.1.1, <2026.2.0
Discourse Discourse<2025.12.0
Discourse Discourse>=2026.1.0<2026.1.1
Discourse Discourse=2026.2.0

Event History

Feb 26, 2026
CVE Published
via MITRE·03:10 PM
Data Sourced
via MITRE·03:10 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·04:24 PM
DescriptionSeverityWeaknessAffected Software
Oct 1, 58139
Event
via FIRST·12:37 PM

Frequently Asked Questions

1

What is the severity of CVE-2026-26265?

CVE-2026-26265 is classified as a high severity vulnerability due to its impact on user privacy.

2

How do I fix CVE-2026-26265?

To mitigate CVE-2026-26265, upgrade Discourse to version 2025.12.2, 2026.1.1, or 2026.2.0.

3

What type of vulnerability is CVE-2026-26265?

CVE-2026-26265 is an Insecure Direct Object Reference (IDOR) vulnerability.

4

Who is affected by CVE-2026-26265?

Any user of Discourse versions prior to 2025.12.2, 2026.1.1, and 2026.2.0 is affected by CVE-2026-26265.

5

What can attackers do with CVE-2026-26265?

Attackers can exploit CVE-2026-26265 to retrieve private user field values for all users, including anonymous users.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203