Read the docs

Secure-upload authorization bypass via foreign URL origin spoofing

Priority LOW 35Published · Updated

Key facts

Attack vector
Network
Privileges required
Low
User interaction
None
Attack complexity
Low
Impact type
—
Confidentiality · integrity · availability
Low · None · None
Fix status
Fixed

Attack profile from CVSS 3.1 · GHSA-hqv9-j9vc-6p7h. Fix status from GitHub.

Summary

Discourse lets an authenticated user with standard trust cause the server to fetch and re-host private secure-upload content into a public post. A secure-upload URL from an attacker-controlled host, or one with a mismatched scheme on the same host, was wrongly treated as a local reference, so the server signs and downloads the protected S3 object, bypassing the per-post authorization check. Exploitation requires the secure_uploads and download_remote_images_to_local settings, an S3-backed file store, and knowledge or a feasible guess of the upload's SHA. The CVSS 3.1 base score is 4.3 (MEDIUM).

Written with Claude Haiku 5.5 from the sources below · 2026-11-24

Description from the GitHub advisory

### Impact 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. - Affects a single specific object per crafted URL; no integrity or availability impact exists. Default-port deployments and installations that do not use S3-backed secure uploads are not affected by the secondary port-resolution defect described below. A separate minor correctness issue affected custom-port deployments where a scheme-relative URL with an omitted port was inconsistently matched. ### 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. <!-- patch-triage-lifecycle:3ec395c23a1e5b5c7797fe24b0c7c5812afe8d63a40e95fd81b6f60c1e750f48 -->

Why it matters now

Fix Fixed Discourse: 2026.11.0, 2026.10.3, 2026.9.4 +1

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
—Discourse—2026.11.0Patch availableGHSA-hqv9-j9vc-6p7h
—Discourse>= 2026.10.0-latest2026.10.3Patch availableGHSA-hqv9-j9vc-6p7h
—Discourse>= 2026.9.0-latest2026.9.4Patch availableGHSA-hqv9-j9vc-6p7h
—Discourse>= 2026.7.0-latest2026.7.7Patch availableGHSA-hqv9-j9vc-6p7h
  • Discourse Vendor— Affected — Fixed in 2026.11.0 Patch available GHSA-hqv9-j9vc-6p7h
  • Discourse Vendor— Affected >= 2026.10.0-latest Fixed in 2026.10.3 Patch available GHSA-hqv9-j9vc-6p7h
  • Discourse Vendor— Affected >= 2026.9.0-latest Fixed in 2026.9.4 Patch available GHSA-hqv9-j9vc-6p7h
  • Discourse Vendor— Affected >= 2026.7.0-latest Fixed in 2026.7.7 Patch available GHSA-hqv9-j9vc-6p7h

Remediation

Upgrade Discourse to 2026.11.0, 2026.10.3, 2026.9.4 or 2026.7.7. As a workaround, disable the download remote images to local site setting or the secure uploads site setting from the Admin UI under Site Settings.

Written with Claude Haiku 5.5 from the sources below · 2026-11-24

  • Fix · GHSA-hqv9-j9vc-6p7h Discourse Fixed in 2026.11.0 Advisory →
  • Fix · GHSA-hqv9-j9vc-6p7h Discourse Fixed in 2026.10.3 Advisory →
  • Fix · GHSA-hqv9-j9vc-6p7h Discourse Fixed in 2026.9.4 Advisory →
  • Fix · GHSA-hqv9-j9vc-6p7h Discourse Fixed in 2026.7.7 Advisory →

Timeline

  1. 2026-11-24 Threatist record created from GHSA-hqv9-j9vc-6p7h

References

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences