Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-113355 Overview
CVE-2026-113355 is a stored cross-site scripting (XSS) vulnerability in Chatwoot versions prior to 4.14.0. The flaw resides in the render_embed_from_match function within the custom markdown renderer used by the Help Center. Account administrators can craft video-embed markdown links using angle-bracket destinations and double quotes to break out of the unescaped iframesrc attribute. The injected JavaScript then executes in the browsers of public visitors who view the article. Attackers who exploit this condition can steal cw_conversation widget tokens from visitors. The issue is tracked under CWE-79.
Critical Impact
A malicious or compromised administrator account can execute arbitrary JavaScript in the context of any public Help Center visitor, enabling theft of cw_conversation widget tokens and session impersonation.
Affected Products
- Chatwoot versions prior to 4.14.0
- Self-hosted and cloud deployments using the Help Center feature
- Installations exposing public Help Center articles rendered via lib/custom_markdown_renderer.rb
Discovery Timeline
- 2026-10-20 - CVE-2026-113355 published to NVD
- 2026-10-20 - Last updated in NVD database
Technical Details for CVE-2026-113355
Vulnerability Analysis
The vulnerability lives in Chatwoot's CustomMarkdownRenderer, which converts markdown shortcodes into embedded video iframes for Help Center articles. The renderer uses regular-expression named captures to extract values such as the video identifier from the markdown source. Those captured values are substituted directly into an HTML template string without HTML-encoding. The resulting template is written into an iframesrc attribute and returned as raw HTML to the Help Center page. An administrator who authors an article can craft a video link whose destination contains a double quote. That double quote closes the src attribute and permits injection of additional attributes such as onload or onerror handlers. Because Help Center pages are public, the payload executes in the browsers of unauthenticated visitors. The widget JavaScript running on the same page exposes cw_conversation tokens, which the payload can exfiltrate.
Root Cause
Captured named-group values from markdown input were interpolated into HTML attribute contexts without calling CGI.escapeHTML. Angle-bracket link destinations in markdown permit characters that would otherwise require encoding, allowing attribute-breakout payloads.
Attack Vector
Exploitation requires an authenticated account administrator with permission to publish Help Center articles and visitor interaction with the published page. The attack is network-reachable and does not require elevated system privileges beyond administrator role.
return nil unless embed_config
template = embed_config['template']
- # Use Ruby's built-in named captures with gsub to handle CSS % values
+ # Use gsub (not format) so CSS `%` values in templates don't need escaping.
+ # Captured values are HTML-escaped since they land inside HTML attribute contexts.
match_data.named_captures.each do |var_name, value|
- template = template.gsub("%{#{var_name}}", value)
+ template = template.gsub("%{#{var_name}}", CGI.escapeHTML(value))
end
template
end
Source: GitHub Commit 2192af80 — the patch wraps each captured value in CGI.escapeHTML before interpolation into the HTML attribute context.
Detection Methods for CVE-2026-113355
Indicators of Compromise
- Help Center articles containing markdown video-embed links with angle-bracket destinations that include double quotes, backticks, or on* event-handler strings.
- Rendered Help Center HTML containing iframe elements with unexpected attributes such as onload, onerror, or src="javascript:.
- Outbound requests from visitor browsers to unknown domains carrying cw_conversation cookie values or widget token parameters.
Detection Strategies
- Audit the articles database table and markdown source history for embed syntax containing ", <, or > characters inside link destinations.
- Review web-server access logs for GET requests to public Help Center URLs followed by anomalous beacon traffic from visitor IP ranges.
- Scan admin activity logs for recent article create or update events by newly provisioned or infrequently used administrator accounts.
Monitoring Recommendations
- Monitor Content Security Policy (CSP) violation reports from Help Center domains for inline-script and attribute-handler violations.
- Alert on administrator role assignments, API-token issuance, and bulk article edits in Chatwoot audit logs.
- Track egress to non-approved domains originating from pages that host the Chatwoot widget.
How to Mitigate CVE-2026-113355
Immediate Actions Required
- Upgrade Chatwoot to version 4.14.0 or later, which applies CGI.escapeHTML to captured markdown values.
- Review all existing Help Center articles for malicious video-embed markdown and remove or re-author suspect entries.
- Rotate cw_conversation widget tokens and any administrator credentials that may have been exposed.
Patch Information
The fix is included in Chatwoot release v4.14.0 via pull request #14140. Technical context is available in the VulnCheck advisory and the vulnerable code is referenced in lib/custom_markdown_renderer.rb.
Workarounds
- Restrict Help Center authoring to a minimal set of trusted administrators and enforce multi-factor authentication on those accounts.
- Deploy a strict Content Security Policy on Help Center domains to block inline event handlers and unauthorized script sources.
- Temporarily disable the video-embed markdown feature or unpublish public Help Center portals until the upgrade is applied.
# Upgrade self-hosted Chatwoot to the patched release
git fetch --tags
git checkout v4.14.0
bundle install
yarn install
RAILS_ENV=production bundle exec rails db:migrate
RAILS_ENV=production bundle exec rails assets:precompile
sudo systemctl restart chatwoot.target
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

