All vulnerabilities

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.
From discourse/discourse's security advisory. Shortened; the full text is there.

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.

Workarounds as given by discourse/discourse's security advisory.

Affected software

SoftwareAffected versions
DiscourseServers and applications · github:discourse/discourse
  • Every version before 2026.11.0
  • From 2026.7.0-latest before 2026.7.7
  • From 2026.9.0-latest before 2026.9.4
  • From 2026.10.0-latest before 2026.10.3

About Discourse

open source Internet forum software application

From Wikidata, CC0 1.0.
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

References