CVE-2024-3166CWE-79

Cross-Site Scripting (XSS) Vulnerability in mintplex-labs/anything-llm

Low · published June 6, 2024

CVSS v3.0
3.4
EPSS
1%
Percentile
61.5
In the wild
Unconfirmed
What it is

⚠️ A seemingly harmless content-embedding feature hides a Cross-Site Scripting (XSS) vulnerability in mintplex-labs/anything-llm — just like a surprise ingredient sneaking into your favorite dish! 🍽️ Think of the application like a restaurant that allows customers to bring in their own recipes. If the cook isn’t careful to check the ingredients, someone could slip in something dangerous — like adding poison to the soup! In this case, malicious JavaScript can be added through websites embedded in the workspace. While this vulnerability isn't something to panic over, it can lead to an attacker executing arbitrary JavaScript code in a user's session. If exploited on the desktop application, this flaw could escalate to Remote Code Execution, allowing a crafty attacker access to a user’s system — potentially leading to data theft or other malicious actions.

Put simply

Think of the application like a restaurant that allows customers to bring in their own recipes. If the cook isn’t careful to check the ingredients, someone could slip in something dangerous — like adding poison to the soup! In this case, malicious JavaScript can be added through websites embedded in the workspace. This XSS vulnerability exists due to the application's ability to fetch and embed external content. In the desktop version, the insecure settings of 'nodeIntegration' and 'contextIsolation' in Electron allow for the execution of harmful JavaScript code.

What to do

While this vulnerability isn't something to panic over, it can lead to an attacker executing arbitrary JavaScript code in a user's session. If exploited on the desktop application, this flaw could escalate to Remote Code Execution, allowing a crafty attacker access to a user’s system — potentially leading to data theft or other malicious actions. Update the desktop application to version 1.4.2 to patch the vulnerability. Additionally, review your use of the content-embedding features and consider implementing content security policies to mitigate risks. It’s a good time to check your settings to ensure they’re secure! You’ve got this! By applying these updates, you’ll keep your application secure and running smoothly. 🛡️

The record
Technical detail
CVSS v3.0
3.4 · LOW
Vector
CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:N/A:N
CVSS v4.0
Not supplied
EPSS
0.00970 · 61.5th percentile
Weakness
CWE-79 · Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Published
2024-06-06T18:23Z
EPSS history
Timeline
  • 06 JUN 18:23Z
    Cross-Site Scripting (XSS) Vulnerability in mintplex-labs/anything-llm
    cvelistv5