CVE-2024-0640 Stored XSS in chatwoot/chatwoot

Medium 5.6 Published Updated

An admin user can inject malicious JavaScript via dashboard app settings, leading to code execution or account takeover when another admin accesses the app.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2024-0640?

CVE-2024-0640 is a medium-severity cross-site scripting vulnerability in chatwoot/chatwoot, published on 20 Mar 2025. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

A stored cross-site scripting (XSS) vulnerability exists in chatwoot/chatwoot versions 3.0.0 to 3.5.1. This vulnerability allows an admin user to inject malicious JavaScript code via the dashboard app settings, which can then be executed by another admin user when they access the affected dashboard app. The issue is fixed in version 3.5.2.

Weakness: CWE-79

Which versions are affected by CVE-2024-0640?

It affects 1 product.

Products include Chatwoot Chatwoot.

How do I fix CVE-2024-0640?

No fix has been published for CVE-2024-0640 yet. Limit exposure of the affected software until one is available.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2024-0640 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-0640 exists.

Sources

Also known as GHSA-8gfh-hxjj-c33j.

Is CVE-2024-0640 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free