{"answers":{"affected":"It affects 2 products.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-3166 exists.","fix":"No fix has been published for CVE-2024-3166 yet. Limit exposure of the affected software until one is available.","what":"CVE-2024-3166 is a low-severity cross-site scripting vulnerability in mintplex-labs/anything-llm, published on 6 Jun 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2024-3166 and fix it if it is affected.\n\nWhat it is: CVE-2024-3166 is a low-severity cross-site scripting vulnerability in mintplex-labs/anything-llm, published on 6 Jun 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-3166 exists.\n\nAffected product: mintplex-labs/anything-llm. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-3166/ (Markdown: https://insights.sbomify.com/CVE-2024-3166/index.md)","id":"CVE-2024-3166","markdown":"https://insights.sbomify.com/CVE-2024-3166/index.md","name":"CVE-2024-3166","record":{"aliases":["GHSA-g2q4-9pcj-78cw"],"analysis":{"component_type":"desktop_application","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":true,"product_category":"AnythingLLM desktop app","requires_auth":"none","summary":"Attackers can execute arbitrary JavaScript via embedded content, potentially leading to remote code execution in the desktop application due to insecure Electron settings.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"@huntr_ai","cpe":[{"product":"anythingllm_desktop","vendor":"mintplexlabs"},{"product":"anythingllm_docker","vendor":"mintplexlabs"}],"cvss":{"score":3.4,"severity":"low","source":"cna","vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:N/A:N","version":"3.0"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"description":"A Cross-Site Scripting (XSS) vulnerability exists in mintplex-labs/anything-llm, affecting both the desktop application version 1.2.0 and the latest version of the web application. The vulnerability arises from the application's feature to fetch and embed content from websites into workspaces, which can be exploited to execute arbitrary JavaScript code. In the desktop application, this flaw can be escalated to Remote Code Execution (RCE) due to insecure application settings, specifically the enabling of 'nodeIntegration' and the disabling of 'contextIsolation' in Electron's webPreferences. The issue has been addressed in version 1.4.2 of the desktop application.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":false,"headline":"Cross-Site Scripting (XSS) Vulnerability in mintplex-labs/anything-llm","id":"CVE-2024-3166","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"xss","year":"2024"},"n_packages":0,"n_references":2,"next":{"headline":"Ocean Extra \u003c= 2.2.6 - Authenticated (Contributor+) Stored Cross-Site Scripting","id":"CVE-2024-3167"},"packages":[],"prev":{"headline":"Database Credential Exposure in the Logs","id":"CVE-2024-3165"},"products":["mintplex-labs/anything-llm"],"published":"2024-06-06","related":[{"cvss_score":9.8,"headline":"Missing Authentication for Critical Function in mintplex-labs/anything-llm","id":"CVE-2024-8196","kev_date_added":null,"published":"2025-03-20"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-08-01","vendors":["mintplex-labs"]},"summary":"Attackers can execute arbitrary JavaScript via embedded content, potentially leading to remote code execution in the desktop application due to insecure Electron settings.","url":"https://insights.sbomify.com/CVE-2024-3166/"}