Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSubmit unauthenticated abuse report with XSS payload
-
DeliverySupply valid offender_id to activate vulnerable render path
-
ExploitPayload stored unsanitized in database
-
ExecutionAdmin navigates to abuse reports panel
-
Persistraw() executes JavaScript in admin browser
-
ImpactSteal CSRF token or perform unauthorized admin actions
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Input neutralization, injection prevention
|
| Exploitation Conditions | The vulnerable rendering path in the admin view fires only when the FeedbackMessage record has a non-null offender_id. Prior to the fix, offender_id was included in FEEDBACK_ALLOWED_PARAMS for the public FeedbackMessagesController, meaning an unauthenticated attacker could set it to any existing user's integer ID during submission with no authorization check. The attacker must POST to the public abuse-report endpoint (no authentication required), the offender_id must reference a valid user record (predictable via sequential ID enumeration), and an administrator must subsequently navigate to the admin abuse-report view to trigger JavaScript execution. Exploitation is bounded by: (1) UI:R - an administrator must actively view the report; (2) the offender_id must be a resolvable user ID. No special non-default configuration or platform requirement exists; the condition is met on any standard Forem deployment that has the abuse-reporting feature active. |
| Impact | The official CVSS 3.1 score of 6.3 with PR:L (low privileges required) is inconsistent with the advisory description, which explicitly states the public FeedbackMessagesController accepts abuse reports without any authorization - the submission step is unauthenticated, suggesting PR:N would be more accurate and would yield a materially higher base score. No EPSS data was supplied, and this CVE does not appear in the CISA KEV catalog; no public exploit code has been identified at time of analysis. Despite the absence of active exploitation signals, the attack requires only basic XSS knowledge against a well-documented code path, and abuse-report review is a standard administrative workflow that attackers can reliably use to trigger payload delivery - even a mid-sized developer community operator in kielce self-hosting Forem should treat remediation as urgent given the potential for full administrative session compromise. The UI:R requirement is the primary real-world limiting factor, but it does not substantially reduce risk since administrators routinely process abuse queues. |
| Exploit ScenarioDerived | An unauthenticated attacker submits an abuse report via Forem's public /feedback_messages endpoint, setting feedback_message[message] to a JavaScript payload such as an image onerror handler and feedback_message[offender_id] to the ID of any valid user, activating the vulnerable admin rendering path. When an administrator subsequently opens the admin abuse-report panel, the raw() helper renders and executes the payload in the admin's browser, enabling exfiltration of the CSRF token or issuance of authenticated administrative requests on the attacker's behalf. No public proof-of-concept code has been identified at time of analysis, but the technique requires only standard XSS knowledge and is directly evidenced by the regression test added in the fix commit. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 18, 2026
Stored cross-site scripting in Forem's admin abuse-report panel allows a remote unauthenticated attacker to execute arbitrary JavaScript in an administrator's browser. The public FeedbackMessagesController previously accepted an attacker-supplied offender_id parameter, which caused the unsanitized message field to be rendered via Rails' raw() helper when an administrator views the flagged report - exposing CSRF tokens, session data, and enabling unauthorized administrative actions. No public exploit has been identified at time of analysis, but the attack path is technically straightforward and targets a routine administrative workflow that reliably delivers the payload.
RemediationAI
Update Forem to a build incorporating commit 92eacd16a82cf9007ba8e16a2258b42e3b53ca9c, which removes offender_id from FEEDBACK_ALLOWED_PARAMS, replaces raw(feedback_message.message) with auto-escaping ERB output in the admin partial, and derives offender identity server-side from the submitted reported_url. The fix commit is available at https://github.com/forem/forem/commit/92eacd16a82cf9007ba8e16a2258b42e3b53ca9c; an upstream fix is confirmed via commit but a specifically tagged patched release version has not been independently confirmed from the available advisory data. For operators unable to immediately patch, restricting network access to the admin abuse-report path (/admin/reports) to trusted IP ranges prevents the stored payload from executing in an administrator's browser - this does not block malicious submissions but eliminates the trigger condition, with the trade-off that it may complicate remote administration. Disabling public abuse-report submissions entirely is a more aggressive workaround that removes the injection vector but will impair community moderation workflows.
Affected VersionsENISA
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Forem is a Ruby on Rails open-source platform powering developer communities including DEV.to. The root cause is CWE-74 (Injection), manifesting as stored XSS because the admin partial at app/views/admin/feedback_messages/_feedback_message.html.erb used Rails' raw() helper - which explicitly bypasses the framework's automatic HTML escaping - to render the user-supplied message field. The exploit path was gated behind the presence of a non-null offender_id on the FeedbackMessage record; critically, offender_id was listed in FEEDBACK_ALLOWED_PARAMS in the public FeedbackMessagesController, permitting unauthenticated submitters to set it to any valid user ID and activate the vulnerable rendering branch. The fix (commit 92eacd16a82cf9007ba8e16a2258b42e3b53ca9c) removes offender_id from allowed params, derives it server-side via a new assign_offender_from_reported model callback that resolves the offender from the submitted reported_url, and replaces raw() with standard ERB auto-escaping.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:L/A:N
Public endpoint requires no authentication (PR:N); payload executes in admin security context constituting scope change (S:C); CSRF and session abuse enable full admin integrity impact (I:H).
Primary rating from Vendor (github).
CVSS VectorVendor: github
Lifecycle Timeline
1DescriptionCVE.org
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
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Request Forgery exploits the automatic credential inclusion behavior of web browsers.
EUVD-2026-61141
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB