Servers and applications
GHSA-hqv9-j9vc-6p7h
Secure-upload authorization bypass via foreign URL origin spoofing
- Severity
- Medium 4.3
- Published
- 24 Nov 2026
- Last changed
- 24 Nov 2026
- Added to UpHeron
- 24 Nov 2026
- Fixed in
- 2026.7.7, 2026.9.4, 2026.10.3, 2026.11.0
- Attack
- Over the network · Needs a user account · No user action needed
- Attacker can
- Read some data
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N- Sources
- Project advisories (GitHub)
Description
An authenticated user can cause the server to sign, fetch, and re-host the content of a private upload into a publicly visible post, bypassing the per-post authorization gate that normally restricts who can view a secure upload's content.
A secure-upload URL served from an attacker-controlled host (or one with a mismatched scheme on the same host) was incorrectly recognized as a local secure-upload reference. The server would then generate a presigned link to the protected S3 object, download it, and copy it into the attacker's public post, exposing content the attacker cannot legitimately see.
The vulnerability is bounded in the following ways:
- Requires an authenticated user account (standard trust level, no special group membership).
- Requires secure_uploads and download_remote_images_to_local site settings to be enabled with an S3-backed file store.
- Requires knowledge or a feasible guess of the upload's content-addressed SHA; bulk enumeration is not possible.
Workarounds
- Disable the download remote images to local site setting (SiteSetting.download_remote_images_to_local). This prevents the hotlinked-image pipeline from processing any remote URL, eliminating the signing and copying path. Note: this also disables legitimate remote-image downloading.
- Disable secure uploads (SiteSetting.secure_uploads). This removes the feature entirely and eliminates the affected code path. Note: this changes upload visibility semantics site-wide.
Either setting change can be made from the Admin UI under Site Settings without downtime.
Affected software
| Software | Affected versions |
|---|---|
DiscourseServers and applications · github:discourse/discourse |
|
About Discourse
open source Internet forum software application
- Docker Hub pulls
- 183,015Docker Hub, 22 Nov 2026
- GitHub stars
- 48,105GitHub, 22 Nov 2026
- Forks
- 9,061GitHub, 22 Nov 2026
- License
- GNU General Public License, version 2.0Wikidata
- Written in
- Ruby, JavaScriptWikidata
- First released
- 2013Wikidata
- First published on GitHub
- 12 Jan 2013GitHub
Website Source code Docker image
Vulnerabilities in Discourse
- In our list
- 344
- Published in the last 12 months
- 188
- Critical, last 12 months
- 3
- High, last 12 months
- 32
- Known exploited
- 0
- GHSA-jv6w-2gm8-vfpwUnauthorized Group Membership via Email/Invite Signup User FieldsHigh 8.2 24 Nov 2026
- GHSA-3r67-rvgq-ggwqAccess granted to an unverified email survives an activation email changeMedium 6.5 24 Nov 2026
- GHSA-76mf-9xwc-vg66Whisper content disclosed outside configured whisper groupsMedium 4.9 19 Nov 2026
- GHSA-5gx7-f5fg-4jgwRead-only API keys could authenticate users to sites connected through DiscourseConnectMedium 6.4 19 Nov 2026
- GHSA-q3x3-2cm7-fq79System messages give the sender's authority to quoted member textMedium 5.4 19 Nov 2026
- GHSA-fx7j-6fh9-xwvmUnauthenticated DoS: integer user API public key triggers RSA key generationMedium 10 Nov 2026
References
- GitHub Advisory Database https://github.com/advisories/GHSA-hqv9-j9vc-6p7h
- github.com https://github.com/discourse/discourse/security/advisories/GHSA-hqv9-j9vc-6p7h