Skip to main content
CVE Vulnerability Database
Vulnerability Database/CVE-2025-68659

CVE-2025-68659: Discourse Platform DoS Vulnerability

CVE-2025-68659 is a denial of service vulnerability in Discourse that allows attackers to cause server delays and resource exhaustion through large JSON payloads. This article covers technical details, affected versions, and patches.

Published:

CVE-2025-68659 Overview

CVE-2025-68659 is a Denial of Service (DoS) vulnerability affecting Discourse, an open source discussion platform. The vulnerability exists in the username change functionality and allows authenticated attackers to cause noticeable server delays and resource exhaustion by sending large JSON payloads to the username preference endpoint PUT /u/<username>/preferences/username. Successful exploitation results in degraded performance for other users and endpoints on the affected Discourse instance.

Critical Impact

Attackers with low-privileged access can exhaust server resources and cause service degradation for all users of the affected Discourse instance through oversized JSON payload submission.

Affected Products

  • Discourse versions prior to 3.5.4
  • Discourse versions prior to 2025.11.2
  • Discourse versions prior to 2025.12.1
  • Discourse versions prior to 2026.1.0

Discovery Timeline

  • 2026-01-28 - CVE CVE-2025-68659 published to NVD
  • 2026-01-29 - Last updated in NVD database

Technical Details for CVE-2025-68659

Vulnerability Analysis

This vulnerability is classified as CWE-770 (Allocation of Resources Without Limits or Throttling). The issue arises from insufficient input validation and resource allocation controls in the username preference change endpoint. When a user submits a request to change their username, the application processes the submitted JSON payload without properly limiting its size or complexity. This allows an attacker to craft oversized JSON payloads that consume excessive server resources during parsing and processing, leading to application-level denial of service conditions.

The attack can be executed over the network by any authenticated user with basic privileges. While the vulnerability does not impact data confidentiality or integrity, it can significantly degrade application availability for legitimate users.

Root Cause

The root cause stems from insufficient resource allocation controls in the username preference handling code. The application fails to enforce appropriate limits on the size and complexity of JSON payloads submitted to the /u/<username>/preferences/username endpoint, allowing attackers to submit maliciously large payloads that consume disproportionate server resources during processing.

Attack Vector

The attack is conducted over the network against the username preference endpoint. An authenticated attacker sends oversized JSON payloads to PUT /u/<username>/preferences/username, causing the server to expend significant resources parsing and processing the malicious request. This results in:

  1. Increased CPU utilization during JSON parsing
  2. Memory consumption from storing large payload data
  3. Delayed response times for the targeted endpoint
  4. Potential cascading performance degradation affecting other users and endpoints

The vulnerability mechanism involves sending malformed or oversized JSON data to the username preference endpoint. For technical implementation details, refer to the GitHub Security Advisory.

Detection Methods for CVE-2025-68659

Indicators of Compromise

  • Unusually large HTTP request bodies (significantly larger than typical username change requests) to the /u/*/preferences/username endpoint
  • Elevated server CPU and memory utilization coinciding with username preference requests
  • Multiple rapid requests to the username preference endpoint from the same authenticated user
  • Increased response latency across the Discourse application during attack periods

Detection Strategies

  • Monitor HTTP request body sizes for the /u/*/preferences/username endpoint and alert on requests exceeding normal thresholds
  • Implement application performance monitoring (APM) to detect anomalous resource consumption patterns
  • Configure web application firewall (WAF) rules to limit JSON payload sizes on sensitive endpoints
  • Review access logs for patterns of repeated requests to the username preference endpoint

Monitoring Recommendations

  • Set up alerting for sustained high CPU or memory usage on Discourse application servers
  • Monitor request latency metrics for the username preference endpoint
  • Implement rate limiting monitoring to detect potential abuse patterns
  • Track authenticated user activity for anomalous request volumes to preference endpoints

How to Mitigate CVE-2025-68659

Immediate Actions Required

  • Upgrade Discourse to patched versions: 3.5.4, 2025.11.2, 2025.12.1, or 2026.1.0
  • Implement rate limiting on the username preference endpoint as a temporary measure
  • Configure web server or reverse proxy to limit maximum request body sizes
  • Monitor server resources for signs of ongoing exploitation attempts

Patch Information

Discourse has released security patches addressing this vulnerability. Affected installations should upgrade to one of the following patched versions:

  • Version 3.5.4
  • Version 2025.11.2
  • Version 2025.12.1
  • Version 2026.1.0

For detailed patch information, consult the GitHub Security Advisory.

Workarounds

  • No vendor-provided workarounds are available for this vulnerability
  • As a temporary mitigation, consider implementing request body size limits at the web server or reverse proxy level
  • Rate limiting on authentication-required endpoints may help reduce exploitation impact
  • Prioritize upgrading to a patched version as the primary remediation strategy
bash
# Example nginx configuration to limit request body size (temporary mitigation)
# Add to server or location block for Discourse
location ~ ^/u/.*/preferences/username {
    client_max_body_size 16k;
    # Additional rate limiting
    limit_req zone=username_pref burst=5 nodelay;
}

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.