CVE-2026-61696

Forem: Stored XSS in Admin Abuse Report Rendering

Published Aug 18, 2026 CVSS 3.1 · 6.3 Medium EPSS < 1% KEV · Not listed
Description
Forem is open source software for building communities. In versions before commit 92eacd16a82cf9007ba8e16a2258b42e3b53ca9c, a malicious value submitted through feedback_message[message] is stored without sanitization and rendered in app/views/admin/feedback_messages/_feedback_message.html.erb through raw(feedback_message.message) when offender_id is present. Viewing the abuse report executes arbitrary JavaScript in an administrator's browser and may expose sensitive in-page data, abuse CSRF tokens, or perform administrative actions in the victim's session. The public FeedbackMessagesController accepts the report without authorization and previously permitted a submitted offender_id, making the vulnerable rendering path reachable by an unauthenticated attacker. This issue is fixed in commit 92eacd16a82cf9007ba8e16a2258b42e3b53ca9c

Analysis

AI-generated

Technical impact

Forem versions before commit 92eacd16a allow a malicious string submitted through feedback_message[message] to be stored without sanitization and later rendered unescaped with raw(feedback_message.message). When an administrator opens the abuse report, the browser executes the injected JavaScript. This can expose sensitive page data, steal CSRF tokens, or trigger administrative actions within the victim’s session.

Affected Systems

All Forem community software releases prior to commit 92eacd16a are affected, including the mainstream Forem platform. The vulnerability is reachable because the public FeedbackMessagesController accepts abuse reports from unauthenticated users and permits an offender_id, which enables a crafted report to be stored and later rendered in the admin interface.

Risk and Exploitability

The CVSS score of 6.3 indicates moderate severity. EPSS data is not available, and the issue is not listed in CISA’s KEV catalog, implying no known widespread exploitation. However, the attack requires only that an attacker can submit a feedback report—an unauthenticated action—and that an administrator subsequently views the report. In that scenario the stored script runs in the admin’s browser, which can compromise confidentiality, integrity, and availability of administrative capabilities. The potential impact is considerable for compromised administrators, making the risk high in environments where admins frequently access abuse reports.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the Forem update containing commit 92eacd16a or later to remove the raw rendering of feedback messages.
  • If an immediate update is not possible, limit or disable the public FeedbackMessagesController so that only authenticated administrators can submit abuse reports as a temporary safeguard.
  • Modify the app/views/admin/feedback_messages/_feedback_message.html.erb template to escape or sanitize feedback_message.message instead of rendering it with raw().

Generated by OpenCVE AI on August 18, 2026 at 20:43 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Forem
Forem forem
Vendors & Products Forem
Forem forem
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description Forem is open source software for building communities. In versions before commit 92eacd16a82cf9007ba8e16a2258b42e3b53ca9c, a malicious value submitted through feedback_message[message] is stored without sanitization and rendered in app/views/admin/feedback_messages/_feedback_message.html.erb through raw(feedback_message.message) when offender_id is present. Viewing the abuse report executes arbitrary JavaScript in an administrator's browser and may expose sensitive in-page data, abuse CSRF tokens, or perform administrative actions in the victim's session. The public FeedbackMessagesController accepts the report without authorization and previously permitted a submitted offender_id, making the vulnerable rendering path reachable by an unauthenticated attacker. This issue is fixed in commit 92eacd16a82cf9007ba8e16a2258b42e3b53ca9c
Title Forem: Stored XSS in Admin Abuse Report Rendering
Weaknesses CWE-116
CWE-74
CWE-79
References
Metrics cvssV3_1

{'score': 6.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:L/A:N'}

Weaknesses
  • CWE-116

    Improper Encoding or Escaping of Output

  • CWE-74

    Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')

  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Aug 18, 2026, 6:15 PM
Reserved
Jul 10, 2026, 6:36 PM
Status
Deferred
Published
Aug 18, 2026, 6:18 PM
Modified
Sep 18, 2026, 8:09 PM